Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-22-2001, 12:06 PM   #1
julianthomas
Registered User
 
Join Date: Aug 2001
Posts: 5
Default

hello

let me explain:
i have a very small movie (c.50k) but still with a preloader. this gives you the menu (get them in and get them interested before making them sit through the download). from here you choose to go to for example section a. this loads as a separate url/movie in the same browser. now, once this movie has loaded, how do i jump back to the menu without having to have the preloader go through the motions of getting to the frame where it goes on to the next scene. in other words, how do i skip the preloader on the second visit to the menu movie?

see what i mean? any help would be great thanks!
julianthomas is offline   Reply With Quote
Old 08-22-2001, 01:45 PM   #2
pinkaboo
power to the pinK
 
pinkaboo's Avatar
 
Join Date: Jul 2001
Location: Atlanta Atlanta ATLANTA!
Posts: 1,527
Send a message via ICQ to pinkaboo
Default

well, why don't you just simply label the frame after the preloader that you want to go back to with a unique name and then instruct flash to jump you back to that exact frame when required?

pinkaboo is offline   Reply With Quote
Old 08-22-2001, 02:47 PM   #3
julianthomas
Registered User
 
Join Date: Aug 2001
Posts: 5
Default

sounds good, but, what is the script for targeting this label - remember, i am targeting this frame from a button in a different movie, in a different url.

thanks
julianthomas is offline   Reply With Quote
Old 08-23-2001, 09:57 AM   #4
pinkaboo
power to the pinK
 
pinkaboo's Avatar
 
Join Date: Jul 2001
Location: Atlanta Atlanta ATLANTA!
Posts: 1,527
Send a message via ICQ to pinkaboo
Default

Um, I'm afraid I'm not quite sure what you mean when you say that each section loads into a separate url/movie as if that is the case I don't really understand why you have the preloader.
I've had a play and the only way that occurred to me to do it is to keep the entire site within one swf file and load each section into a container movie which can then be used to target the loaded swfs.

so, you have your main swf:

"completemovie.swf" which initially loads the preloader into an empty container movie on the main timeline, (lets call that "container") code is on first frame:

Code:
loadMovie ("preloader.swf", "_root.container");
to go to another section you then load the new section into the container, say on a button action:

Code:
on (release) {
    loadMovie ("section1.swf", "_root.container");
}
and then from here you want to go back to the index, but without showing the preloader, so you need to add an if action on the first frame of the "preloader.swf" :

Code:
if (_root:x ==2) {
    gotoAndStop ("indexframe");
} else {
    play ();
}
this tells the preloader movie to go straight to the frame labelled "indexframe" if variable "x" = 2, which of course it won't the first time the movie runs. However, the second time you call the movie you will make x = 2 by setting the variable in the button (within completemovie.swf) you use to call the "preloader.swf" to replay:

Code:
on (release) {
    loadMovie ("preloader.swf", "_root.container");
    _root:x = 2;
}
thus the "preloader.swf" should skip the preload and go straight to the index. phew.

NOTE that when using variable "x" I have quoted the full path to the variable (_root:x) as unless you do that flash won't be able to find it. Especially important because you are checking variables from within loaded movies.

Of course, this also goes for any path addressing and you would have to make sure that all addressing in your loaded movies takes into account _root.container as else paths won't be readable.

Hope that is of some help anyway.

Anyone else got any ideas?

Good luck

K

pinkaboo is offline   Reply With Quote
Old 08-23-2001, 09:13 PM   #5
Pheonyx
Registered User
 
Join Date: Aug 2001
Posts: 27
Lightbulb

Pinkaboo's idea would work the best....you don't want to switch URL's, it would be too messy. Keep it all in the same URL and just load different SWF's into it.
Pheonyx is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie question - ComboBox ActionScript & MX 2004 Anello Giovanni Components 1 02-27-2005 06:01 AM
Yet another question....java? HTML? Actionscript? Jackred22 ActionScript 1.0 (and below) 9 07-05-2004 03:30 PM
Quick question about Animation using Actionscript 3mpathy Other Flash General Questions 5 09-16-2003 08:18 AM
Question about gotoAndPlay Behavior erictrav ActionScript 1.0 (and below) 4 10-09-2002 12:25 AM
animating text with actionscript tutorial question jake88 ActionScript 1.0 (and below) 1 12-24-2000 06:20 AM


All times are GMT. The time now is 02:27 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.