Solved

Reading the Flash Movie filename dynamically from within the movie

Posted on 2004-08-19
5
131 Views
Last Modified: 2012-05-05
Is there a way to grab the name of the .swf file from inside the Flash movie?  Like "this._name" (which I already tried and it did not work) so that I can read in the name of the .swf in order to match it with the appropriate text file?
0
Comment
Question by:acekz
  • 3
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
mr_asphalt earned 500 total points
ID: 11841165
_url shows the url of the movie

if you just want the filename of the movie, not the path, use something like
_url.substring(_url.lastIndexOf("/") + 1)
0
 
LVL 39

Expert Comment

by:blue-genie
ID: 11841468
no
0
 
LVL 2

Expert Comment

by:mr_asphalt
ID: 11841818
Um, yes, actually.

try the following:
trace(_url);
trace(_url.substring(_url.lastIndexOf("/") + 1));
0
 
LVL 39

Expert Comment

by:blue-genie
ID: 11842519
ok
0
 
LVL 2

Expert Comment

by:mr_asphalt
ID: 11874074
Hi acekz,

did this answer your question?
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now