Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Old 02-12-2006, 03:06 AM   #1
john100
Registered User
 
Join Date: Feb 2006
Posts: 22
Default Creating simple Grid from action script

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.
john100 is offline   Reply With Quote
Old 02-17-2006, 04:39 AM   #2
john100
Registered User
 
Join Date: Feb 2006
Posts: 22
Default Hmm.... look's like it is tough. no body has answer yet. or it is super simple. :0

Hmm.... look's like it is tough. no body has answer yet. or it is super simple. :0
john100 is offline   Reply With Quote
Old 02-17-2006, 06:00 AM   #3
haridsv
Registered User
 
Join Date: Jan 2006
Posts: 2
Default Not clear.

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
haridsv is offline   Reply With Quote
Old 02-17-2006, 05:04 PM   #4
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

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
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 02-17-2006, 07:42 PM   #5
john100
Registered User
 
Join Date: Feb 2006
Posts: 22
Default Thank you

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
john100 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 08:00 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.
You Rated this Thread: