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

ActionScript to get file name 1

Status
Not open for further replies.

mbiro

Programmer
Nov 20, 2001
304
Is there a way to have actionScript 'read' the name of the swf it is in? I have a preloader that loads a second swf. I want to reuse this many times loading different files.

For example, I want to name the preloader playerA.swf and have actionscript that loads a file called playerA1.swf. The actionscript would append a '1' to its own name and look for that file.

Is this possible?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top