|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
moving to a particular frame with a movie
hi, i was wondering if any of you guys have tried doing something like this.
I have a main file called intro.swf, this in turn calls other swf files. The intro is fed a text file called "data.txt". eg loadVariablesNum("data.txt", 0); This text file defines variables to load swf files. eg: url_rub3=Chapter3.swf&titre_rub3_s1=Overview&url_rub3_s1=Chapter3.1.swf&url_rub3_s2=Chapter3.2.swf and so on... The only file that is embedded in the html is the intro.swf. What i need to do is when the intro page is loaded, i would like the user to go to a particular frame in the loaded movie (something like a bookmark). This is what i'm trying to do in the intro.fla file loadMovieNum(url_rub3_s2,1); _level1.gotoAndPlay(6); where: url_rub3_s2 is the "Chapter3.2.swf" to be loaded. It loads the chapter, but i cannot move to that frame as i'm still in the intro.swf. I'm not sure, if i'm going the right way. Any suggestion/solutions? Regds, Allwyn |
|
#2
|
|||
|
|||
|
what is the file size of "chapter3.2.swf"? the logic of the code is, if it hasn't finish downloading at least 6 frames, it can't goto the 6th frame. (LOL! trying to explain codes in english is trickier than i thought.)
what you might want to do, is to preload the chapter3.swf into level1. and when you reached the end of your intro, tells it to goto the 6th frame of level1. (1) blank frame in the first keyframe of chatper3.swf ; and put a stop() action on that first frame. (2) at the beginning of the intro, loads chapter3.swf into level 1 (3) at the end of intro, do .... "_level1.gotoAndPlay(6);" hope that works. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > moving to a particular frame with a movie |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|