Solved

Reading the Flash Movie filename dynamically from within the movie

Posted on 2004-08-19
5
137 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Youtube video error 30 872
How to convert pdf file to html file 8 420
How to convert image files to a movie file 6 115
Include Adobe AIR libraries in Flash Builder 4 159
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

752 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