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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

load swf and go to a specific frame

Status
Not open for further replies.

presdes

Technical User
Apr 19, 2003
16
US
Hi

I have several swf and i am moving from one to the other.
I am trying to jump to the last frame of a swf.
I know i have to use load movie and maybe tell target but i just don't know how. i am new at this!
can anyone help me out?

presdes


 
Hi Billwatson

i cannot access the page.

presdes
 
Here's what you'd get!


Regards,

cubalibre2.gif
 
Hi oldnewbie

for some reason i cannot open your file. (unexpected file format)

presdes
 
It's not my file, it's Bill's!

Are you on Flash 5 and/or on Mac?

Regards,

cubalibre2.gif
 
sorry presdes the server was out

normal service has been resumed


still if you needed a flash5 version then its thanks to olnewbie...mine are all mx
 
hi guys

thanks anyways billwatson

by the way , i am getting an error opening url file message with oldnewbie's code. all the swf are in the same folder.

- i labeled the frame in the swf to be loaded

- on (release) {
loadMovie ("bball2.swf?frame=five",emptyclip);
}

what can be the problem???

presdes
 
this will not work in authoring

you have to test it on the web

then all will be fine
 
i apologize for not making this clear.
these swf movies will go on a cd.
is the code much different that oldnewbie???

presdes
 
hmm.....yes i dont think that passing a query string will work with a cd.

possible workaround

declare a global variable in frame 1 of the main movie

_global.framename = undefined;

then use that


on (release) {
loadMovie ("bball2.swf",emptyclip);
_global.frameName = "five";
}


then in the main movie


if(_global.frameName==undefined){
gotoAndPlay(2);
}else{
gotoAndPlay(_global.frameName);
}

in the frame five or whatever set the global variable back to undefined so you can use it again.
 
Hi billwatson

the above code did not work . do you have any other suggestions.

another problem:

the mailto link works fine if the movies are on the harddrive. however on the disc it does not work. i am assuming this has something to do with the path for the outlook object.
do you have any solution to this?

presdes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top