Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to go directly to a scene within my flash movie...

Status
Not open for further replies.

aamaker

Programmer
Jan 20, 2002
222
US
Im using flash for navigation within a site and want each 'button' to load the specified page but want to reuse my single flash movie for navigation --

my problem is how do I make page 1 load that main navigation movie, BUT go directly to the page1 scene within that movie ...

so how do I say load the same flash movie, BUT go to 'x' scene immediately -- I want to prevent having to do multiple versions of the navigation movie.


-- thanks for your help!
 
i think put this on ur button?:-

on (release) {
gotoAndPlay ("Scene 1", 1);
}


or frame?:-

gotoAndPlay ("Scene 1", 1);
 
But Im using HTML links within my page to load the NEW pages containing that flash movie.

so in my a href tag is it possible to do something like a href="newpage.asp#scene3" ???

 
disregard that previous message...

I need to have the buttons load a completely new html page - and when necessary go directly to a scene within the flash/navigation movie...

not just go to a new scene within the flash movie ... the flash movie is only used for navigation within the sites pages. ... so when the user is on PAGE 'x' then the navigation / flash movie should load as that same flash movie, but it should immediately go to SCENE 'x' to show the navigation / flash scene that corresponds to the page the user is viewing.

Make sense?

-- Thanks!
 
hmm....

i know wat u mean but i dunno how to do that... :p, why don't u try loading external movie instead, i trhink it gives u same result.
 
let's say you're at page 4 of your menu, page called page4.html. Inside it you have this flash menu, right? so it's not in another frame, but you want it exactly in the page that loads? and you want it to go directly to frame 4.

try this:

inside page4.html i assume you have an <object> tag , looking pretty much like this:
Code:
<OBJECT classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;
 codebase=&quot;[URL unfurl="true"]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0&quot;[/URL]
 WIDTH=&quot;68&quot; HEIGHT=&quot;152&quot; id=&quot;menu&quot; ALIGN=&quot;&quot;>
 <PARAM NAME=movie VALUE=&quot;menu.swf?stopframe=four&quot;> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src=&quot;menu.swf?stopframe=four&quot; quality=high bgcolor=#FFFFFF  WIDTH=&quot;68&quot; HEIGHT=&quot;152&quot; NAME=&quot;menu&quot; ALIGN=&quot;&quot;
 TYPE=&quot;application/x-shockwave-flash&quot; PLUGINSPAGE=&quot;[URL unfurl="true"]http://www.macromedia.com/go/getflashplayer&quot;></EMBED>[/URL]
</OBJECT>
look carefully where the name is:
VALUE=&quot;menu.swf?stopframe=four&quot;

ok, so stopframe is a variable that you can set in the HTML file and use in the Flash file.

inside flash, in the first frame, you should have :
Code:
var stopframe;
stop();
if(stopframe.toString()==&quot;four&quot;) _root.gotoAndStop(4);

and now put something at frame 4, and take a look at the html page.

ok, do that with every page your menu opens, and you have what you wanted. hopefully.
Diana.
diana@cyberslotz.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top