awesome - knew it was something stupid - i've been doing waaaay to
much as2 recently :)
thanks guys
a
On 14 Oct 2008, at 15:24, Cédric Tabin wrote:
Hello,
Didn't you forget the 'public' before class ? :)
Regards,
Cedric
On Tue, Oct 14, 2008 at 4:05 PM, Allandt Bik-Elliott (Receptacle) <
[EMAIL PROTECTED]> wrote:
hey guys
quick question for you as3 coders:
i have an old as2 class which i've converted to as3 that checks to
see
where the movie is being played (browser or IDE test movie player)
and
adjusts the url of the loading swf to make sure that i don't have
to keep
the main loader swf outside of my swf directory (it'll explain
itself)
my converted class is :
[code]
package com.receptacledesign.utils
{
import flash.system.Capabilities;
class Path
{
public static function assess(sPath:String):String
{
sPath = (Capabilities.playerType !=
"External") ?
sPath : "../" + sPath;
return sPath;
}
}
}
[/code]
and i'm trying to use this in my loader class like so
[code]
private var _sMainPath:String;
in my constructor:
_sMainPath = Path.assess("main.swf");
[/code]
but i get the following error:
1120: Access of undefined property Path.
so it would seem that my class is treating Path as a property
rather than a
class in it's own right. I've imported the class as usual so it
isn't that
hope you can help
a
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders