-
AS3 root issue: strSource:String =
hi FK need some help with this!
I can load HD.f4v file through this root(basic)
swfobject.embedSWF(HD-01.swf)
HD-01.swf contains player controls and the var strSource:String = "HD.f4v";
But I want to add a SWF with a UILoader, name HD-Loader.swf, so know the path is: HD-Loader.swf/HD-01.swf
//HD-Loader.swf code for UILoader to auto onload HD-01.swf
var swfurl:String = "HD-01.swf";
var swfload: URLRequest = new URLRequest(swfurl);
myLoader2.scaleContent = true;
myLoader2.load(swfload);
What is happening is the HD-01.swf appears on stage but it is not linking through to the f4v file with var strSource:String = "HD.f4v";
Tried to explain it, Many Thanks Paul
-
Senior Member
What does this line mean
var strSource:String = "HD.f4v";
Are you loading a video? How are you loading the video?
- The right of the People to create Flash movies shall not be infringed. -
-
Hi, tried to explain it, obviously I didnt! Yes I am loading a video file HD.f4v from HD-01.swf, which contains code for netStream, player controls and loads var strSource:String = "HD.f4v" and works fine!
The issue is instead of loading my HD.f4v file through the swfobject.embedSWF(HD-01.swf) I need to use a UIloader component in UIloader.swf that replaces HD-01.swf as main swfObject, like below.
swfobject.embedSWF(UIloader.swf) | (HD-01.swf -HD.f4v)
I want to auto load HD-01.swf(containing Vid load + controls) into UIloader.swf
At the moment my code in UIloader.swf auto loads HD-01.swf (I can see vid controls) but var strSource:String = "HD.f4v" does not load .f4v
Is this just a Path _Root issue? thanks P
-
Senior Member
This code alone cannot load a video. What is your code to load the video? I don't see that there is path issue as long as the movies and flv are in the folder. I tested that using a movie with the videocomponent.
- The right of the People to create Flash movies shall not be infringed. -
-
Hi Thanks for your interest, I have worked it out! thats the good news. The problem was not my coding but the way I named my files, they where to similiar, I renamed them and the .f4v file loads in Uiloader correctly.
HD-01H_Loader.swf + HD-01H.swf did not work
HD_loader.swf + HD-01H.swf does
These kind of issues you learn the hard way! I guess, cheers P
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
|