This content has been marked as final. Show 6 replies
yes. you can always use the absolute path to the flv from anywhere to access it.
when in doubt you can use trace(this) on the timeline that's accessing the object/variable your want to find (in the output panel) the absolute path that should prefix the path/name that's already accessing the object/variable.
if you don't understand that above paragraph do two things:
1. post the path to the flv that currently works in your first fla
2. post the output panel results after placing trace(this) on the line below your path in your first movie and testing your first movie.
I cant use an absolute path because I have 10 video's and only 1 player movie. Depending on which movie they choose it will store that videos name in a string (first swf) and then the player will open (loadMovie) and I want it to read that string from the first swf and play that specific file in the FLV player (second swf).
i don't think you understand what an absolute path means. it has nothing to do with hard coding the path/name.
follow steps 1 and 2.
Yah I'm not too sure I get what you are saying....
var videoToLoad:String= this._parent.toolText+".flv"
Thats the code that Im using to store the string of the flv that it needs to load in the second swf. When I type trace(videoToLoad) I get Work.flv (which is correct)...now all I want is for that second swf to read that Work.flv and play that specific file (which is in the same directory so I would just need to use contentPath=videoToLoad)
When I do the trace(this) I get:
I Figured it out. I ended up just using a _global variable.
Thanks for the help
for others that may be interested:
is the correct path/variable name to the variable storing the flv reference (assuming that trace(this) was placed on the same timeline as the videoToLoad assignment).