Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

shared libraries

Status
Not open for further replies.

jzauner

Technical User
Feb 21, 2006
22
US
I'm fairly new to Flash, less than a year in addition to my other responsibilities as a designer.

The site I'm working on is pretty expansive. There's more than 150 pages (swf files) and there's the likelihood that the navigation will need to change at several points during the year as new products are designed, so I need a way to update the navigation on every page as a separate linked item.

I've read a bit about shared libraries, but nothing that's helped.

Here's a link to the site:
Thanks in advance.
 
Let me ask this, would it be easier or better to import the navigation as a separate .fla file and call that file to a movie container?
 
okay, change of direction:

I've decided to load a the navigation into a container. I found some code, but I can't make it run onLoad

but.onPress = function () {
_root.createEmptyMovieClip("container", 100);
loadMovie("loaded.swf", "container");
container._x = 0 ;
container._y = 0 ;
}

What I'm hoping is the "loaded.swf" will load when the movie loads, not when the "but" instance is pressed.

 
Nevermind

Just figured it out:

onLoad = function () {
_root.createEmptyMovieClip("container", 100);
loadMovie("loaded.swf", "container");
container._x = 0 ;
container._y = 0 ;
}

The above seems to work
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top