Solved

Reading the Flash Movie filename dynamically from within the movie

Posted on 2004-08-19
5
136 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Does Flash have a Firefox problem? 5 322
anti-download video publishing site? 6 617
Cannot install Adove Flash player on Windows 2012R2 6 103
Web browser crash when play videos 24 351
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): …
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…

820 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