PDA

View Full Version : Multiple Flashvars?


Rossman
01-20-2005, 07:30 PM
Can this be done?

ie.

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="300" height="72" id="playmp3" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="playmp3.swf" />

...

<param name="FlashVars" value="&audioFilename=skh_v1.mp3" />
<param name="FlashVars" value="&endMinutes=12" />
<param name="FlashVars" value="&endSeconds=42" />

...

</object>



I dont think will work but a client is asking me about it...for some reason I doubt Flash will be smart enough to concatenate them all together...

Cheers,
mark

CyanBlue
01-20-2005, 07:43 PM
You know it won't work, why ask then??? :D

I know it won't work, why answer then??? :D

testFlashVars1.html says no and testFlashVars2.html says yes... ;)

Rossman
01-20-2005, 07:57 PM
Thanks Cyan,

Yeah I tried a couple ways as well and had no joy...I am working with some crazy content management system (Rythmix or something) and it wants to have more than one :(

Thanks anyways,
mark

CyanBlue
01-20-2005, 08:12 PM
Well... Tell them to fix on their part cuz you can't do that in Flash... :D

Rossman
01-20-2005, 08:56 PM
Wouldn't it be great if stuff worked like that in reality? :D

CyanBlue
01-20-2005, 09:04 PM
Um... Do you want me send you a hammer or an axe??? :D

Rossman
01-20-2005, 09:12 PM
Well I think key problem is that users have to input things in name/value pairs in the content management system...and I guess it's too complicated for their users to have to put in:

name = flashvars
value = &filename=blah.mp3&endMinutes=8&endSeconds=46

I think that's asking a bit too much of them myself ;) End up with way too many mistakes...

CyanBlue
01-20-2005, 10:15 PM
Well... To be honest with you, it's good that they want to participate in the web site building process by updating the content... But if they don't want to learn how to do that, then what's the point??? They just want you do all the works... Hope they pay you good money for the job... :D

Rossman
01-21-2005, 01:16 AM
Oh Cyan, it's never that simple ;)

They use their content management system to manage the content on their already existing web site - existed long before I was around. I was asked to provide a streaming audio/mp3 player for that site and so I made one in flash that can accept those Flashvars for them. Sadly it doesn't seem like their system can work around it. I'm going to go in and have a look at it though, see if we can't work something out.

And you know I get paid well for all my projects buddy ;)

CyanBlue
01-21-2005, 02:14 AM
Good to hear that they pay you well... ;)
Hopefully you guys can work something out... If not, I can always lend you a hammer or an axe... :D

What about a simple PHP form where they need to fill out the value field and somehow create a text file that Flash movie reads rather than the FlashVars???

Rossman
01-21-2005, 03:42 AM
I'll be thinking about stuff like that, thanks!

Have a good one!