|
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
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 __,_._,___
|
- [flexcoders] Complie Time Constant expressions Exception akash
- Re: [flexcoders] Complie Time Constant expressions Exc... Ralf Bokelberg

