flexcoders  

RE: [flexcoders] Flex and URL variables

Gordon Smith
Thu, 02 Mar 2006 20:39:25 -0800

In Flex 2, the Application instance has a parameters property with name/value pairs for the URL parameters and FlashVars.

 

So in an Application script you would just access parameters.number and it would be 3.

 

From other scripts, you would use Application.application.parameters.number.

 

- Gordon

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXL
Sent: Thursday, March 02, 2006 2:55 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex and URL variables

 

Flex 1.5 or 2?

 

----- Original Message -----

Sent: Thursday, March 02, 2006 5:49 PM

Subject: [flexcoders] Flex and URL variables

 

Alright, I’ve done this with Flash before but I’m wondering how similar it is.

Let’s say I start my app @ http://mysite.com/index.mxml?number=3

What’s the easiest way to get that 3 into a variable in Flex? Using FlashVars in the embed/object tags and then somehow do mx.core.application.Application.number as my variable?

_________________________________________

Jonathan Miranda

Flexible Master of the Web

"Try not to become a man of success, but a man of value." - Albert Einstein

HealthGrades: Guiding America to Better Healthcare™

NASDAQ: HGRD

w  (720) 963-3832

c  (707) 761-0868

[EMAIL PROTECTED]

_________________________________________

The message contains confidential and/or legally privileged information and is intended for use only by the indicated addressee.  If you are not the named addressee you should not disseminate, distribute, or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmissions cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.

 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS