LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




ReplyREPLY THREAD
 
Thread Tools Display Modes
  #1  
Old 03-26-2001, 05:27 PM
lidoly lidoly is offline
Registered User
 
Join Date: Mar 2001
Posts: 7
Rep Power: 0
lidoly is on a distinguished road
Cyborg

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
Reply With Quote
  #2  
Old 03-26-2001, 06:16 PM
Nav Nav is offline
Ex-Moderator
 
Join Date: May 2000
Location: Jambudvipa
Posts: 223
Rep Power: 14
Nav is on a distinguished road
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 ();
}
and from the next scene button:

Code:
on (release) {
	_parent.goNextScene ();
}
And make a similar func for prevScene

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
__________________
Nav
Read my blog
Reply With Quote
  #3  
Old 03-28-2001, 08:56 AM
lidoly lidoly is offline
Registered User
 
Join Date: Mar 2001
Posts: 7
Rep Power: 0
lidoly is on a distinguished road
Rejoice

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
Reply With Quote
  #4  
Old 03-28-2001, 11:40 AM
cleverpig's Avatar
cleverpig cleverpig is offline

Piggy Moderator
 
Join Date: Feb 2001
Location: Singapore
Posts: 712
Rep Power: 13
cleverpig is on a distinguished road
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
Reply With Quote
  #5  
Old 03-28-2001, 04:51 PM
kud0s kud0s is offline
Registered User
 
Join Date: Mar 2001
Posts: 184
Rep Power: 13
kud0s is on a distinguished road
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
Reply With Quote
  #6  
Old 03-28-2001, 07:21 PM
lidoly lidoly is offline
Registered User
 
Join Date: Mar 2001
Posts: 7
Rep Power: 0
lidoly is on a distinguished road
Big Grin

Quote:
Originally posted by cleverpig 
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

I think the timeline would not work on this one, as the button within the movieclip that is on main scene is what i want to control jumping from main scene to scene 2. Its only to keep things tidy...
cheers anyway cleverpig
__________________
Lido
Reply With Quote
  #7  
Old 03-28-2001, 07:23 PM
lidoly lidoly is offline
Registered User
 
Join Date: Mar 2001
Posts: 7
Rep Power: 0
lidoly is on a distinguished road
Miza Re: Frame Label + invisible buton

Quote:
Originally posted by kud0s 
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
Interesting method... thanks...

Lidoly
__________________
Lido
Reply With Quote
  #8  
Old 03-29-2001, 05:12 AM
cleverpig's Avatar
cleverpig cleverpig is offline

Piggy Moderator
 
Join Date: Feb 2001
Location: Singapore
Posts: 712
Rep Power: 13
cleverpig is on a distinguished road
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");
}
you can call this function from a button on another timeline
Code:
on (release){
  _level0.jump();
}
...even though the other button knows nothing about the organisation of your main timeline I think this would work.

-cleverpig
Reply With Quote
  #9  
Old 03-29-2001, 06:36 PM
lidoly lidoly is offline
Registered User
 
Join Date: Mar 2001
Posts: 7
Rep Power: 0
lidoly is on a distinguished road
Miza

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
Reply With Quote


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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




All times are GMT. The time now is 01:45 AM.