| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Aug 2009
Posts: 25
|
Hi all,
This is pradeep, i have little bit confuse is when we create mxml component mycanvas extends like canvas in actionscipt we can write a constructor for mycanvas but in case of mxml if i write in the script tag it shows an error. Please let me know the bottom line of this core conecpt. Regards, Pradeep. |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Aug 2009
Posts: 23
|
You can't write a constructor inside an MXML file, because Flex adds one of its own. If you need to pass parameters to your MXML, consider creating public setters of variables in the MXML.
|
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|