You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

flash embed with jquery - how to call the flash variable? Created Jun 9, 2009

This thread is solved

Views: 5577     Replies: 4     Last reply Sep 8, 2009  
You must login first before you can use this feature

nick

Posts: 2

Registered:
Jun 9, 2009

flash embed with jquery - how to call the flash variable?

Posted: Jun 9, 2009

Hello,

I would like to use flash-embed with jquery to embed an xml flash slideshow.

Flash embed seem such a fantastic and clean way to embed flash!

My question is: what is the correct jquery call to pass the flash variable for the slideshow xml file (eg file=/slideshow2/slideshow.xml)?

My jquery flash embed call is currently as per below - the flash is loaded but the xml file is not retrieved:


$(document).ready(function(){
    $('#slideshow2').flashembed({ 
	 	src: '/slideshow2/slideshow.swf',
		version: [8, 0],
		wmode: 'transparent',
		menu: 'false',
		quality: 'high',
		allowfullscreen: 'false',
		allowscriptaccess: 'false',
		file: '/slideshow2/slideshow.xml'
    });
});

Please advise how I need to call the xml file (flash vars).

I am a css'er so please go easy on the javascript speak.

Thanks so much

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» flash embed with jquery - how to call the flash variable?

Posted: Jun 9, 2009

Reply to: flash embed with jquery - how to call the flash variable?, from gc-nick
Flash variables are given on the second argument. On your case this is:


$(document).ready(function(){ 
	$('#slideshow2').flashembed({
	
		// embedding arguments
		src: '/slideshow2/slideshow.swf', 
		version: [8, 0], 
		wmode: 'transparent', 
		menu: 'false', 
		quality: 'high', 
		allowfullscreen: 'false', 
		allowscriptaccess: 'false'
		
		// "flashvars"
	}, {
		file: '/slideshow2/slideshow.xml' 
	}); 
}); 


nick

Posts: 2

Registered:
Jun 9, 2009

» » flash embed with jquery - how to call the flash variable?

Posted: Jun 9, 2009

Reply to: » flash embed with jquery - how to call the flash variable?, from tipiirai
Wow Tero!!

That works perfectly!

Thanks for spelling it out - very much appreciated.

Thank you so much.

All the best.

Nick

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

Tools are surprisingly staple. I'm happy.

Posted: Jun 9, 2009

Reply to: » » flash embed with jquery - how to call the flash variable?, from gc-nick
great to hear. I can see from these forums that these Tools are quite stable already on the initial release.