RE: [flexcoders] question about the import statement and action s cript files
Something like this? Component1.mxml mx:VBox mx:Number id=numberone / /mx:VBox Class Component2 { Public var comp1 : Component1; } App.mxml mx:Application Component1 id=comp1 / Component2 id=comp2 comp1={comp1} / /mx:Application From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 12, 2005 6:59 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] question about the import statement and action s cript files In a message dated 4/12/2005 12:53:39 AM Eastern Standard Time, [EMAIL PROTECTED] writes: Looks about like it would help but one question is component one meant to be the mxml file Sure, itd be something like this: class component1 { public var numberone : Number; } class component2 { public var comp1 : component1; function readNumberOne() : Void { Var num : Number = comp1.numberone; //do what you want } } class parent { var comp1: component1; var comp1 : component2; function parent() { Comp1 = new component1(); Comp2 = new component2(); Comp2.comp1 = comp1; } } That help? Matt Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] question about the import statement and action s cript files
In a message dated 4/12/2005 12:53:39 AM Eastern Standard Time, [EMAIL PROTECTED] writes: Looks about like it would help but one question is component one meant to be the mxml file Sure, itd be something like this: class component1 { public var numberone : Number; } class component2 { public var comp1 : component1; function readNumberOne() : Void { Var num : Number = comp1.numberone; //do what you want } } class parent { var comp1: component1; var comp1 : component2; function parent() { Comp1 = new component1(); Comp2 = new component2(); Comp2.comp1 = comp1; } } That help? Matt Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] question about the import statement and action s cript files
Sorry for being confusing I think my one programming weakness that I am trying to work on is writing programs and not taking up as much memory. I know a good programmer tries to conserve memory and this is a probllem that has made some of my problems come about Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] question about the import statement and action s cript files
Well dont overthink it either J Memory consumption is good to keep in mind but focus on building a clean design for your application first. A clean overall design will allow you to optimize for things like memory later as your bottlenecks become clear. Matt From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 9:26 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] question about the import statement and action s cript files Sorry for being confusing I think my one programming weakness that I am trying to work on is writing programs and not taking up as much memory. I know a good programmer tries to conserve memory and this is a probllem that has made some of my problems come about Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] question about the import statement and action s cript files
Sure, itd be something like this: class component1 { public var numberone : Number; } class component2 { public var comp1 : component1; function readNumberOne() : Void { Var num : Number = comp1.numberone; //do what you want } } class parent { var comp1: component1; var comp1 : component2; function parent() { Comp1 = new component1(); Comp2 = new component2(); Comp2.comp1 = comp1; } } That help? Matt From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 9:46 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] question about the import statement and action s cript files All I really want to do in a nutshell is have one action script component set a value for a variable and then have another action script component be able to recognize the value of that variable. I mean lets say you have an action script component thats taking up too much memory so you make another action script, ok. What I want to do is to have the first action set a value for a variable lets call the variable numberone ok and the first action script component sets the value of numberone to 24. It works great until the second action script component tries to access it all I get is either a NaN or its undefined does that make sense? Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.