Hi,

          I have created a main application file in which I have methods createUI and DestroyUI. When I click on a link its child component appears in that main window. Now the problem is inside this component I have a label. So when I tracks mouseDown event for this label I call the createUI method by creating the object of Main Application file inside the action Script block. But its showing the error.

 

 

A class's instance variables may only be initialized to compile-time constant expressions.

 

<mx:Script>

    <![CDATA[

        var leftAccord:leftAccordian=new leftAccordian(); // Main Application File

                        [Bindable]

                        function setVisibility(flag:Boolean):Void

                        {

                                    mx.controls.Alert("Flag "+flag);

            //formattoolbar.visible=flag;                               

        }

    ]]>

    </mx:Script>

 

<mx:Label text="View Report" x="389" y="4" width="77" height="18" color="#FFFFFF" fontSize="10" fontWeight="bold" mouseDown="leftAccord.destroyUI();leftAccord.createUI('pointCalciReport');"/>

 

 

 

 

Could anybody suggest me what mistake I m commiting? Or what should be done to get this working?

 

Regards,

 

Akash

 

__._,_.___

--
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
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
Disclaimer

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. The recipient should check this email and any attachments for the presence of viruses. Ness has taken every reasonable precaution to minimize this risk, and accepts no liability for any damage caused by any virus transmitted in this email. Ness reserves the rights to monitor and review the content of all messages sent to or from this E-mail address, and store them on the Ness E-mail system.

Reply via email to