Search the web
Sign In
New User? Sign Up
flexcoders · RIA Development with Adobe Flex
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
setting tileList.id in this.addChild(tileList) actionscript ...   Message List  
Reply | Forward Message #130855 of 149661 |
var tileList:TileList = new TileList;
tileList.dataProvider = thumbArray;
this.addChild(tileList);

Although dataprovider is set, it is not getting bound, so I think I need

override public function initialize():void
{
BindingUtils.bindProperty(id of tileList, "dataProvider", this,
"thumbArray");
super.initialize();
}

But I cannot find a way of setting the tileList child id to e.g.
"myTileList" so I can talk to it. TIA,

Mic.





Fri Nov 21, 2008 4:45 am

chigwell23
Offline Offline
Send Email Send Email

Forward
Message #130855 of 149661 |
Expand Messages Author Sort by Date

var tileList:TileList = new TileList; tileList.dataProvider = thumbArray; this.addChild(tileList); Although dataprovider is set, it is not getting bound, so I...
Mic
chigwell23
Offline Send Email
Nov 21, 2008
4:45 am

... need ... this, ... (1) An array is always equal to itself, no matter how many changes you make to it, so you can't bind to it unless you broadcast change ...
Amy
droponrcll
Offline Send Email
Nov 21, 2008
2:46 pm

"If you add an id to a component created at runtime, that id can't be used as a reference to it.", precisely. It is just a string property of the component...
Tracy Spratt
nts333rd
Offline Send Email
Nov 21, 2008
3:49 pm

Thanks all - your explanations are awesome!....
Mic
chigwell23
Offline Send Email
Nov 21, 2008
11:22 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help