HOME | DD

iceman200 — Flash Image scroller tutorial

Published: 2009-04-26 07:25:40 +0000 UTC; Views: 9906; Favourites: 20; Downloads: 216
Redirect to original
Description A step by step tutorial for creating an image scroller.


Final product- [link]

If you're having a hard time you can download the source code.[link]
Related content
Comments: 45

Gorillastrations [2010-05-03 22:41:57 +0000 UTC]

in addition to my last comment....is there a way to have multiple images without creating a gigantic image file to fit all images together. I tried to create a long size image but after a certain length it no longer becomes able to save for web or as a psd file....any suggestions?

👍: 0 ⏩: 0

Gorillastrations [2010-05-03 22:36:53 +0000 UTC]

Is there a way to add more images in addition to thefirst image to create a chain link to the content image?

👍: 0 ⏩: 0

bumblefusion [2010-04-14 12:33:54 +0000 UTC]

hi! thanks for ur tutorial. it worked well!

i just want to ask about the part

"x = getProperty("_root.image.content", _x);
if (x<-590)"

how to determine x<-590?
is it how more does it needed to be scroll outside the stage?

or how to calculate x<- so that when we play the file, it scrolls the entire image.

you can mail me at
bumblefusion@yahoo.com.sg

thanks iceman for teaching!
Cheers!

👍: 0 ⏩: 0

BrawlHacks [2010-01-02 10:46:14 +0000 UTC]

thanks for the tutorial

👍: 0 ⏩: 1

iceman200 In reply to BrawlHacks [2010-01-19 07:40:56 +0000 UTC]

no prob just happy to help others with flash

👍: 0 ⏩: 1

BrawlHacks In reply to iceman200 [2010-01-19 07:47:21 +0000 UTC]

Now i can make a flash project

👍: 0 ⏩: 0

Tifa22 [2009-11-07 23:52:28 +0000 UTC]

That's a cool tutorial!

But I have a problem ... when I want to add the action code to the button it says I cannot add action to this element!

Do you have an idea what I have to change?

👍: 0 ⏩: 1

iceman200 In reply to Tifa22 [2009-11-08 03:54:00 +0000 UTC]

thank you

hmmm sounds like you're using action script 3.0 make sure you select 2.0 thats the only thing I can think of if that dosent do it let me know.

👍: 0 ⏩: 1

Tifa22 In reply to iceman200 [2009-11-09 18:26:18 +0000 UTC]

Oh, thanks! That problem's solved now

But there are two others
How do I make it scroll up and down instead of right and left? And I have lots of pictures on the background but they won't move with it! Is there an easy way to make everything move in one go?

Thank you so much for the help

👍: 0 ⏩: 1

iceman200 In reply to Tifa22 [2009-11-10 03:47:00 +0000 UTC]

to change the direction all you have to do is replace any X to a y in the main code


to have your other images move with the background you need to place them on the right sub layer you can download the source code [link] the sub time line you need to place them on is the one with the ninja on it to get there just double click your background image.

I hope it helps and good luck

👍: 0 ⏩: 1

Tifa22 In reply to iceman200 [2009-11-11 21:04:10 +0000 UTC]

Oh, thank you!
It worked out fine (still a few things I might change later, but it's great for now)!
You helped me a lot to improve my project [link] !

👍: 0 ⏩: 1

iceman200 In reply to Tifa22 [2009-11-12 08:02:19 +0000 UTC]

Glad it all worked out



It's a very cool project if i get some free time I might make an entry

👍: 0 ⏩: 1

Tifa22 In reply to iceman200 [2009-11-12 18:20:16 +0000 UTC]

Yes, I saw you did!
It's awesome, thank you very much!

👍: 0 ⏩: 0

Tifa22 [2009-11-01 19:11:48 +0000 UTC]

Cool, I'll have to try it!

👍: 0 ⏩: 0

P0rkch0p [2009-05-07 22:05:36 +0000 UTC]

Tutorial is really cool and well done... But i followed it step by step and picture by picture... and i got no luck.... It just won't scroll Maybe Flash just isn't my thing

👍: 0 ⏩: 1

iceman200 In reply to P0rkch0p [2009-05-07 22:34:20 +0000 UTC]

hhmmmm It sounds like an instance name problem I forgot to cover the difference between an instance name and a frame label. It's possible i left out a step but check and make sure the movie clip is selected when you add the instance name. If the frame itself is selected it gives it a frame label. which is used for different style code.

Frame label-->[link]

Instance name-->[link]


I'll go through the tutorial to make sure I did'nt mess anything up

👍: 0 ⏩: 1

P0rkch0p In reply to iceman200 [2009-05-07 22:47:01 +0000 UTC]

I'm gonna do the whole thing again quick. How come you have multiple symbols of the image?

👍: 0 ⏩: 1

iceman200 In reply to P0rkch0p [2009-05-07 22:59:20 +0000 UTC]

You mean convert to a movie clip then double click the movie clip then convert it again

👍: 0 ⏩: 1

P0rkch0p In reply to iceman200 [2009-05-07 23:02:38 +0000 UTC]

well. You convert to symbol after placing with the instance name image... the n double click it, and convert the same picture to symbol, but call the instance content....

👍: 0 ⏩: 1

iceman200 In reply to P0rkch0p [2009-05-07 23:18:43 +0000 UTC]

found the problem sorry it was me. I skipped adding the code to the buttons. I'm so sorry I'll update it soon.

here this should do it add this action script on the left button

on (rollOver) {
tellTarget ("control") {
gotoAndPlay(2);
}
}
on (rollOut, dragOut) {
tellTarget ("control") {
gotoAndStop(1);
}
}



and this one on the right button

on (rollOver) {
tellTarget ("control") {
gotoAndPlay(5);
}
}
on (rollOut, dragOut) {
tellTarget ("control") {
gotoAndStop(4);
}
}

👍: 0 ⏩: 2

P0rkch0p In reply to iceman200 [2009-05-07 23:29:49 +0000 UTC]

Or maybe i should be saying: Say what?

👍: 0 ⏩: 0

P0rkch0p In reply to iceman200 [2009-05-07 23:20:06 +0000 UTC]

Ok, which frames?

👍: 0 ⏩: 1

iceman200 In reply to P0rkch0p [2009-05-07 23:33:51 +0000 UTC]

on the main stage (scene 1) select the left button open up the action script menu (f9) and add the code directly on the button. repeat with the right button.

👍: 0 ⏩: 1

P0rkch0p In reply to iceman200 [2009-05-07 23:38:15 +0000 UTC]

Ah Thanks dude. Its working now Much better

👍: 0 ⏩: 1

iceman200 In reply to P0rkch0p [2009-05-07 23:49:49 +0000 UTC]

glad it works I still can't believe i left out a huge part of the code.


Oh and to answer your question about converting twice It's set up that way so you can add moving gifs to the image and have the gifs move with the image. It's kind of like putting a folder into a file cabinet.

One more thing just in case when you import a gif like a moving emote create a blank movie clip by pressing ctrl+f8 then go to import to stage

👍: 0 ⏩: 1

P0rkch0p In reply to iceman200 [2009-05-08 00:16:38 +0000 UTC]

Cool. Thanks for the advice. I quickly added in the stuff for up and down. Here it is if you'd like to add it in some where:

UP
on (rollOver) {
tellTarget ("control") {
gotoAndPlay(8);
}
}
on (rollOut, dragOut) {
tellTarget ("control") {
gotoAndStop(7);
}
}

Frame 7:
stop();

frame 8:
y = getProperty("_root.image.content", _y);
if (y>0) {
gotoAndStop(7);
} else {
setProperty("_root.image.content", _y, y+8);
}

Frame 9:
gotoAndPlay(8);

_______________________________________________

DOWN

on (rollOver) {
tellTarget ("control") {
gotoAndPlay(11);
}
}
on (rollOut, dragOut) {
tellTarget ("control") {
gotoAndStop(10);
}
}

Frame 10:
stop();

Frame 11:
y = getProperty("_root.image.content", _y);
if (y<-174
) {
gotoAndPlay(10);
} else {
setProperty("_root.image.content", _y, y-8);
}

Frame 12:
gotoAndPlay(11);

____________________________________________

I know you could've figured this out yourself. But i thought i'd save you the hassle of having to type it all

👍: 0 ⏩: 1

iceman200 In reply to P0rkch0p [2009-05-08 00:35:14 +0000 UTC]

Thanks man your getting this down pretty fast. Are you making a project



I put the tutorial in my scraps for now I added the missing frames but i have to update the engine the tutorial runs on that take a long time

👍: 0 ⏩: 1

P0rkch0p In reply to iceman200 [2009-05-08 00:42:40 +0000 UTC]

Yeah im tryna make a project. Something i havent seen before.[link]
Have a look see. So its a real mission adding in Emotes Frame by frame

👍: 0 ⏩: 1

iceman200 In reply to P0rkch0p [2009-05-08 00:57:38 +0000 UTC]

Nice viking ship man keep me posted on this one.



It's not that bad Once you import them into a blank movie clip they get put in the library so you can drag and drop from there.


if you have a hard time with it talk to =ManiacalMuffin she has it down to a science

👍: 0 ⏩: 1

P0rkch0p In reply to iceman200 [2009-05-08 01:02:18 +0000 UTC]

I just cant get the emote to stay where i put them. The 'content' image moves, but the emote doesnt

👍: 0 ⏩: 1

iceman200 In reply to P0rkch0p [2009-05-08 01:23:29 +0000 UTC]

I uploaded the source code it might help you out [link]

I left my ninja on the movie clip you need to have your emotes on just double click the scroll image twice.

👍: 0 ⏩: 1

P0rkch0p In reply to iceman200 [2009-05-08 01:40:20 +0000 UTC]

I found the content picture, and adding the emotes in CS3 is actually very simple. Once i knew what to look for. So the project is now up and running: [link]

And all thanks to you and your help to

👍: 0 ⏩: 1

iceman200 In reply to P0rkch0p [2009-05-09 06:15:19 +0000 UTC]

I thought the source would help

looks really good i defiantly have to make an entry.


And thanks for helping me work all the bugs out of the tutorial

👍: 0 ⏩: 0

MissBezz [2009-04-26 15:35:48 +0000 UTC]

Wow, that is really awesome! All I need now is to get Flash!

👍: 0 ⏩: 1

iceman200 In reply to MissBezz [2009-04-27 06:55:57 +0000 UTC]

Thank you Flash is a lot of fun but really frustrating to learn

👍: 0 ⏩: 1

MissBezz In reply to iceman200 [2009-04-27 22:53:09 +0000 UTC]

Oh yes indeed! We did a little Flash as school this year in art class. So many controls!

👍: 0 ⏩: 0

Gnog [2009-04-26 12:48:00 +0000 UTC]

cool tutorial!

👍: 0 ⏩: 1

iceman200 In reply to Gnog [2009-04-27 06:56:08 +0000 UTC]

Thanks

👍: 0 ⏩: 1

Gnog In reply to iceman200 [2009-04-28 21:16:47 +0000 UTC]

No problem!

👍: 0 ⏩: 0

MenInASuitcase [2009-04-26 08:12:43 +0000 UTC]

haha! useful, and fun to try
we must follow the way of the ninja to learn flash

👍: 0 ⏩: 1

iceman200 In reply to MenInASuitcase [2009-04-27 06:57:04 +0000 UTC]

The way of the ninja is the only way

👍: 0 ⏩: 0

MixedMilkChOcOlate [2009-04-26 07:32:22 +0000 UTC]

it's amazing I like how you used the ninja pool and I like it more because people can copy/past the code thank to the right frame !

👍: 0 ⏩: 1

iceman200 In reply to MixedMilkChOcOlate [2009-04-26 07:36:39 +0000 UTC]

thanks man I learned flash by using tutorials so i tried to make one that anybody can do regardless of experience.

👍: 0 ⏩: 0

ManiacalMuffin [2009-04-26 07:28:25 +0000 UTC]

I have to try this out soon

👍: 0 ⏩: 1

iceman200 In reply to ManiacalMuffin [2009-04-26 07:37:23 +0000 UTC]

hurry haha your lucky you already have the source code

👍: 0 ⏩: 0