My account: Login | Sign Up
Loading...

Instance Naming | Thread profile

Thread profile page for "Instance Naming" on http://www.kirupa.com. This report page is a snippet summary view from a single thread "Instance Naming", located on the Message Board at http://www.kirupa.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity, which are reported in a table below. Additional thread profile information is also shown in the following ways:

1) Top Contributing Authors
2) Related Threads on "eBay Auctions"
3) Related Threads on Other Sites

Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a thread's popularity and/or exact posting volumes at any given reporting period.

Title: Instance Naming
Site: Kirupa Forum  Kirupa Forum - site profile
Forum: ActionScript 3.0  ActionScript 3.0 - forum profile
Total authors: 3 authors
Total thread posts: 6 posts
Thread activity: no new posts during last week
Domain info for: kirupa.com

Thread posts in Instance Naming:

1. 
Started 2 months ago (2008-07-04 04:29:00)  by kevin416
The basic method of making new instances is to write out Code: var t1:MyClass = new MyClass( 0 ); var t2:MyClass = new MyClass( 0 ); etc I know there is a much quicker way to do this than writing them out, say if I want to go up to t20, but I can't seem to quite remember how. Thanks for help, this should be a quick fix.
Size: 659 bytes
Customize:  Customize "Instance Naming :: ActionScript 3.0 :: Kirupa Forum"
2. 
Started 2 months ago (2008-07-04 18:48:00)  by kevin416
Thanks Carlo, but I keep getting an error when I try your method. Here's the whole code, maybe someone can see what's wrong. BTW, the error is: [Fault] exception, information=TypeError: Error #1009: Cannot access a property or method of a null object reference. Fault, Main.as:39 Code: package { import flash.display.Sprite; public class Main extends Sprite { public var ...
Size: 1,710 bytes
Customize:  Customize "<b>Reply 1</b>: Instance Naming :: ActionScript 3.0 :: Kirupa Forum"
3. 
Started 2 months ago (2008-07-06 02:22:00)  by kevin416
It looks like the problem is more confusing than I thought. Will someone please tell me why this does not work, because I am at my wit's end. Code: package { import flash.display.Sprite; public class Main extends Sprite { public var tiles:Array; public function Main():void { var t1:Tile = new Tile( 5 ); tiles.push( t1 ); } } } class Tile { ...
Size: 1,044 bytes
Customize:  Customize "<b>Reply 2</b>: Instance Naming :: ActionScript 3.0 :: Kirupa Forum"
4. 
Started 2 months ago (2008-07-06 02:32:00)  by yaim0310
To create an Array object, you use the new Array() constructor. Code: public var tiles:Array = new Array(); you were trying to push onto the array before you actually defined it as one
Size: 523 bytes
Customize:  Customize "<b>Reply 3</b>: Instance Naming :: ActionScript 3.0 :: Kirupa Forum"
5. 
Started 2 months ago (2008-07-06 02:43:00)  by kevin416
Thanks so much. You spared me much trouble - I thought the tiles were the ones that didn't exist.
Size: 143 bytes
Customize:  Customize "<b>Reply 4</b>: Instance Naming :: ActionScript 3.0 :: Kirupa Forum"
6. 
Started 2 months ago (2008-07-06 12:26:00)  by Pier25
This is so cool... I'm having this same problem right now... so I open kirupa forum, and find this post right there at the top without even having to search for it Thank you guys
Size: 432 bytes
Customize:  Customize "<b>Reply 5</b>: Instance Naming :: ActionScript 3.0 :: Kirupa Forum"
 

Top contributing authors for Instance Naming

Name Posts
kevin416 4
yaim0310 1
Pier25 1