Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 17:19
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  Flash and AS 3 (Moderators: papachan, kofi addaquay)
| | |-+  Cant Define External AS Method
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Cant Define External AS Method  (Read 894 times)
hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« on: 03/30/10, 10:34 »

Hi i want to ask something about this Cheesy

I just want to call the external as, but the as is not declare in publish setting.

Here is in my AS Flash

Code:
import Lala;
//I have try to do with include "Lala.as" too
call();

in my External AS

Code:
package {
public class Lala {
public function call():void {

}
}
}

The output is

Quote
Cant define method call

Thank you veru much Smiley
Logged

Huihihi~ Cheesy
kofi addaquay
Global Moderator
Senior Programmer
*****
Posts: 450



View Profile WWW Email
« Reply #1 on: 03/30/10, 10:47 »

of course it wont work! you havent created an instance of Lala class with the 'new' statement

var lala:Lala = new Lala();
lala.call();
Logged
hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« Reply #2 on: 03/30/10, 18:41 »

Ahah forgot to say..

I have tried that thing Cheesy

Here if i did with my statement it will "Undefined call method"

Then if i use your statement its cant control all of the instance name in my Flash
"undefined lala_mc, blablabla"

Because we just can input one class in publish setting right?..

because i can control the movie clip in the Flash if the class is publised with Flash
And must be subsclass of MovieClip Class right?.. Smiley

Thank you very much kofi.. Smiley
Logged

Huihihi~ Cheesy
kofi addaquay
Global Moderator
Senior Programmer
*****
Posts: 450



View Profile WWW Email
« Reply #3 on: 03/30/10, 19:25 »

sorry...i really cant understand what you are saying.
Logged
hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« Reply #4 on: 03/30/10, 23:03 »

Hiii sry Cheesy

I mean how to make the interaction between Flash and External AS, we can do 2 ways right?.. Smiley

1. Make the new Instance about the external Class
2. Publish Setting > then input the External Class there Smiley

The difference is if we input the external Classes i mean the name (path actually) its like static modifier
and in the option below there is a checkbox called Frame 1, so the External AS will compile together with the flash, on work on frame 1 Smiley

btw i have got the answer about my question before, actually, some Movie Clip have 2 parameter Class too Cheesy

Internal Class and External Class, if we input the "Base Class" its mean the MovieClip Control is in the External Class.. Smiley

Sry for my poor explanation again huhu T.T

Thank you kofi.. Smiley
Logged

Huihihi~ Cheesy
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!