A Flash Developer Resource Site

Search:

Type: Posts; User: hafunui

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. Replies
    2
    Views
    854

    Are the water objects overlapping a little bit?

    Are the water objects overlapping a little bit?
  2. Replies
    2
    Views
    2,219

    Could you post what scoreBar.updateLives() is...

    Could you post what scoreBar.updateLives() is doing? I imagine it has something to do with that.
  3. Replies
    1
    Views
    1,077

    import flash.events.MouseEvent; ...

    import flash.events.MouseEvent;

    stage.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelFunction);

    function mouseWheelFunction(e:MouseEvent):void {
    trace(e.delta); //for me, this returns...
  4. Replies
    1
    Views
    764

    In your loop, "i

    In your loop, "i <= objectsc1.length" is the problem. It should be "i < objectsc1.length". No = sign.
  5. Replies
    2
    Views
    343

    I'm not sure I fully understand the issue. Does...

    I'm not sure I fully understand the issue. Does the button go back to its default mouseOut state when interacting with the submenu? If so, and you're using the simple button data type, that could be...
  6. var myList:Array = new Array("item1", "item2",...

    var myList:Array = new Array("item1", "item2", "item3", "item4", "item5", "item6");
    var startAt:int = 0;

    stage.addEventListener(KeyboardEvent.KEY_DOWN, getKey);

    function traceFourItems():void...
  7. Replies
    2
    Views
    355

    Oh, haha, everything works now, thanks :)

    Oh, haha, everything works now, thanks :)
  8. Replies
    2
    Views
    355

    [RESOLVED] Problem with Loader class

    I'm trying to load images using the loader class but it doesn't seem to ever trigger the COMPLETE event (in this case anyway). The images are only 16x16px images from the local machine, so it should...
  9. Replies
    1
    Views
    1,908

    I would like to achieve the very same. I...

    I would like to achieve the very same.

    I recall seeing some code a while back where someone created a new sound ( through code ) and referenced it to an externally generated file as a byteArray (...
  10. Replies
    4
    Views
    9,510

    Just push B then click and drag. What exactly...

    Just push B then click and drag.

    What exactly happens when you do that?
  11. Replies
    1
    Views
    554

    Detecting attached events?

    Is there a way to detect what events have been attached to a movieclip?

    I want to remove an event listener only if it has been added, and add it only if it hasn't been added yet.
  12. Replies
    9
    Views
    10,992

    I'd like to know the solution to this as well....

    I'd like to know the solution to this as well. It's no problem if the background is black, but that's not always the case.

    My only guess would be blend modes.
  13. Replies
    3
    Views
    576

    Yeah, I want to send the impulse right as the...

    Yeah, I want to send the impulse right as the mouse is clicked. I tried CLICK but that seemed even worse.
  14. Replies
    3
    Views
    576

    MouseEvent not registering all the time.

    I'm making a game where you keep a ball in the air by clicking on it, but the mouseevent doesn't always register.

    Here's the code so far (sorry if its messy)


    var debug:Sprite = new Sprite();...
  15. Replies
    1
    Views
    345

    Holding arrays in external file?

    I'm basically following Tonypas tile tutorial, so I got my maps as arrays inside an object;

    maps.myMap1 =
    [
    [1,1...],
    [1,2...],
    ...
    ];
    maps.myMap2 = ...
  16. Thread: Help with atan

    by hafunui
    Replies
    3
    Views
    3,362

    also angle.toFixed(0) will truncate your value to...

    also angle.toFixed(0) will truncate your value to n number of decimal places. 0 is whole number. Useful if you don't want to round it.

    PS: this might be an AS3 only feature, I'm not familiar with...
  17. Replies
    21
    Views
    1,678

    I don't know if anyone's already said this, but...

    I don't know if anyone's already said this, but there is already an AS3 port of that on the same blog (if its what I'm thinking of)
  18. If you want to find the angle of the cursor in...

    If you want to find the angle of the cursor in relation to your character (or any two points) you would first need to find the horizontal and vertical difference.

    mouseX - guy.x = cos;
    guy.y -...
  19. Thanks, worked great!

    Thanks, worked great!
  20. Well, I kinda ditched the rotating axis idea for...

    Well, I kinda ditched the rotating axis idea for now. I was having some problems with variables I think, when I clicked one point, the others would slowly move away.

    Instead I've got the points...
  21. trying to find coordinates for points around a circle

    How do I find the x,y coordinates for nNumber of equally spaced points around the circumference of a circle?
  22. Oh wow, thanks. That's just what I needed. Had to...

    Oh wow, thanks. That's just what I needed. Had to do a bit of research on points, but I got it working with a fixed offset length (and only having the chord points movable at the moment)

    Perhaps...
  23. Yeah, I just learned the formula :D (offset^2 +...

    Yeah, I just learned the formula :D
    (offset^2 + (chord / 2)) / (offset * 2) = radius

    I think I know what you're talking about, but I'm not too sure how to do that exactly.

    I'm guessing that to...
  24. Sure, heres a screenshot Here....

    Sure, heres a screenshot

    Here.
  25. Dragging 3 lines while keeping them at 90 degrees

    Basically what I'm trying to do is create a circle from a chord in realtime. I have 3 dragable circles, 2 representing the chord length, and one for the curve offset.

    My question is, how do I keep...
Results 1 to 25 of 29
Page 1 of 2 1 2




Click Here to Expand Forum to Full Width

HTML5 Development Center