You will need to use a custom html wrapper, containing javascript that
calls setVariable().

For example, if your Flash Player object has the id "myFlexApp", you can
pass a value(or call a setter method) like this:

myFlexApp.setVariable("myMethod","myData");

In the Flex app you need to have declared a setter property in script:
//Called by host html wrapper
        public function set myMethod(sMyData:String):Void
        {
                myAccordion.selectedIndex = parseInt(sMyData);
        }

I'm not sure about limitations on data types you can pass in the
argument, but I know string works.

Tracy


-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of nextadvantage
Sent: Tuesday, May 31, 2005 8:26 PM
To: [email protected]
Subject: [flexcoders] Accordion control through html

Can I control the state of an embeded accordion with html/javascript?
If so how? Thx




 
Yahoo! Groups Links



 






 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to