Hi,

Yes you can create array object in AS3

---------------------------------------------
var yourobjectArray:Object = new Object()
yourobjectArray["production"] ="56"
yourobjectArray["monday"] ="23"
yourobjectArray["tuesday"]="34"
yourobjectArray["sunday"]="34" // you can also use your Bindable varialbe in
place of static value
------------------------------
you can trace using
----------------------------------
trace(yourobjectArray["production"], yourobjectArray["monday"]);
// output: 56 23
-------------------------------
Regards,
Jaydeep Tank
On Tue, Dec 2, 2008 at 5:25 PM, Lord <[EMAIL PROTECTED]> wrote:

>
> thanks for the reply..
>
> i have the last question..
>
> i would create my own object and pass it to an arraycollection...
>
> for example <mx:Object production="56" monday="23" tuesday="34" ...
> sunday="45" />
>
> to reach this one i created my own class MyClass that extends Object
> and i created 7 private properties
> monday:int, tuesday:int and so on...is it correct? there is another
> way to create an mx:Object from actionscript?
>
> On 2 Dic, 11:23, "Jaydeep Tank" <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Like this code may help you to create multi-dimentional array
> > -----
> >
> > var masterTaskList:Array = new Array();
> > masterTaskList[0] = ["wash dishes", "take out trash"];
> > masterTaskList[1] = ["wash dishes", "pay bills"];
> > masterTaskList[2] = ["wash dishes", "dentist", "wash dog"];
> > masterTaskList[3] = ["wash dishes"];
> > masterTaskList[4] = ["wash dishes", "clean house"];
> > masterTaskList[5] = ["wash dishes", "wash car", "pay rent"];
> > masterTaskList[6] = ["mow lawn", "fix chair"];
> >
> > -----
> > Jaydeep Tank
> >
> > On Tue, Dec 2, 2008 at 3:41 PM, Lord <[EMAIL PROTECTED]> wrote:
> >
> > > and if i want to create an array where couples key value are not fixed
> > > like in your example?
> >
> > > for example name and 'nishant' are values returned from a particular
> > > method?
> >
> > > On 2 Dic, 11:04, "Nishant Kyal" <[EMAIL PROTECTED]> wrote:
> > > > Hey,
> >
> > > > myArray.put({name: 'nishant', surname:'kyal'})
> > > > Regards
> > > > Nishant Kyalwww.itasveer.com <http://kyalwww.itasveer.com/><
> http://kyalwww.itasveer.com/>
>  >
> > > > On Tue, Dec 2, 2008 at 3:24 PM, Lord <[EMAIL PROTECTED]> wrote:
> >
> > > > > yes a multimensional array...i would create in as3 in run time
> phase
> > > > > putting into it integer elements...
> > > > > thanks
> >
> > > > > On 2 Dic, 10:48, "Jaydeep Tank" <[EMAIL PROTECTED]> wrote:
> > > > > > Hi,
> >
> > > > > > Do you mean multi-dimenational Array or just value in squre
> brackets?
> >
> > > > > > Regards,
> > > > > > Jaydeep Tank
> >
> > > > > > On Tue, Dec 2, 2008 at 2:43 PM, Lord <[EMAIL PROTECTED]>
> wrote:
> >
> > > > > > > Thanks for the reply but for create this
> >
> > > > > > > var array:Array = {[34],[45],[67]}
> >
> > > > > > > thanks
> >
> > > > > > > On 2 Dic, 10:06, anubhav_RIA <[EMAIL PROTECTED]>
> wrote:
> > > > > > > > Hi Lord,
> >
> > > > > > > > try this :
> > > > > > > > var array: Array  = new Array();
> > > > > > > > array.push(23);
> > > > > > > > array.push(25);
> > > > > > > > array.push(56);
> >
> > > > > > > > thanks,
> > > > > > > > Anubhav
> >
> > > > > > > > On Dec 2, 1:52 pm, Lord <[EMAIL PROTECTED]> wrote:
> >
> > > > > > > > > Hi,
> >
> > > > > > > > > how to create an array through as3 and put data
> dinamically?
> >
> > > > > > > > > for example
> >
> > > > > > > > > var array:Array = {[23,34,56],[56,57,68]}
> >
> > > > > > > > > thanks in adavance
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to