error
08-30-2008, 06:58 PM
hi there,
i just began to learn creating flash files. as i understood, symbols are some kind of graphical templates. when i am wrong, please teach me. so i added a person symbol with all the gfx and what ever is in there. then i made a person.as class. and added this to my person symbol props. then at my main action i do this
action in fla
import test.person;
var probant = new person();
and person do this.
person.as
package test
{
import flash.text.TextField;
import flash.display.MovieClip;
public class person extends MovieClip {
var name;
function person () {
trace("...");
}
function setName (setThis) {
name = setThis;
}
}
}
person is now an object stored in "probant" if i am right. so as i can see, it is done. but my symbol does not appear. i tried some things like "attachMovie()" but as i know this is not possible with ActionScript 3.0. how can i load my symbol on every object getting created?
like:
var probant1 = new person();
var probant2 = new person();
var probant3 = new person();
... now i like to see 3 persons at my flash
sorry for my english
i just began to learn creating flash files. as i understood, symbols are some kind of graphical templates. when i am wrong, please teach me. so i added a person symbol with all the gfx and what ever is in there. then i made a person.as class. and added this to my person symbol props. then at my main action i do this
action in fla
import test.person;
var probant = new person();
and person do this.
person.as
package test
{
import flash.text.TextField;
import flash.display.MovieClip;
public class person extends MovieClip {
var name;
function person () {
trace("...");
}
function setName (setThis) {
name = setThis;
}
}
}
person is now an object stored in "probant" if i am right. so as i can see, it is done. but my symbol does not appear. i tried some things like "attachMovie()" but as i know this is not possible with ActionScript 3.0. how can i load my symbol on every object getting created?
like:
var probant1 = new person();
var probant2 = new person();
var probant3 = new person();
... now i like to see 3 persons at my flash
sorry for my english