Search form

More Flash Help...

9 posts / 0 new
Last post
More Flash Help...

hey flash gods...

i have a problem that i just can't figure out...

i set up a scrollpane with buttons in it...which i want to link back to scene 1.

so i used

on(release) {
_root.gotoAndStop(26)

which worked great!

however, i set up a new scene called "preloader" so i could make a preloading screen

now when i click the buttons in the scrollpane it links back to the preloader and not scene 1....any one have an ideas what i am doing wrong???

(i posted this at flashkit as well, but i know some of you are really good with flash here)

Matt S's picture
[b][size=3]Matt Shumway Character Animator Rhythm and Hues Studios www.mattshumway.com www.enigmathemovie.com [/b][/size]

[b][size=3]Matt Shumway
Character Animator
Rhythm and Hues Studios
www.mattshumway.com

www.enigmathemovie.com
[/b][/size]

i haven't used flash for a while but i'll try. go back to the actionscript for that object or scene or whatever and there are 2 actionscript modes right? a regular and some kind of advanced. i think you need to change it to regular to make it easy. click the command with the frame number and i think there will be drop down menus where you can change the frame number and stuff. there should be one that says something about scene click it and set it to the scene you want it to go to or it will automatically go where it "feels" like it. like i said i havent used flash for a while but you should be able to figure it out.

When a fla file is compiled into a swf all scenes are compiled into one long timeline. The only way to avoid this problem is name the first frame of your first scene (not your preloader) something like "start" with a frame label. Then in your preloader instead of referring to a frame number refer to the label.

Pat Hacker, Visit Scooter's World.

So your script would be:

on(release) {
_root.gotoAndStop("start")

And start would refer to your frame label.

Pat Hacker, Visit Scooter's World.

Tip

For all those out there that use Flash with scenes, and script some. Get in the habit of labelling the first frame of each scene: "scene1", "scene2"....that way you avoid the pitfalls. Learn to call labels instead of frame numbers.

Pat Hacker, Visit Scooter's World.

Thanks for the advice Phacker. I have no idea about action scripting, and I'm planing on updating my webpage to an all Flash site in a few months. So I'll keep that in the back of my skull. :)

The Ape

...we must all face a choice, between what is right... and what is easy."

Another tip.

I always start my new projects with the top three layers being: 1-is my frame label layer. 2-is my script layer, I put all my scripting up there to keep it out of my animation (unless it's button related, then it needs to be attached to the button no matter where that is), and the 3rd is my sound layer. After that I can add layers to my heart's content.

Pat Hacker, Visit Scooter's World.

yeaaaaaaaaaaaaaaaa!

thanks phacker, you're a friggen genious! i have been busting my head all day on this one...thanks it works great..

thanks everyone for your help.

stay tuned for some more deperate cries!

(o:

[b][size=3]Matt Shumway
Character Animator
Rhythm and Hues Studios
www.mattshumway.com

www.enigmathemovie.com
[/b][/size]

Thanks Matt, but not a genius. Just been using Flash since version 3 and have made all the mistakes out there. If it hadn't been for Flashkit, I'd be dead in the water. For all Flashers: Flashkit is a resource to depend on.

It's changed a bit over the years, but for the most part hardly any questions go unanswered, and folks are very willing to share and spend time with the newbies.

Pat Hacker, Visit Scooter's World.