A Flash Developer Resource Site

Search:

Type: Posts; User: Lexicon

Page 1 of 20 1 2 3 4

Search: Search took 0.38 seconds.

  1. Replies
    3
    Views
    871

    This doesn't need to be documented as being...

    This doesn't need to be documented as being correct, it just is.

    You can do multiple assignments on one line...


    a = "abcd all have the same value"
    b = "abcd all have the same value"
    c =...
  2. I think there are some timing issues you need to...

    I think there are some timing issues you need to get your head around because I think this is the same problem as before. i.e. The location dots do not exist until the focus_mc is attached.

    You...
  3. no worries. Here is the solution without...

    no worries.

    Here is the solution without nested functions. It uses the name of the clickable county as a seed for the correct function name. (beds gets assigned the onRelease function...
  4. Ok, then my points posted above; that...

    Ok, then my points posted above; that beds.beds_focus_back never exists and that you need to assign the onRelease function after you have attached the clip in question, are the answers you seek. :)
    ...
  5. Thread: [f8]

    by Lexicon
    Replies
    1
    Views
    471

    This function draws a circle. I wouldn't bother...

    This function draws a circle. I wouldn't bother with attaching clips and scaling, just draw the circle inside a clip.



    function circle(mc:MovieClip, r:Number, x:Number, y:Number):Void
    {
    var...
  6. It is very confusing to see what you are trying...

    It is very confusing to see what you are trying to do and what you are expecting to happen. Maybe you can clarify your problem more.

    Here are some observations anyway...

    beds.beds_focus_back...
  7. Replies
    7
    Views
    554

    Whispers, The mask_bmp is a generated bitmap,...

    Whispers,

    The mask_bmp is a generated bitmap, and is totally independant of the maskee_mc. The maskee_mc (the clip that gets masked) can contain anything you want, any colours etc. The maskee_mc...
  8. Replies
    7
    Views
    554

    Here is a quick example, it basically allows you...

    Here is a quick example, it basically allows you to draw some red shapes into a movieClip. The red shapes are copied onto a blue bitmapData object and the blue channel of this is then copied to the...
  9. just noticed I forgot to say.... the code...

    just noticed I forgot to say....

    the code added to the link buttons needs to be placed above your gotoAndPlay command.

    :domo:
  10. I suspect that neither of the above solutions...

    I suspect that neither of the above solutions will help.

    I think that you have probably placed the 'pictX' movieClips on stage in the flash API. Then your buttons move the swf to a different...
  11. Replies
    1
    Views
    3,213

    Hi, make sure that your wavs are created at...

    Hi,

    make sure that your wavs are created at 11, 22, or 44 kHz.
  12. Replies
    1
    Views
    3,527

    First declare a variable to store the interval...

    First declare a variable to store the interval reference on a frame where your buttons lie.


    var myInterval:Number;


    and create the interval like this...
  13. 1. You should always declare your variables using...

    1. You should always declare your variables using var.
    2. You should always type your variables (unless you absolutely need to re-cast variables). You will have faster code if you don't re-cast...
  14. Replies
    1
    Views
    325

    You only ever get 0 because you always set i to 0...

    You only ever get 0 because you always set i to 0 at the top of the function.

    There are other illogical things in your code, meaning that i can only ever be 0.

    If I understand you correctly for...
  15. no worries, works in all AS versions. Welcome...

    no worries, works in all AS versions.

    Welcome to Flash Kit! :grouphug:
  16. var myString:String = "text1|text2|text3|text4"; ...

    var myString:String = "text1|text2|text3|text4";
    var myArray:Array = myString.split("|");
  17. Replies
    3
    Views
    851

    There is no such thing as an assiciative array in...

    There is no such thing as an assiciative array in AS, so I guess you are using an Object.
    In which case you gone done something silly because undefined you should not get :)
  18. Replies
    4
    Views
    480

    The answer lies in your first post. getURL only...

    The answer lies in your first post.
    getURL only accepts between 1 and 3 parameters. You are using 4.

    Refer to the definition of getURL for the correct parameter order, and descriptions.
    ...
  19. Replies
    1
    Views
    1,038

    if the class has no package prefix then you can...

    if the class has no package prefix then you can just do this...



    var foo = new ["someClass"]();


    if it is contained in a package then you can do this...
  20. Replies
    1
    Views
    1,004

    You could write a jsfl command script to do it. ...

    You could write a jsfl command script to do it.

    Look at the Extending Flash section of the help files.
  21. Replies
    1
    Views
    362

    Here's a basic loop to get the x/y coords in a...

    Here's a basic loop to get the x/y coords in a grid. I'll leave you to declare the variables.



    for(i=0; i<numOfImages; i++)
    {
    x = startx + ((i%numInRow) * spacing);
    y = starty +...
  22. You could get a property from the parent swf like...

    You could get a property from the parent swf like this...

    code in child swf


    function initHandler(evt:Event):void
    {
    // check if loaded inside a parent clip (else standalone)
    if...
  23. Replies
    5
    Views
    733

    yup, i assumed a non fullscreen start :domo:

    yup, i assumed a non fullscreen start :domo:
  24. The gotoAndStop function does just what you have...

    The gotoAndStop function does just what you have found it to do. It jumps to the specified frame and stops there. In other words it does not allow you to command the movie to play frames 1 to 5 in...
  25. Replies
    5
    Views
    733

    try this one... // flash player 8 var...

    try this one...



    // flash player 8
    var fullscreen:Boolean = false;
    _btn.onRelease = function()
    {
    fscommand("fullscreen", String(fullscreen=!fullscreen));
    }
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center