A Flash Developer Resource Site

Search:

Type: Posts; User: darrellart

Page 1 of 4 1 2 3 4

Search: Search took 0.04 seconds.

  1. Preloader question number 1,832,839: partial asset preloading

    I'm trying to create a Flash portfolio in AS3 and have been stumped/confused by certain preloader tutorials so far. I have created a preloader that works...for embedded assets (images), that is. The...
  2. Samac, Thanks a lot! If I understand what...

    Samac,

    Thanks a lot!

    If I understand what you said...

    1) Any variable that's an Object can have a movieclip assigned to it as a property, because the movieclip class is an extension of the...
  3. Question about understanding dot notation for properties

    I found some code for loading images with a preloader on a website and managed to adapt it to all be in an external AS file instead of on the Flash timeline. It's working, but I don't quite...
  4. More of my onClick code

    Sorry, I missed a couple of relevant lines of my onClick function when I pasted this code in my first post.

    I'm still completely baffled as to how the .stop() function could play the previous...
  5. Strange Tween behavior when using tween.stop() function

    I'm working on a simple game where a movieclip (the Hero) tweens from its current location to wherever the mouse is clicked. A reference to each tween is stored in a global variable (a Dictionary...
  6. CS3 Samac, Thanks for your information; you've...

    Samac,

    Thanks for your information; you've gone way above and beyond!

    I've never tried it with the Tween class, but I have written some (simple) classes, e.g.:


    package {

    import...
  7. CS3 duplicate post deleted

    duplicate post deleted
  8. CS3 Yes, I noticed that comment about extending the...

    Yes, I noticed that comment about extending the Tween class on your previous post, but it sounded a little advanced for me. I'm not posting in the Newbies section for nothing!

    My guess is that...
  9. CS3 Thanks for the info. Global variable it is. I...

    Thanks for the info. Global variable it is.

    I read the posting you linked but still couldn't figure out how to adapt it to get around the lack of argument issue without using a global var. But...
  10. CS3 How can I send an argument with a tween event??

    What I want to do is to remove an item from the array targetArray when the tween hitFade has finished. I added a MOTION_FINISH event to the hitFade tween which calls the spliceTarget function. I...
  11. Here is my hitTest code and the debug code that...

    Here is my hitTest code and the debug code that draws the rect around the hero and target when a hit is detected. This seems to be drawing the rect correctly, because the hero and target rects always...
  12. I'd be happy to post the .fla file and the .as...

    I'd be happy to post the .fla file and the .as files that accompany it -- I don't know how to post files here, though. Where can I find out how to do that? I found a place to upload Flash Source...
  13. neznein, Thanks for your ideas. I will...

    neznein,

    Thanks for your ideas. I will definitely look into BitmapData.hitTest().

    ...but unless I'm missing something in your explanation, I already understand that the bounding box will get...
  14. In the way of some more information, I also get...

    In the way of some more information, I also get the problem if the rotation of the object is 0, but the symbol itself contains a rotation animation. Even though the movie clip instance isn't...
  15. HitTest error in AS 3, Flash 9: huge getRect result

    I'm trying to detect an intersection between a "hero" and a "target". I understand about HitTest using the bounding box to determine that, and I understand how rotating a movie clip can make the...
  16. Replies
    1
    Views
    478

    Well, I seem to have solved the problem. I...

    Well, I seem to have solved the problem.

    I moved the last two timer lines inside of the Kollide function.

    (timer.addEventListener(TimerEvent.TIMER, onTimer);
    timer.start();)
  17. Replies
    1
    Views
    478

    Inexplicable error trying to use Timer

    Below is a stripped down version of the contents of my file, Kollide.as. I want to be able to test for object collisions at less than the 30 frame per second rate of the .fla, so I can have smooth...
  18. Problem solved! My brother found the error in...

    Problem solved!

    My brother found the error in this line:

    enemyArray.push(Enemy);

    It should read:
    enemyArray.push(enemy);
  19. Just for completeness, here's all the code in...

    Just for completeness, here's all the code in this class:


    package {

    import flash.display.MovieClip;
    import flash.events.*;
    import flash.display.DisplayObject;

    public class Keepaway...
  20. Mavrisa, Thanks for the suggestion. When I...

    Mavrisa,

    Thanks for the suggestion. When I insert that line I get two errors:
    1120: Access of undefined property DisplayObject
    1118: Implicit coercion of a value with static type Object to a...
  21. Getting an error when I try to use hitTestObject on an array index?

    This is the error I get:

    TypeError: Error #1034: Type Coercion failed: cannot convert Enemy$ to flash.display.DisplayObject.
    at Keepaway/onLoop()

    Here are all the class's variables:

    ...
  22. Why is my stroke setting affecting my bounce detection code?

    I generate a bunch of "enemies" (Class "Enemy") that bounce randomly around the screen. The Enemy Class symbol is simply a square. The function moveEnemy moves the Enemy. If the Enemy's edge goes...
  23. DiamondDog, That did the trick, thanks a lot!...

    DiamondDog,

    That did the trick, thanks a lot! I knew it had to be something obvious (to someone with more experience).
  24. [CS3] Why is Math.random() always generating 0?

    Here's my code, in a .as file. I'm trying to put some enemies on the stage and have them each be assigned a random speed and direction. I know the code isn't done (for instance, they would just go...
  25. Sheepysheep60, No apologies necessary! You...

    Sheepysheep60,

    No apologies necessary! You solved the problem, and I'm feeling pretty sheepish myself. I don't know why they would use a different property name for stage height and width, but...
Results 1 to 25 of 77
Page 1 of 4 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center