macromedia flash sitedesign:
jonnie1988,
[quoted text, click to view] > My website has a "news" page, a "profile" page, an "audio"
> page, a "visual" page, and a "contact" page.
Do you mean unique HTML pages that contain SWFs, or are all these
"pages" represented inside a single SWF?
[quoted text, click to view] > My "profile" page has 3 sub-pages, being "history", "albums",
> and "band members".
The term "sub-page" isn't clear to me. I *think* I know what you mean,
but there isn't any official term "sub-page" ... so, well, what *do* you
mean? :)
[quoted text, click to view] > When I click to open the profile page from the news page,
> an animation plays to get rid of the news page, and another
> animation plays to enter the profile page.
I'm with you.
[quoted text, click to view] > Now the _global.currentPage is equal to "profile", and the
> mini "history" page is displayed.
So you created an arbitrary currentPage property of the _global object,
sometimes called a "global variable"; I'm still with you.
[quoted text, click to view] > In order for certain animations to play when I want them to,
> doesn't this "history" page also have to be the currentPage?
You haven't explained what this _global.currentPage is for yet -- how is
it used?
[quoted text, click to view] > When I click band members, an animation plays to get rid
> of the history page, and another animation plays to introduce
> the band members page, and the _global.currentPage is set
> to "band members", instead of "history" or "profile".
Unless you *get* the value of this _global property, it isn't really
being used for anything. You can set it to whatever value you like, but
unless you check its value from time to time, what good is it? Of course,
you may very well be doing this ... if so, please explain what you're doing,
and show the ActionScript you've written to do it.
[quoted text, click to view] > This means that I can't now click on any of "news", "profile",
> "audio", "visual" or "contact", because my actionscript is only
> set up to play the certain entry and exit animations if the
> _global.currentPage is set to one of those 5 pages.
Without knowing any more detail, I'd say go ahead and change the way
your ActionScript is set up. ;)
[quoted text, click to view] > Is there a way that you can have TWO currentPages?
Sure. _global.currentPage1 and _global.currentPage2 -- or, make that
_global property an array ...
var myCurrentPages = new Array();
myCurrentPages[0] = "uno";
myCurrentPages[1] = "uno";
myCurrentPages[2] = "uno";
_global.currentPages = myCurrentPages;
David
stiller (at) quip (dot) net
"Luck is the residue of good design."