updated. You should write this as:
addChild.relativeTo = myPanel;
addChild.target = newButton;
Stephen
-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rama satoskar
Sent: Friday, May 26, 2006 6:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] A Problem in the example of 'using view states '
hi all,
i was trying the sample example of "Using View states" to create a
button dynamically using actionscript 3.0 from the help provided by flex
beta 3.0. However i encounter a problem at the statement
"var addChild:AddChild = new AddChild();
addChild.target = myPanel;
addChild.child = newButton;"
The error is that access to an undefined property of addchild object.
I checked the reference library to discover that there is no 'child'
property of the addchild class object. even the following code is a
problem
"addChildDyn.childFactory = new
DeferredInstanceFromFunction(createMyButton);"
What shud i do?
Kindly help
.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Protect your PC from spy ware with award winning anti spy technology.
It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
--
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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.