A Flash Developer Resource Site

Search:

Type: Posts; User: Michael Chen

Page 1 of 6 1 2 3 4

Search: Search took 0.07 seconds.

  1. You can try setting a buffer. For example... ...

    You can try setting a buffer.

    For example...


    // 10 second buffer
    var req:URLRequest = new URLRequest("http://www.fileden.com/files/2009/1/29/2292018/tykke.mp3");
    var...
  2. Replies
    3
    Views
    693

    Have a look at Senocular's TransformTool class......

    Have a look at Senocular's TransformTool class...
    http://www.senocular.com/demo/TransformToolAS3/TransformTool.html
  3. Since you've got a SoundChannel controller...

    Since you've got a SoundChannel controller monitoring the sound you can assign a soundComplete event to the controller. The event will dispatch when a sound has finished playing.

    So using that...
  4. Replies
    4
    Views
    409

    Try changing... var...

    Try changing...
    var rn1=Math.floor(Math.random()*(5-10))+10;
    var rn2=Math.floor(Math.random()*(5-10))+10;

    to...
    var rn1=Math.round(Math.random()*-10)+5;
    var rn2=Math.round(Math.random()*-10)+5;
  5. Are you using embedded fonts?

    Are you using embedded fonts?
  6. Replies
    4
    Views
    409

    rn2=Math.floor(Math.random()*(5-10))+10; is...

    rn2=Math.floor(Math.random()*(5-10))+10;
    is basically...
    rn2=Math.floor(Math.random()*-5)+10;


    It's moving downwards because...

    // rn2 will always be a positive number....
  7. Have a look at these links......

    Have a look at these links...
    http://www.actionscript.org/forums/showpost.php3?p=750911&postcount=5
    http://www.campjohn.dk/wp/?p=114
  8. Try this... objName.onPress = function() ...

    Try this...



    objName.onPress = function() {
    this.startDrag();
    this.prevXPos = this._x;
    this.prevYPos = this._y;
    }
  9. Replies
    3
    Views
    741

    Try this... mcName._name = "newName";

    Try this...



    mcName._name = "newName";
  10. Replies
    5
    Views
    691

    From my understanding you can run the .exe file...

    From my understanding you can run the .exe file on Windows without the Flash Player. However you'll need the Flash Player to run .swf files.
  11. Replies
    9
    Views
    1,720

    Works for me. When I click the enter forums...

    Works for me.

    When I click the enter forums button it redirects me to http://www.letsgolakers.com/index.php
  12. Replies
    1
    Views
    684

    #include is used to include ActionScript code. ...

    #include is used to include ActionScript code.

    For example #include "fileName.as"
  13. Replies
    9
    Views
    1,720

    Are you getting an error? Does the browser...

    Are you getting an error?

    Does the browser open?
  14. This is how you load images dynamically using...

    This is how you load images dynamically using AS2...



    this.createEmptyMovieClip("image",1);
    image.loadMovie("fileName.jpg");
  15. Replies
    9
    Views
    1,720

    Try this... function...

    Try this...



    function clickHandler(event:MouseEvent):void {
    var newURL:URLRequest = new URLRequest("http://www.letsgolakers.com/index.php");
    navigateToURL(newURL,"_self");
    }...
  16. Replies
    2
    Views
    660

    This is a simple rotation script... //...

    This is a simple rotation script...


    // mcName is the name of the movie clip.
    mcName.onEnterFrame = function() {
    this._rotation += 2;
    }


    Note: 2 is the speed of rotation, however fps can...
  17. Replies
    1
    Views
    546

    Try this... var menu:Array = new...

    Try this...



    var menu:Array = new Array(home, about, contact);
    var content:Array = new Array("home.swf", "about.swf", "contact.swf");

    for(var i:Number = 0; i < menu.length; i++) {...
  18. Replies
    2
    Views
    732

    http://www.kirupa.com/developer/mx2004/fullscreen....

    http://www.kirupa.com/developer/mx2004/fullscreen.htm
  19. First, check if the List Component supports html...

    First, check if the List Component supports html tags.

    Second, I would recommend using CDATA tags in the XML.
  20. Replies
    6
    Views
    674

    1.Create a rectangle without any stroke. It can...

    1.Create a rectangle without any stroke. It can be any colour.

    2.Convert the rectangle to a "Movie Clip" symbol.

    3.Make sure the registration point is on the top left.

    4.You can give the...
  21. Replies
    6
    Views
    674

    Try this... Stage.scaleMode = "noScale";...

    Try this...



    Stage.scaleMode = "noScale";
    Stage.align = "TL";

    // You need a moveiclip on the stage called "mc".
    var stageListener:Object = new Object();
    stageListener.onResize = function...
  22. Try this... // There is a movieclip called...

    Try this...



    // There is a movieclip called "mcName".
    // Inside "mcName" contains 6 hotspots named "hs01", "hs02", ... "hs06".
    for(var a:Number = 1; a < 7; a++) {
    mcName["hs0"+a].onPress =...
  23. Replies
    6
    Views
    674

    What you could do is have a movieclip as the...

    What you could do is have a movieclip as the background. Then just fade the colour of that movieclip from black to white.

    You may also need to resize the movie clip as your browser resizes.
  24. Replies
    3
    Views
    536

    Not sure if this is what you're after... Under...

    Not sure if this is what you're after...

    Under help doc search for "Using the Tween class", near the bottom there is an example for "onMotionFinished"
  25. Replies
    2
    Views
    610

    Try this... import flash.display.*;...

    Try this...



    import flash.display.*;
    import flash.net.URLRequest;
    import flash.events.MouseEvent;

    var arrImgs:Array = new Array("USA 1.jpg","USA 2.jpg","USA 3.jpg","USA 4.jpg");
    var...
Results 1 to 25 of 141
Page 1 of 6 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center