Results 1 to 2 of 2
September 11th, 2008, 02:30 PM #130Registered User
Call a function from another class
I havent yet tried to call functions from other classes.
Lets say i have a class1 with function called makeBackground()
In class2 i want to call that function how do i do that without caling my constructor.
I have tried the following without any luck.
var _class1:class1 = new class1() _class1.makeBackground();
private var _class1:class1;Portfolio: Prolab-design.dk
September 11th, 2008, 03:17 PM #2
you would have to import one into the other
public class class2 extends MovieClip
var c1INST:Object = class1;