dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: mkantor

Page 1 of 20 1 2 3 4

Search: Search took 0.45 seconds.

  1. Replies
    4
    Views
    1,366

    D'oh! I got it: import the class name,...

    D'oh! I got it: import the class name, Skateboard, not the file name Skateboard.as.
  2. Replies
    1
    Views
    222

    If the object is in a known movieclip or level,...

    If the object is in a known movieclip or level, you can target it with the square-bracket syntax. If the value of HOLDER is "Obj1", then

    _level0[HOLDER]._x += 10;

    is equivalent to
    ...
  3. Replies
    4
    Views
    1,366

    Did anyone figure this one out? I'm having this problem, too.

    I'm having the same problem in Flash 8. The classes have no references to each other. The code in the .fla is just:

    import Piano.as
    import Skateboard.as

    and I get:

    **Error** Scene=Scene...
  4. Replies
    3
    Views
    341

    mainclip.onPress = startDrag; mainclip.onRelease...

    mainclip.onPress = startDrag;
    mainclip.onRelease = mainclip.onReleaseOutside = stopDrag;
  5. Replies
    1
    Views
    285

    Insert newline characters: message = txt1 +...

    Insert newline characters:


    message = txt1 + "\n" + txt2 + "\n" + txt3 "\n" + txt4;
  6. var words : Array = ["Nitwit", "Oddment",...

    var words : Array = ["Nitwit", "Oddment", "Blubber", "Tweak"];

    function getRandom(a : Array) {
    return a[Math.floor(Math.random() * a.length)];
    }

    function removeItem(item, array : Array) {...
  7. P.S.

    P.S. I think Flash MX 2004 Pro comes with some kind of pre-built FocusManager class. That might be another route to try.
  8. No, setFocus just takes the focus away from the...

    No, setFocus just takes the focus away from the button when it gives focus to the text field. For your application, you need to do explicitly what we usually rely on onRollOver and other events...
  9. The same approach should work. Do not use...

    The same approach should work. Do not use rollOver since that will be undone when focus is set elsewhere. Instead, I think onMouseMove is really what you need.

    Use onMouseMove code to send the...
  10. Here's an example of how I would try to do it. ...

    Here's an example of how I would try to do it. See if this helps at all. It can be rather tricky!
  11. Replies
    3
    Views
    302

    No, duplicateMovieClip always creates clips whose...

    No, duplicateMovieClip always creates clips whose parent is _root. Use attachMovie instead.
  12. If you set the focus to a text field, the button...

    If you set the focus to a text field, the button no longer has the focus, so will no longer appear in it's over (or down) state by default. So, don't use a button -- use a movie clip instead, and...
  13. Here's the link to the massive-collision example....

    Here's the link to the massive-collision example.

    http://www.flashkit.com/movies/Scripting/Physics/massivec-jochem_v-6147/index.php


    I don't know about Flash 5, but since Flash 6 hitTest has...
  14. Use movie clips instead of buttons, and manually...

    Use movie clips instead of buttons, and manually script the rollover action. Something along these lines is what I'd try first:



    myButton.onRollOver = function() {
    ...
  15. There are at least two general approaches to...

    There are at least two general approaches to speeding up the hitTest.

    Method 1. Put all bullets in one movie clip, and have each alien hitTest against that. This works fine as long as you don't...
  16. Replies
    3
    Views
    452

    Well, if you insist on maintaining that...

    Well, if you insist on maintaining that structure, then you will have to keep a list of all the movieClips you've produced, so you can remove them. Actually, as long as the names follow this...
  17. Replies
    1
    Views
    291

    Remove the divide-by-2 from the _y coordinate.

    Remove the divide-by-2 from the _y coordinate.
  18. Replies
    6
    Views
    491

    This example should get you started. var...

    This example should get you started.



    var book : XML = new XML;
    book.ignoreWhite = true;

    var parsedBook : Object = new Object;
    parsedBook.chapters = new Array();
  19. Replies
    2
    Views
    396

    // URL of background image var bgImage : String...

    // URL of background image
    var bgImage : String = "pic1.jpg";

    // width and height of blocks
    var w : Number = 40;
    var h : Number = 60;

    //time (ms) between successive blocks appearing
    var...
  20. Replies
    3
    Views
    452

    It sounds from the description as though you are...

    It sounds from the description as though you are re-using depths. If you create another movie clip in the same depth as an old one, the old one will vanish.

    If you are doing all your drawing in...
  21. Replies
    8
    Views
    1,001

    Put the following script in Frame 1 of the main...

    Put the following script in Frame 1 of the main timeline, and change the name of the jpg as needed.


    _root.createEmptyMovieClip("ball_mc", 1);

    ball_mc.onEnterFrame = function() {
    ...
  22. Replies
    8
    Views
    473

    Glad you worked out a fix. I hope you do file...

    Glad you worked out a fix.

    I hope you do file a bug report with MM, for the benefit of future versions of Flash player.
  23. Replies
    1
    Views
    476

    There is a very good tutorial at...

    There is a very good tutorial at
    http://www.kirupa.com/developer/actionscript/xml_dropdown_menu.htm.
    Only drawback is that it predates Actionscript 2.0, which now provides a cleaner way to...
  24. Replies
    8
    Views
    473

    That's interesting. Seems to be a bug. B ut...

    That's interesting. Seems to be a bug. B ut what is the fill supposed to accomplish? It seems to by applied to a line whose two endpoints are the same, so nothing gets filled. This seems a...
  25. Replies
    17
    Views
    580

    The approach I'm describing will only work...

    The approach I'm describing will only work through a Web server. (This could, of course, be run entirely on your machine, and limited to local access.)

    If you are pointing a Web browser at a...
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