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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I reference a library graphic

Status
Not open for further replies.

tkt

Programmer
Dec 13, 2001
7
0
0
US

What is the path to an image in the library?

I want to a larger version of a graphic to display in a targeted invisible movie (movie clip with nothing in it) when a smaller graphic is rolled over. This works below but I want to reference the picuture that is in the library rather than calling an external picture. I don't want the .swf to rely on external files for graphics.

on (rollOver)
{
var thisimage = "o001S.jgp";
loadMovie(thisimage,_root.invisible_movie);
}

Thanks for the help,
Tamara
 
I will presume you are using Flash MX.

In the library, right-click on the symbol in the library and select "Linkage..."

Then check off "Export for ActionScript" and in the identifier field, type in a name that you will use to reference the item.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top