-
setMedia not accepting loadVariables
I do a loadVariables into my frame and to make sure it is working (variables pulled form txt file) I have a couple dynamic text boxes showing the variables.
It is working.
loadVariables("file location", this)
I try to put one of the variables into my setMedia like so:
fplayer.setMedia(fileurl, "FLV", true);
I know fileurl has a url in it, as a dynamic text box is showing me it. For some reason the setMedia does not show anything. When I copy and paste the file URL into the setMedia property, the video player works.
Why is it not accepting the variable?
Thanks
Ryan
Again, thanks for all the help I recieve
-
Senior Member
loadVariables is depercated and you should use loadVars instead
-
tried loadVars instead of loadVariables, got an error while publishing and then none of the variables showed in the dynamic txt.
Ryan
Again, thanks for all the help I recieve
-
Senior Member
well lets see the code ...are you loading the variables in the ondata event?
-
here you go
Code:
var vidid = _root.tid;
this.LoadVars.load("http://www.site.com/fvar.php?tid="+ vidid +"");
loadMovie("http://www.traileraddict.com/content/disney/daninreallife.jpg", "mcover");
var afile = fileurl;
fplayer.setMedia(fileurl, "FLV", true);
fplayer.totalTime = duration;
Thanks
Ryan
*I don't get the LoadVars error anymore, I forgot to cap the L
Again, thanks for all the help I recieve
-
wait, I think I got it now
Again, thanks for all the help I recieve
-
Senior Member
you need to google loadVars thats not enough code or you can search this forum for loadVars there are a ton of posts on the subject
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|