dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: Martin Munoz

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. If performance is a concern, you can manually...

    If performance is a concern, you can manually flip the columns using set/getPixels
  2. You could have function update(event:Event =...

    You could have function update(event:Event = null) as well :)
  3. Replies
    3
    Views
    1,233

    lol. I'm guessing this has happened before? Some...

    lol. I'm guessing this has happened before? Some people don't think before they post, just ignore them.

    You can try this:



    import flash.events.MouseEvent;
    import Circle;

    ...
  4. Replies
    4
    Views
    3,580

    Good catch, I missed that. It's still a bit wrong...

    Good catch, I missed that. It's still a bit wrong though

    evtObj.target.scaleX = scaleY = 1*scale

    should read

    evtObj.target.scaleX = evtObj.target.scaleY = scale;
  5. Replies
    4
    Views
    3,580

    The line: _scale = _fl/(_fl + _zSpeed) ...

    The line:

    _scale = _fl/(_fl + _zSpeed)

    should read:

    _scale = _fl/(_fl + _z)
  6. Replies
    2
    Views
    2,342

    I just realized that the behaviour I am asking...

    I just realized that the behaviour I am asking for is something that is built into the Flash IDE! Create a movie clip and you will see. There is a "Registration" point, the cross we all know and...
  7. Replies
    2
    Views
    2,342

    Changing a Sprite's Registration Point

    I need help from any of you experienced coders out there! I'm trying to make an interface similar to Leo Burnett but with a little more flexibility.

    The main interface needs two separate...
  8. Replies
    17
    Views
    494

    Yes, all code that should be executed after the...

    Yes, all code that should be executed after the XML loads must somehow be triggered by the onLoad function, and no where else.
  9. Replies
    17
    Views
    494

    Just because you call the load function doesn't...

    Just because you call the load function doesn't mean the XML is already loaded at that time - in fact it most likely isn't. You are calling that trace BEFORE the XML gets loaded. Try this instead:
    ...
  10. Replies
    17
    Views
    494

    You get undefined because myNumber has the scope...

    You get undefined because myNumber has the scope of the function onLoad. This means that as soon as the onLoad function is finished running the variable is no longer accessible. Add: "var...
  11. Replies
    17
    Views
    494

    num = Number(str); What this does is convert...

    num = Number(str);
    What this does is convert whatever string is in the brackets to a number, if possible.

    var myNumber:Number = Number("1");
    _root.myNumber =...
  12. Replies
    17
    Views
    494

    "my number: " + myNumber + 1; This expression...

    "my number: " + myNumber + 1;

    This expression gets evaluated from left to right.
    So here is what's happening.

    Step One: First evaluate the first part: "my number: " + myNumber
    Step Two: Flash...
  13. Replies
    2
    Views
    428

    Yes it is possible. No hacks needed. For...

    Yes it is possible. No hacks needed.

    For example..

    In your Javascript code:

    function JavaScriptFunctionName(param1, param2, param3)
    {
    return param1+" "+param2+" "+param3;
    }
  14. Replies
    1
    Views
    344

    The parent property is a DisplayObject. It isn't...

    The parent property is a DisplayObject. It isn't dynamic.

    You have to cast to MovieClip which is dynamic so that you can access dynamically added properties.

    So you can try:
    ...
  15. Replies
    2
    Views
    492

    You can't do that within the RGB color space very...

    You can't do that within the RGB color space very easily. You can use the HSV color space instead, keep S and V constant while changing the H linearly and then converting back to RGB.

    Check this...
  16. Are you trying to access the shell before the...

    Are you trying to access the shell before the buttons have been added to the stage (for example in the constuctor).



    I've never used LoaderContext, can't really help you there. I guess the only...
  17. Well it did work. Sort of. That error just means...

    Well it did work. Sort of. That error just means you were trying to access the loaderInfo.loader property before the loader was finished loading and you can't do that. You can however get information...
  18. From games.swf you can use ...

    From games.swf you can use

    root.loaderInfo.loader
    or
    Loader(root.parent)
  19. Replies
    10
    Views
    774

    Lucky for us, I do all the AS3. :cow: Sorry,...

    Lucky for us, I do all the AS3. :cow:

    Sorry, I posted the wrong links:

    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/LoaderInfo.html#event:init...
  20. Replies
    10
    Views
    774

    I get mixed up too. Luckily AS3 has great...

    I get mixed up too. Luckily AS3 has great documentation.

    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/Event.html#INIT...
  21. Replies
    10
    Views
    774

    Actually it's the other way around. INIT is...

    Actually it's the other way around. INIT is called after all properties and methods are accessible and the required constructors have finished executing. COMPLETE is then called once all the data is...
  22. Replies
    2
    Views
    604

    You can try storing the array as unsigned ints...

    You can try storing the array as unsigned ints (groups of four bytes) instead:


    var embedded_swf: Array = [ 0x46575309,....
    var swf: ByteArray = new ByteArray();
    for( var i: int = 0 ; i <...
  23. myLoader.load(myURL); addChild(myLoader); Try...

    myLoader.load(myURL);
    addChild(myLoader);

    Try switching these two lines. I can explain further if you want :)
  24. Replies
    6
    Views
    3,367

    var myScale:Number; var myTween:Tween myTween...

    var myScale:Number;
    var myTween:Tween

    myTween = new Tween(this, myScale, Regular.easeOut, 0, 1, 12, false);

    myTween.addEventListener(TweenEvent.MOTION_CHANGE, onMotionChanged);...
  25. Replies
    10
    Views
    774

    Sorry, I'm not sure on the Apollo APIs, but I can...

    Sorry, I'm not sure on the Apollo APIs, but I can tell you about delete real quick.

    In AS3 it is only used to remove dynamically added properties. You can not "delete" instance or class members...
Results 1 to 25 of 35
Page 1 of 2 1 2




Click Here to Expand Forum to Full Width

HTML5 Development Center