Forums  

Go Back   Forums > Talk > General FPP Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 11-13-2008, 07:40 AM
Vincent Ogloblinsky Vincent Ogloblinsky is offline
Member
 
Join Date: Jul 2007
Location: Rennes, France
Posts: 90
Downloads: 0
Uploads: 0
Send a message via MSN to Vincent Ogloblinsky
Default EmbedPano - Spot object and function

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:

Code:
panorama.loadPanorama("xml_file=./pano.php?id="+_id);
The problem is in my xml file, i have a spot object that contains a mp3player.

Code:
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:

Code:
loader.visible = false;
	panorama = null;
	loader = null;
The sound is again played. May be that tricks could work:

Code:
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.
__________________
www.photoglob.fr | Panoreport , shows pictures of Brittany and more...
www.360ouest.com | First 360 agency in France
Reply With Quote
  #2  
Old 11-18-2008, 12:32 PM
LepLep LepLep is offline
Senior Member
 
Join Date: Jun 2008
Posts: 185
Downloads: 0
Uploads: 0
Default

your command try to access url property of spot "mp3player" in xml file
its a bit tricky but to accress .root of your spot (first you must make sure that its registered as a plugin) you would need sth like this
Code:
panorama.externals.hotspots.getSpot("mp3player").loader.content.functionCalledInsidePlugin;
__________________
midnight sun in Tromsų - 360 panorama or northern lights over Tromsų - 360 panorama
anonymous tourist:"but why there is only one sun?"
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 04:38 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.