| Issue 12: | playerWrapperUrl issue | |
| 2 people starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. Download demo 2. Edit MainChromless.mxml, set playerWrapperUrl to some other value 3. Launch What is the expected output? What do you see instead? I've excpecting ChromlessPlayer with as2_tubeloc.swf loaded from some other domain. Instead i don't see ChromlessPlayer(like it is not initialized) What version of the product are you using? On what operating system? Adobe Flex builder 3.0(3.2 sdk). Windows XP Please provide any additional information below. As I understant your code, onLocalConnectionEvent is not firing in MovieSprite.as and loader is not adding as child. If you want to contact me personally please email at vladimir.belov (at) gmail.com |
|
,
Mar 25, 2009
And forgot to post some console output: [SWF] E:\work\flex projects\YouTubeTestTubeLoc\bin-debug\MainChromeless.swf - 1 045 142 bytes after decompression [SWF] /swf/as2_tubeloc.swf - 5 158 bytes after decompression [SWF] /swf/cl.swf - 7 720 bytes after decompression [SWF] /swf/apiplayer.swf - 155 937 bytes after decompression So I know that as2_tubeloc.swf is loaded but not firing events. |
|
,
Mar 27, 2009
As I understant the problem is in flash security that doesn't allow to access other domain script. |
|
,
Apr 03, 2009
You can solve this issue by using "_" symbol in the beginning of as3Id and as2Id. This will allow LocalConnection for all domain. For more detailed information please refer Adobe AS3.0 Language Reference for LocalConnection class. Thanks to developers of this Youtube wrapper. You saved lots of time for our development team. |
|
,
Apr 03, 2009
Thank you very much. Missed that detail in documentation. Problem is solved. I also want to say Thanks to developers :) |
|
,
Apr 03, 2009
Sorry, I was mistaken. Everything was working for tests on local machine with
as2_tubeloc.swf on remote host. When both main application container (html) and
as2_tubeloc.swf hosted on different domains our method ('_' in the beginning of
connection name) partially works, i.e. main swf recieves LocalConnection calls, but
as2_tubeloc.swf doesn't.
I presume that corresponding changes should be made in as2_tubeloc.swf security
permissions (via code update) in order wrapper to be operational for different
domains case.
|
|
,
Apr 03, 2009
At this moment everything is works for me. There is a JS code that running on some(any) domain that loading my player from other domain(as2_tubeloc.swf is locating on same domain as my player). As I understant everything should work without "_", because player and wrapper are on same domain. But they are not. Anyway - you helped me to solve my problem, thank you. But as I understant there is still issue with as2_tubeloc when it's loading from other domain then parent swf. |
|
,
Jun 26, 2009
yes, this problem still exists and I'm in panic! Somebody please help to solve this issue - the library doesn't fully work when main swf and as2_tubeloc.swf are on different domains. |
|
,
Jun 26, 2009
Hey, I've fix it!
it was a mistake in the TubeLoc.as in the allowing another domains. In the AS2
LocalConnection.allowDomain is not a buil-in function but it is a callback that you
need to implement, so except line
receivingConnection.allowDomain("*");
you need to line
receivingConnection.allowDomain = function(){return true};
and it will work!
I attach fixed swf file.
And author need to have this bug fixed in the code.
|
|
,
Aug 31, 2009
I. Kurochka, I tested your swf file on my application, but it did not load the video. Are you sure you attached the correct swf file? |
|
|
|