Subscribe to RSS
get email updates
home | about | pixDif AIR app | video tutorials
polyGeek.com
polyGeek.com

Pledge drive: Help me help 360|Flex who is helping me

The 360|Flex conference is coming up soon - March 8-10 in San Jose. It seems that John and Tom - the organizers - have everything ready to go except for one little item: getting a sponsor for the USB Thumbdrive that comes in the swag-bag. They offered it to me but it's a little out of my marketing budget for RunPee.com - which is zero dollars. But they are on the hook either way so we worked out a deal. I'll start a pledge drive and try to raise as much money as I can to cover the cost of sponsoring the thumbdrive - $1,300 target. In exchange they will put RunPee.com on it. I'm not on the hook for anything except trying to raise money to cover their costs so that they don't take a loss.

We would all appreciate it if you chipped in a few bucks. I will give every dollar donated to my Paypal account to 360|Flex up until the conference is over. Let me know if you would like for your donation to be public or not because I'll keep a running tab on this page of who donated and how much.

Paypal donations to: Dan@polyGeek.com

Thanks for your support,
Dan Florio, John Wilker, Tom Ortega.

Dan Florio ( that's me )-$100, Lee Button-$100, Randy Troppmann-$100, David Ortinau-$50, Faisal Abid Founder-$55, Pintley.com-$50, Douglas Reynolds Consulting-$50, Nick Kwiatkowski-$25, Patrick McDonald-$10, Jeremy Saenz-$25, Ivan Alvarez-$25, Jen Floyd-$10, Matt LeGrand-$25, Jens Brynildsen-$25, Gates M Stoner-$20, Emerson Tyler Wright-$50, John Daily-$10, Jason Fincanon-$25, Evan Zeimet-$20 Here is a complete list of the people who have donated

Reading FlashVars in Flex

October 14th, 2008 . by polygeek

To read the value of a FlashVar(s) use the following in your creationComplete handler.

1
_myNumber = Application.application.parameters.myNumber;

And the Javascript snippet would look like this if you using the default AC_FL_RunContent method.

1
"FlashVars", "myNumber=123",

Or for multiple variables:

1
"FlashVars", "myNumber=124&myString=polyGeek",

And if you’re using SWFObject then the Javascript would look something like this:

1
2
3
4
<script type="text/javascript">
var flashvars = {
myNumber: "123.456",
myString: "polyGeek" };
1
2
3
4
5
6
7
8
swfobject.embedSWF( '${application}.swf',
'${application}_div',
'${width}', '${height}',
'9.0.45',
'expressinstall.swf',
flashvars,
{bgcolor: '#ffffff', menu: 'false'}, {id: '${application}'});
</script>

More info about SWFObject at GoogleCode.

If something here has proved valuable to you then feel free to drop a couple of bucks in the tip-jar.

Post to Twitter Post to Delicious Post to Facebook Post to Reddit Post to StumbleUpon


similar posts

2 Responses to “Reading FlashVars in Flex”



[...] covers it. If you need to read flashvars in a Flex project then try this. Share and [...]

comment number 2 by: Nash

   Welcome back (Change)

Leave a Reply

comment feed RSS   subscribe to this comment thread

Recent Posts

   



polyGeek.com

© Copyright 2008 polyGeek.com / Dan Florio, All Rights Reserved Except Where Explicitly Stated
Web Developement Blogs - Blog Catalog Blog Directory
M2 Websites
Local Directory for Los Angeles, CA

Better Tag Cloud