Groups | Blog | Home
all groups > flash actionscript > april 2005 >

flash actionscript : Linking to scene


chrisauman
4/1/2005 10:16:47 PM
I am building a simple presentation with a 'remote control' module to jump
between sections. I have set the controller module and all its elements and I
made it into a symbol. I am making all the links within the symbol to make
updates easy in the future. I am trying to set up each of my presentation
sections as scenes just in case I need to add to them. The problem I am having
is that I can't get it to link to the new scene and start on frame one. I just
links to the current scene and starts on frame one on that scene. This should
be very simple but it's not working for me. I'm wondering if there is some
problem with making the links within the symbol. Actually adding them on each
scene is not a problem and I believe that this works but it would be nice to
maintain the 'controller' from one file. Any help or ideas will be
appreciated. Here is my actionscript code attached to the button. on (release)
{ gotoAndPlay('Scene 2 (Tickets)', 1); }
kglad
4/2/2005 2:34:38 PM
scene information only exists in the authoring environment. to reference
specific frames during run-time use frame labels. for example:

on(release){
_root.gotoAndPlay("Scene2_frame1");
} // where you labelled a frame Scene2_frame1
AddThis Social Bookmark Button