Dewdan
10-08-2009, 10:57 PM
Hi everybody,
I have been away for quite a while doing some other things but now I am back and hope to be helpful whenever I can.
I have developed a video player and now I am trying to setup a plug-in that would make it work as it should with the panoPlayer.
I am encountering quite a few problems.
The first test under development (http://www.net-work-s.com/testFlashVideo/)
It will load the pano and the video on top since i haven't been hable to make it invisible onLoad.
The player it self works fine, but interaction with the FPP is quite another thing:
1. I try using LocalConnection and it works well to open the video player from the "video Button", but couldn't get it to close from the actual video player "close X"
2.I tried to uploaded it as a plugin into the FPP, and now i can use the "close X" from the video player itself but can't seem to access the player from the pano hotspots "video Button" which now just loads pano 99 which is a very light black image.
Here is some essential code so maybe someone could enlighten me because my eyes are dropping out having read most of the threads i have missed since i did my first pano in Helsinki.
From flash side:
function setAttribute (name:String, value:String, time:String=null, type:String=null, onDoneFunction:String=null, onInterruptFunction:String=null, relative:int=0) {
if (name.toLowerCase() == "video"){
if (value.toLowerCase() == "playvideo"){
openVideo();
}
if (value.toLowerCase() == "stopvideo"){
closeVideo();
}
}
}
Or trying to execute pano from flash with:
hotspots.execute("loadPano(?panoName=99&pan=1&tilt=-50&zoom=0.61&alt=TEST,1000,stripes)");
Nothing happens.
On the XML side i am trying to call that with:
onPress="external.loadAS3.video=playvideo;
All this are just not working.
In the past I have work mainly with LocalConnection but actually never been able to call any action from XML except to scale or render invisible (own PANO functions.
You can find the xml from The xml file (http://www.net-work-s.com/testFlashVideo/oceanClub.xml)
Tomorrow I try for the 4th day to figure out my mess :-)
Thanks
I have been away for quite a while doing some other things but now I am back and hope to be helpful whenever I can.
I have developed a video player and now I am trying to setup a plug-in that would make it work as it should with the panoPlayer.
I am encountering quite a few problems.
The first test under development (http://www.net-work-s.com/testFlashVideo/)
It will load the pano and the video on top since i haven't been hable to make it invisible onLoad.
The player it self works fine, but interaction with the FPP is quite another thing:
1. I try using LocalConnection and it works well to open the video player from the "video Button", but couldn't get it to close from the actual video player "close X"
2.I tried to uploaded it as a plugin into the FPP, and now i can use the "close X" from the video player itself but can't seem to access the player from the pano hotspots "video Button" which now just loads pano 99 which is a very light black image.
Here is some essential code so maybe someone could enlighten me because my eyes are dropping out having read most of the threads i have missed since i did my first pano in Helsinki.
From flash side:
function setAttribute (name:String, value:String, time:String=null, type:String=null, onDoneFunction:String=null, onInterruptFunction:String=null, relative:int=0) {
if (name.toLowerCase() == "video"){
if (value.toLowerCase() == "playvideo"){
openVideo();
}
if (value.toLowerCase() == "stopvideo"){
closeVideo();
}
}
}
Or trying to execute pano from flash with:
hotspots.execute("loadPano(?panoName=99&pan=1&tilt=-50&zoom=0.61&alt=TEST,1000,stripes)");
Nothing happens.
On the XML side i am trying to call that with:
onPress="external.loadAS3.video=playvideo;
All this are just not working.
In the past I have work mainly with LocalConnection but actually never been able to call any action from XML except to scale or render invisible (own PANO functions.
You can find the xml from The xml file (http://www.net-work-s.com/testFlashVideo/oceanClub.xml)
Tomorrow I try for the 4th day to figure out my mess :-)
Thanks