dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: Pporksoda

Page 1 of 7 1 2 3 4

Search: Search took 0.08 seconds.

  1. Use swapDepths(); to change the depth of a...

    Use swapDepths(); to change the depth of a movieclip.


    _root.smallClip.swapDepths(3);

    Note that if there's already something in level 3, that something would swap to the original depth of...
  2. Replies
    20
    Views
    711

    no worries. slow day at the office..

    no worries. slow day at the office..
  3. Replies
    20
    Views
    711

    Exactly. The width and height are calculated...

    Exactly. The width and height are calculated based on the current visible frame of the movieclip. And that code will work fine.. as long as the origin (0,0) is in the upper left hand corner.
  4. Replies
    8
    Views
    559

    Not sure if Illustrator 8 does it. Here's where...

    Not sure if Illustrator 8 does it. Here's where you find it in Illustrator 10:

    File > Export
    Change the "Format" dropdown to "Macromedia Flash (SWF)".

    If you don't see it, it probably doesn't...
  5. Replies
    20
    Views
    711

    Yes. using width and height will accomplish that...

    Yes. using width and height will accomplish that for you, but you need to modify your animation, because the height will calculate including the mask you're using.

    I made a quick change that...
  6. Replies
    20
    Views
    711

    sorry. here's your file back using width and...

    sorry. here's your file back using width and height:
  7. Replies
    20
    Views
    711

    It's not the circle, but the + sign looking thing...

    It's not the circle, but the + sign looking thing thats the center point. I moved everything over for you and changed the script so that it simply detects it based on the height and width of the...
  8. Replies
    20
    Views
    711

    sorry. here's that screen grab:

    sorry. here's that screen grab:
  9. Replies
    20
    Views
    711

    the if statement checks the x and y position of...

    the if statement checks the x and y position of the mouse (_xmouse and _ymouse) to see if the mouse is within a certain area. In the sample I sent, greater than 0 or less than 50, etc. Modify the...
  10. Replies
    20
    Views
    711

    Sure. Use something like this instead: ...

    Sure. Use something like this instead:


    onClipEvent (enterFrame) {
    if (_xmouse>0 and _xmouse<50 and _ymouse>0 and _ymouse<100) {
    nextFrame();
    } else {
    prevFrame();
    }
    }
  11. Replies
    20
    Views
    711

    thanks.

    thanks.
  12. Replies
    20
    Views
    711

    It's an old file, but it works.

    It's an old file, but it works.
  13. If you're placing the code on the container clip,...

    If you're placing the code on the container clip, it would look something like this:


    onClipEvent (load) {
    this.loadMovie("intro.swf", 1);
    }

    It's better to avoid placing actions directly on...
  14. You can also position the contents of a level...

    You can also position the contents of a level alone.


    _level1._x = 200;
    _level1._y = 150;

    But it only works AFTER content exists in that level. So executing level transformations in the same...
  15. Replies
    5
    Views
    323

    Just add one more line to the button action: ...

    Just add one more line to the button action:


    on (release) {
    _root.bgcontrol.gotoAndStop(1);
    _root.bgframe = 1;
    _root.bground.play();
    }
  16. Replies
    5
    Views
    323

    You have a minor syntax error in your "if"...

    You have a minor syntax error in your "if" statements in "bground".



    if (_root.bgframe = 2)
    stop();
    else
    play();

    should be:
  17. Replies
    5
    Views
    323

    better post it. not sure if i understand whats...

    better post it. not sure if i understand whats going on. (you can attach a file to a post if it's not huge)
  18. change onClipEvent(enterFrame) to...

    change onClipEvent(enterFrame) to onClipEvent(Load). Your current script is loading that external SWF over and over again. That's why you're not seeing it. onClipEvent(load) will perform that action...
  19. Replies
    2
    Views
    313

    Have you checked the "Alias Text" button on the...

    Have you checked the "Alias Text" button on the properties bar as well (see attached screen grab)? If so, it would help to see a sample.
  20. Replies
    1
    Views
    293

    Check out the loadVars object. It's a much...

    Check out the loadVars object. It's a much cleaner way to communicate with server side scripts.
    ...
  21. It may sound simple, but check the color you have...

    It may sound simple, but check the color you have set for the text. I don't know how manny times I've accidentally set the color to be the same as the background color and lost time chasing code bugs...
  22. Replies
    1
    Views
    282

    Better to create the flash at a smaller dimension...

    Better to create the flash at a smaller dimension and scale it up. That's the huge advantage to scalable vector graphics. Large dimension flash files will always run slower. Flash has to crank harder...
  23. Replies
    3
    Views
    297

    My code was just a sample, and I'd set Targetx to...

    My code was just a sample, and I'd set Targetx to 300. You need to modify the Targetx variable to match your desired "target x postion".

    Based on what you first posted it would probably be this.
    ...
  24. Replies
    3
    Views
    466

    works fine for me, but maybe it only works on mac.

    works fine for me, but maybe it only works on mac.
  25. Replies
    8
    Views
    814

    Hand animate the flipping animation, and apply a...

    Hand animate the flipping animation, and apply a script that will play your animation when rolled over and rewind when rolled off. See attachment for sample.
Results 1 to 25 of 174
Page 1 of 7 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center