Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Reading the Flash Movie filename dynamically from within the movie

Posted on 2004-08-19
5
Medium Priority
?
145 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 2000 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

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
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…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

926 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