>> (each content page is contained in a single frame of the timeline).
have you created scenes? or are you trying to go to frames in the timeline?
Main Topics
Browse All TopicsFlash is quite new for me so this question may be easy for you.
I've made a flash web site, with navigation menu on top of the page. Each button lead to a different content page (each content page is contained in a single frame of the timeline).
I've a button inside a content page who should lead to a page in SCENE 1. This button is included in a MovieClip object.
When i call this line, it tell me that "Scene 1" doesn't exist, but it should display the frame 3 on scene 1:
gotoAndPlay(3, "Scene 1");
The exact message is: "Error #2108: Scene Scene 1 was not found."
PS: Keep in mind that It need to be in AS3. So don't lose your time (neighter mine!).
Thanks a lot for your help
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Vulturous: The scene name is ok. If i press Shift-F2, it appears in the list, and its written the same way (including cases).
Blue-Genie: Scene 1 exist no mather what you do. I've not deliberatly created it myself. I'm trying to go to a Specific Frame in the timeline of Scene 1. As i specified, the "gotoAndPlay" is inside a movieclip. So the movieclip have its own timeline. So even if i'm trying to go to frame 3 on the main timeline (scene 1)... by just doing this: gotoAndPlay(3); it won`t work because there's only 1 frame in that movieclip. I want it to show the Frame 3 of Scene 1...
KMead6: I don't have any other scene... maybe i'm wrong, maybe i designed my page the wrong way. I would be glad if you give me some enlightment. I'm just a noob with Flash (most of the time i program in VB.NET, C#, ASP.NET, PHP, etc).
Does the content of each page in my project should be contained in a different scene?
no matter what, even if you haven't created any scenes, you start on Scene 1. if you press Shift+F2 and see your scenes, is there just one scene listed? if so that's your flash website and you need to make another scene in order to jump to it with the gotoAndPlay command. You can press the Duplicate Scene button at the bottom of your scenes window to duplicate what you've already made (so you don't have to re-make everything) and rename the scene to be Scene 2 or whatever and then change you code to reflect the new scene. You can't jump to Scene 1 if you are already there (which by default you are).
I've found my answer by googling a lot. Here it is:
(root as MovieClip).gotoAndStop(3);
Blue-Genie: As i specified, my previous comments, the gotoAndPlay (or Stop) is inside a MC, not directly in the main timeline... so just doing a gotoAndStop(3) won't work since frame 3 in the MC timeline doesn't exist.
I guess i'll have to find a good book for Flash because right now i'm learning here and there on the net, and i don't see any "Best Method" to do things. I'll post my file, and thoses who want to comment on "where i went wrong" are free to post if they want to help me.
I'll split the points between all of you no mather what.
I think i should place my menu into an object library, so i could use it on any scene. And each content page should be placed in a new scene. So if i modify the menu in the library, the changes should reflect in every scenes.
If you check the file and run it, press "Click here to enter", then the problem i had will happen when you try to click "Visite virtuelle" (Not in the menu, but bellow with the blablabla). But as i said, i've solved this problem.
hmm...a good book....
i taught myself flash with the flash cs3 professional visual quickstart quide, but that was mainly just to get associated with the interface and very very basic actionscript, and googling different things. i also have a very large Actionscript 3.0 book (the publisher's name escapes me now...) but it's big and has a drawing of a snake on it. i don't use it too much, mostly because i'm intimidated by it, but if you have a strong developer background it might be for you.
This one is good:
http://livedocs.adobe.com/
It's mainly aimed at Flex development, but it has a big bunch of "Programming AS3" that is quite helpful.
Cheers!
-V
i think the book with the snake on it is the o'reily colin moock book. His books are good especially for someone with a developer background.
in terms of best practise, I think that's like saying what's your favorite colour, I advise against scenes for the very simple reason, it become a nightmare to target them. But then I think you're confusing the display objects and their timelines with scenes.
once you start getting stuck into developing class and object structures you can create custom events which are awesome to do all sorts of stuff.
your reference to scene1 in your original post should have been 'main timeline'
happy flash journey.s
Business Accounts
Answer for Membership
by: VulturousPosted on 2009-08-19 at 22:08:45ID: 25139487
Scene navigation is case sensitive, perhaps there's an error there?
If it doesn't work, please post your fla so I can take a look at it.
-V