
Welcome Guest
|
|
|
#1
|
|||
|
|||
|
Hiya! i would really appreciate help on this one!
i have created a movie clip in a library with a button in it that i want to go to scene 2 on press of that button. I have dragged that movie onto the stage of scene 1, so the button is not directly on the stage it is within the movie that is on the stage of scene 1 (Are you still with me?). Now when it comes to instructing the button on press to go to scene 2, it does not see scene 2, does anyone know what i can do about it? I do not understand why if i created a button on the stage in scene 1 i CAN jump to scene 2 on click of that button, yet when i want to do the same in a movie that is on the stage it wont see the scene 2. ERR ![]() i do not want to load in an optional swf file as it takes time to download separately and this way i feel can keep everything in one fla file nice and neat without having about 10 thousand frames of animation on scene 1 and scene 2.CAN ANYONE PLEASE HELP
__________________
Lido |
|
#2
|
|||
|
|||
|
I know a lot of people love to work with scenes, but you must understand that in flash the final output has no scenes. all the scenes are complied into one long timeline and the layers are added up. This results in increased file size. But none the less scenes help you feel organised, so that might be helpful.
Unfortunately I don't know of any method by which you can refrence a particular scene in the maintimeline from anyother timeline. However you could use a generic function to navigate between the next and previous scenes. something like this: Code:
function goNextScene () {
nextScene ();
} Code:
on (release) {
_parent.goNextScene ();
}That's one way. the other way is to count the number of frames your scene has. So if Scene 1 has 100 frames, Scene 2 will start from Frame 101. See which method suits you better... [ps] Welcome to FlashMove |
|
#3
|
|||
|
|||
|
cheers..
i probably have to figure out another way to organise content or to do it that way. I just thought there might be a way to navigate to different scenes within a movie clip... i do really want to keep file size to a minimum. but thanks for your help!!
__________________
Lido |
|
#4
|
||||
|
||||
|
A thought.
It would be possible to put a function in your main timeline that jumps to the other scene. You can call the function from another timeline... -just an idea
__________________
CleverPig : Non plaudite. Modo pecuniam jacite
|
|
#5
|
|||
|
|||
|
Frame Label + invisible buton
Hi Lidoly.
Another suggestion is to label frame 1 in scene 2 "main". Then in scene 1 put a button graphic (not a button, just something that looks like your button) Then create an invisable button (New Symbol - Button - put a small square in the HIT state, leaving the other states empty)& place this in the first scene over the button graphic (scale the invisable so that it's roughly the same size as the graphic) Then add Object script to the Invisible on the main stage...... on (release) { gotoAndPlay ("main"); } This should do the job, however I have no idea why the use of the invisible should work whilst a normal button doesn't !!! Kud0s |
|
#6
|
|||
|
|||
|
Quote:
cheers anyway cleverpig
__________________
Lido |
|
#7
|
|||
|
|||
|
Quote:
Lidoly
__________________
Lido |
|
#8
|
||||
|
||||
|
Hi Lidoly,
I don't think you understood my reply. One timeline doesn't know about the scenes in another timeline. As Nav points out, scenes are just a convenient way for us to organise our data within a timeline. I understood your problem. You want a button in a swf at a different level to cause your main timeline to jump to a different scene. If you put a function in your main timeline called say 'jump' Code:
function jump () {
gotoAndPlay ("Scene 2", "label1");
} Code:
on (release){
_level0.jump();
}-cleverpig |
|
#9
|
|||
|
|||
|
hiya cleverpig..
might have misunderstood... cheers for d help! I will have a go tomorow..when i have time and will let you know if its worked! thanx for now!
__________________
Lido |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Basic Movie Clip Scripting Problem | LSW | Flash MX ActionScript |
2 | 04-29-2004 03:50 AM |
| Sound in a Movie Clip and returning to the Main Scene. | Incubator | General Flash | 3 | 04-26-2004 03:55 AM |
| Help Movie clip scene changing | mccooluk | Flash MX |
2 | 03-31-2004 03:43 AM |
| Initiating sounds from movie clip 1 that are located in movie clip 2 | hoglan | Sound and Music |
0 | 12-04-2002 06:31 PM |
| Stop Main Movie to play movie clip before continuing??? | BTP | General Flash | 2 | 07-23-2002 08:27 AM |





