Vincent Ogloblinsky
11-13-2008, 07:40 AM
Hi all,
I work actually on a big flash project using FPP embed.
I configure my loader and panorama, and after i load an xml file for my panorama like that:
panorama.loadPanorama("xml_file=./pano.php?id="+_id);
The problem is in my xml file, i have a spot object that contains a mp3player.
onStart = 'loadPreview();'
loadPreview ='
external.autorotator.disabled=1;
loadPano(panoName=./360/vendee_globe_2008_depart/pano/small/pano&panHome=-16&tiltHome=-6&zoomHome=0.568,300);
onTransitionEnd=loadMain();'
loadMain = 'loadPano(panoName=./360/vendee_globe_2008_depart/pano/pano,1000);
onTransitionEnd=initHotspots();'
initHotspots = '
external.autorotator.disabled=0;
copyright.visible = 1;
fs.visible = 1;
mp3player.visible = 1;
mp3player.url= ./resources/global/mp3player.swf?file=360/vendee_globe_2008_depart/media/sound.mp3&repeat=1000&level=50&autoplay=true;'
<spot id='mp3player' visible='0' static='1' salign='LT' align='LB' enableSoundPanning='1' soundRadius='60' staticX='3' staticY='37' depth='50' />
The problem is when i close my panorama by this:
loader.visible = false;
panorama = null;
loader = null;
The sound is again played. May be that tricks could work:
panorama.externals.hotspots.getSpot("mp3player").url = "";
But my question is can i access to the all function of the swf of the mp3player, which contains for example a stop() function to stop the mp3.
I work actually on a big flash project using FPP embed.
I configure my loader and panorama, and after i load an xml file for my panorama like that:
panorama.loadPanorama("xml_file=./pano.php?id="+_id);
The problem is in my xml file, i have a spot object that contains a mp3player.
onStart = 'loadPreview();'
loadPreview ='
external.autorotator.disabled=1;
loadPano(panoName=./360/vendee_globe_2008_depart/pano/small/pano&panHome=-16&tiltHome=-6&zoomHome=0.568,300);
onTransitionEnd=loadMain();'
loadMain = 'loadPano(panoName=./360/vendee_globe_2008_depart/pano/pano,1000);
onTransitionEnd=initHotspots();'
initHotspots = '
external.autorotator.disabled=0;
copyright.visible = 1;
fs.visible = 1;
mp3player.visible = 1;
mp3player.url= ./resources/global/mp3player.swf?file=360/vendee_globe_2008_depart/media/sound.mp3&repeat=1000&level=50&autoplay=true;'
<spot id='mp3player' visible='0' static='1' salign='LT' align='LB' enableSoundPanning='1' soundRadius='60' staticX='3' staticY='37' depth='50' />
The problem is when i close my panorama by this:
loader.visible = false;
panorama = null;
loader = null;
The sound is again played. May be that tricks could work:
panorama.externals.hotspots.getSpot("mp3player").url = "";
But my question is can i access to the all function of the swf of the mp3player, which contains for example a stop() function to stop the mp3.