LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 


Prev Previous Post   Next Post Next
  #1  
Old 04-08-2007, 09:02 PM
janper janper is offline
Registered User
 
Join Date: Apr 2006
Posts: 6
Rep Power: 0
janper is on a distinguished road
Crying array of class

hello. i'm just an actionscript beginner so sorry for dumb question...

i'm trying to use an array of my own classes. the class is called hostitel works well - i have tested it. the array is called hostitelia

the definition is this:

var hostitelia:Array;
hostitelia[1] = new hostitel(hostitel1,10);
hostitelia[2] = new hostitel(hostitel2,10);
hostitelia[3] = new hostitel(hostitel3,10);


so far works well - the initial procedure runs.

problem comes here:

hostitelia[10].posun();

there's no error message, however, the function posun() won't run

if this way of defining an array of class is wrong, what is the right way than?

thanks!
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Understanding Class: Assigning to MC is easy. How to use for array? freaksarise Flash CS5 2 05-17-2011 12:46 AM
deleting array in custom class from main swf paulcybulski Actionscript 2.0 0 01-29-2008 02:37 PM
Help with a Tough Array Randomization/Shuffle Problem TheMediaBoy Actionscript 2.0 10 07-21-2006 09:05 AM
Waiting in a class chrscote Flash MX 2004 0 05-01-2006 04:27 PM
Resetting a class starting new module cotec Flash MX 2004 0 05-12-2005 04:51 PM




All times are GMT. The time now is 05:59 PM.