Hi,
Is it possible to have a class that extends MovieClip linked to a movie
in the library and have statics methods and vars in it ??
L
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
Sorry I was not receiving mails when I send that:
Hi,
Is it possible to have a class that extends MovieClip linked to a movie
in the library and have statics methods and vars in it ??
L
if any answer can you repost ?
thx :)
L
___
Flashcoders
Hi, Laurent,
I don't see why not... if you're having trouble, the number one culprit when
doing library linkage is often that the Flash IDE has an incorrect Class
name and is secretly creating an unrelated class file behind the scenes.
Double check your linkage settings, make sure the package is
Hi Jonathan,
No the linking is good, I actually compile the fla containing that class
with no problem.
But when compiling my main that refer the the static method of that
class it throw me errors about
1119: Access of possibly undefined property body through a reference
with static type
Hi Jonathan,
No the linking is good, I actually compile the fla containing that class
with no problem.
But when compiling my main that refer the the static method of that
class it throw me errors about
1119: Access of possibly undefined property body through a reference
with static type
ok being less demanding, I made the call to my static method from the mc
( menu ) containing the class and from my main, I call
menu.function(); that call the static one. No call of the static method
is made from outside de mc it's compiled in. It's a workaround, I have
no idea if it's
Look into the [Inspectable] metadata tag.
If you place it before a class variable or property, then setting the
class under the component definition will automatically populate the
parameters.
class MyClass {
//...
[Inspectable(defaultValue=default)]
public var myVar:String;
@chattyfig.figleaf.com
Sent: Saturday, February 17, 2007 9:08 AM
Subject: Re: [Flashcoders] extends MovieClip
Look into the [Inspectable] metadata tag.
If you place it before a class variable or property, then setting the
class under the component definition will automatically populate the
parameters.
class
Hey all,
As per my earlier thread, I've been playing around with the
Component Definition dialog box in order to create a class which
extends MovieClip, where the class can be passed parameters (or,
set in the Parameters tab as the case may be). This seems to
implement what I want, but
Hey all,
Is it possible to use a class extends MovieClip on a pre-existing
(authored) MovieClip?
I'd like to seamlessly do something like:
class blah extends MovieClip {
public function blah() {
this.onRelease = function() {
// handle release
: David Cohn [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Sunday, February 04, 2007 8:07 PM
Subject: [Flashcoders] extends MovieClip
Hey all,
Is it possible to use a class extends MovieClip on a pre-existing
(authored) MovieClip?
I'd like to seamlessly do something like
Hello :)
try this code :
class Component extends MovieClip
{
// constructor
function Component()
{
}
/ Init AsBroadcaster
static private var _INIT_BROADCASTER_ =
_global.AsBroadcaster.initialize( Component.prototype ) ;
public var
12 matches
Mail list logo