?
Solved

Flash MX: Need to get the working directory of my flash movie.

Posted on 2005-04-03
3
Medium Priority
?
383 Views
Last Modified: 2008-03-06
I need to be able to run this on many different file systems and can't use absolute paths.

How do I get the directory my swf is running in?

Thank you.

Regards,

Dr34m3r
0
Comment
Question by:dr34m3rs
[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
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
Billystyx earned 1000 total points
ID: 13691400
what do you need to know the current directory for?
If its just for loading files, just use relative file paths and it will be the same if all the same stuff is in each folder. Make sense? Or not what you're looking for?

Billystyx
0
 
LVL 1

Author Comment

by:dr34m3rs
ID: 13691580
Hey I just found out it was because of the way I was loading the swf files. They were being loaded by an exe compiled by screenweaver - and the way screenweaver loads a swf file - it puts it into a windows tmp dir and loads it from there - so all the relative dirs within the program wont run because they don't actually read from the exe's folder path, but the swf tmp path - how annoying is that lol...

Anyways - I figured out what I need to do.

Thank you very much.

Best regards,

Dr34m3r
0
 
LVL 18

Expert Comment

by:Billystyx
ID: 13692396
thank you:)
0

Featured Post

Independent Software Vendors: 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

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
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 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.
Suggested Courses

771 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