| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Feb 2006
Posts: 22
|
How to create below simple grid from action script?
In the beta version of as 3, it didnot have createchild in grid var g:Grid = new Grid(); var gr:GridRow = new GridRow(); var gi:GridItem = new GridItem(); the has g.createChildId() but not create child. <mx:Grid x="115" y="490"> <mx:GridRow> <mx:GridItem> </mx:GridItem> <mx:GridItem> </mx:GridItem> </mx:GridRow> <mx:GridRow> <mx:GridItem> </mx:GridItem> <mx:GridItem> </mx:GridItem> </mx:GridRow> </mx:Grid> Thank you in advance. |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Feb 2006
Posts: 22
|
Hmm.... look's like it is tough. no body has answer yet. or it is super simple. :0
|
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Jan 2006
Posts: 2
|
Well, I don't understand what your question is about. You are already creating the right objects, you just need to add them using addChild() (row to the grid, items to the row, and your actual widgets to the items). If this is not what you are asking, you should try rephrasing your question.
Hari |
|
|
|
|
|
#4 |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
oi patience mate. not all of us are in the same time zone. look at the example i posted in this forum to create a vbox dynamically
|
|
|
|
|
|
#5 |
|
Registered User
Join Date: Feb 2006
Posts: 22
|
Thank you for the answer. the addChild() is the one that I am looking for. As hangalot mention, it is similar way to do in in VBox.
Now, I kind of understand how it's work. the addChild look's like being used over and over again. I am still new in ActionScript even though I programmed alot in other languages. Thanks again, it solved my problems. J |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Simple Action Script | drcmk | ActionScript 1.0 (and below) | 5 | 11-24-2007 01:15 AM |
| Simple flash Action Script | lachrymist | ActionScript 2.0 | 2 | 07-28-2005 07:25 PM |
| use action script and not tweening. | ameersak | ActionScript 2.0 | 2 | 07-25-2005 02:37 AM |
| Where do I type in the action script text? | eclipstudios | Simple Stuff (Newbies) | 2 | 11-15-2002 07:12 AM |
| A very simple action script question on button | CyberNated User 22 | Simple Stuff (Newbies) | 8 | 04-12-2001 07:04 AM |