A Flash Developer Resource Site

Search:

Type: Posts; User: wvxvw

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. [Flex / pure AS3] How can I fake SystemManager?

    I need to tell Flex compiler that my custom class is SystemManager and it has to create on it info() and create(...rest) functions.
    Why do I need this:
    - lots of additional compiler arguments are...
  2. Replies
    6
    Views
    609

    If the handler doesn't need event.target - i.e...

    If the handler doesn't need event.target - i.e does something like:

    function handler(event:Event):void
    {
    trace(Math.PI);
    } Then, sure it is better to have only one handler of that kind (not...
  3. Replies
    2
    Views
    631

    I continue working on that project, so, couple of...

    I continue working on that project, so, couple of bugs ware fixed, + some features ware added. Now it can be called from command line with -in <file or directory [repeateble]> argument, so you can...
  4. Replies
    2
    Views
    631

    Code highlighter for AS3

    http://code.google.com/p/e4xu/downloads/detail?name=codeparser.air

    Hi all.
    The link above is for downloading the AIR installer (for AIR 1.5).
    But you may also find the sources, at least the most...
  5. Replies
    5
    Views
    2,588

    This definitely doesn't mean this is what it is...

    This definitely doesn't mean this is what it is doing in AS3 :)
    There's no _width property on display objects, and you don't define one either. Also making initializer an expression isn't really a...
  6. Replies
    5
    Views
    2,588

    What's this: public var radius:Number =...

    What's this:

    public var radius:Number = this._width / 2;
    ?
    Besides that the code compiles without errors.
  7. Replies
    5
    Views
    2,588

    Your private function onEnterFrame is outside the...

    Your private function onEnterFrame is outside the class scope, put it inside the class definition and rename, otherwise you'll get a "deprecated" warning because the function with the same name was...
  8. I don't think there is, but you could just...

    I don't think there is, but you could just convert all your timeline stuff into a single clip and then place it on the stage of the only frame that you'll use. Thus, even though the commands will be...
  9. Replies
    2
    Views
    513

    var list:XMLList = XMLList(

    var list:XMLList =
    XMLList(<component name="gun" size="0"/> +
    <component name="armor"/>);
    list.@*.(name() == "size" ? setSize(parent()) : "");
    function setSize(value:XML):void
    {
    trace("setting...
  10. Replies
    9
    Views
    1,307

    This really depends on your testing conditions......

    This really depends on your testing conditions... were you testing it in debug or release mode, was it on the timeline of the clip or inside class constructor / class instance method / class static...
  11. Replies
    6
    Views
    1,126

    Regexp there is actually a weak part... because...

    Regexp there is actually a weak part... because you will get the index of the actually displayed text, and not of the HTML text the field contains... also, the actuall HTML text is defferent from...
  12. function blueShirt (event:MouseEvent):void { ...

    function blueShirt (event:MouseEvent):void {
    if(_currentShirt)
    {
    // othervise you may get an error when removing existing DisplayObject which
    // is not a child of...
  13. Replies
    9
    Views
    1,307

    >> i usually did the i-- thing also and thought...

    >> i usually did the i-- thing also and thought it was faster.
    For AS2 this would be faster.
    The forward iteration is a special optimization made in AS3. However, for considerably short loops you'd...
  14. Replies
    6
    Views
    1,126

    var abc:String = "ABCDEFGHGIJKLMNOPQRSTUVWXYZ ";...

    var abc:String = "ABCDEFGHGIJKLMNOPQRSTUVWXYZ ";
    var someText:XML =
    <p>
    Here the paragraph begins <a href="event:eventID">{createRandomLink()}</a> and it goes on here.
    </p>;
    function...
  15. Thread: AS2 vs AS3??

    by wvxvw
    Replies
    4
    Views
    858

    >> A.) Generally speaking, what is better about...

    >> A.) Generally speaking, what is better about AS3 over AS2?

    AS2 is a fake programming language =) it's actually AS1 that mocks other more advanced languages =) And it lacks many necessary...
  16. It's the same Namespace you use with XML, why...

    It's the same Namespace you use with XML, why would it behave differently with classes / functions? =)
  17. var ns:Namespace = new...

    var ns:Namespace = new Namespace(describeType(foo).method.@uri[0]);
    var fn:String = describeType(foo).method.@name[0];
    trace(foo.ns::[fn](1, "foo", this));
    foo has a method aMadeUpFunction in...
  18. Replies
    15
    Views
    46,000

    Hm... Are you sure you call...

    Hm... Are you sure you call Security.loadPolicyFile() before connecting to WS? And, is SWF itself loaded using HTTPS? And is crossdomain.xml displayed if you try to view it in browser? And are the...
  19. Replies
    15
    Views
    46,000

    Here's what you may try to do for testing:...

    Here's what you may try to do for testing: there's no error generated in FP9.124 if Security.loadPolicyFile() fails, but it will generate an error in FP10. So, may be just for the test update the...
  20. Replies
    15
    Views
    46,000

    If user loads SWF via HTTPS you have to set...

    If user loads SWF via HTTPS you have to set <allow-access-from domain="*" secure="true"/>
    >> catch (error:SecurityError)
    URLLoader.load() doesn't throw SecurityError, you have to subscribe to...
  21. or slice() with no arguments (this will also...

    or slice() with no arguments (this will also create a copy of an array).
  22. Replies
    7
    Views
    742

    tf1 and tf2 are references to the fields, so, you...

    tf1 and tf2 are references to the fields, so, you may modify textField properties by targetnig them:

    tf1.border = true; For eg. will draw black border around the tf1 text field.
  23. Replies
    7
    Views
    742

    background:...

    background:
    http://livedocs.adobe.com/flash/8/main/00002736.html
    border:
    http://livedocs.adobe.com/flash/8/main/00002738.html
    autoSize:
    http://livedocs.adobe.com/flash/8/main/00002734.html
    If...
  24. Replies
    7
    Views
    742

    For the XML as you can see in commented part it'd...

    For the XML as you can see in commented part it'd be something like this:

    import mx.utils.Delegate;
    import mx.xpath.XPathAPI;

    /**
    *<?xml version="1.0" encoding="utf-8" ?>
    *<data>
    ...
  25. Replies
    6
    Views
    974

    if (e.target is Fruit) { ...

    if (e.target is Fruit)
    {
    trace(this.hitTestObject(e.target as Fruit));
    }
    This will always be true as you hittest the object against itself......
Results 1 to 25 of 26
Page 1 of 2 1 2




Click Here to Expand Forum to Full Width

HTML5 Development Center