A Flash Developer Resource Site

Search:

Type: Posts; User: Trugas

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Unfortunately copying something with user-defined...

    Unfortunately copying something with user-defined dynamic data is exactly what I need to do.

    Actually for what it's worth, here's an outline of the big picture:
    I'm trying to create a chess game...
  2. Replies
    4
    Views
    632

    Lol. Wow, the things you find yourself...

    Lol. Wow, the things you find yourself discovering with flash eh? Btw you're on the right track, this is how it was achieved in the book.

    friction = 0.95;
    dot.vx += Math.random() * 0.2 - 0.1; ...
  3. Replies
    4
    Views
    632

    Here's a quote from the book. Sounds like the...

    Here's a quote from the book. Sounds like the solution to the jerky motion you described.

    "It’s important to add some friction into this, otherwise the velocities tend to build up, and things...
  4. Replies
    4
    Views
    632

    Hmm, this sounds awfully familiar. I think the...

    Hmm, this sounds awfully familiar. I think the theory you're looking for is described exactly by the phenomenon known as Brownian motion. And if memory serves there's a chapter addressing how to...
  5. *sigh* while I'm sure that there must be a valid...

    *sigh* while I'm sure that there must be a valid technical reason why as3 can't support display object cloning, it's incredible that something as essential as copying an object requires an elaborate...
  6. Cloning objects: I want a duplicate not a reference

    I'm sure this is a common problem but i haven't been able to find a clear answer.

    I have an instance of a custom class which extends the Sprite class. All I want to do is create copies of it. The...
  7. Ah that makes perfect sense. Thanks for the help.

    Ah that makes perfect sense. Thanks for the help.
  8. [RESOLVED] 2d arrays: how to edit the arrays inside them

    Problem:
    In the example below i have two arrays: warmColours and coolColours. I put them in an array called allColours. So far so good.

    I make a copy of allColours (allColoursClone). I try to...
  9. Thread: Guitar Tutor?

    by Trugas
    Replies
    2
    Views
    1,022

    Piece of cake. Drag and drop with snap, rough...

    Piece of cake. Drag and drop with snap, rough outline below. Good luck.


    var gridSize:Number = 10;
    // Sets the size of the squares of the grid which the dots snap to.
    ...
  10. Replies
    5
    Views
    3,910

    Agreed. But "I don’t know enough about physics to...

    Agreed. But "I don’t know enough about physics to make this happen" was the actual question, so I helped where I could; with the physics :)
  11. Replies
    5
    Views
    3,910

    Ok so best place to start is to understand the...

    Ok so best place to start is to understand the theory first. Basically you're dealing with a shifting centre of gravity, It's a pretty simple concept. As the crackers pile up on the plate they shift...
  12. Replies
    2
    Views
    2,148

    Ok I think I found the problem. Mouse coords are...

    Ok I think I found the problem. Mouse coords are only integers not numbers. This lack of precision means that the smallest distance the mouse can move on the x or y axis is exactly 1 px (or -1px), of...
  13. Replies
    2
    Views
    2,148

    Ok, so to explain exactly what I'm seeing: The...

    Ok, so to explain exactly what I'm seeing: The movieclip graphic following under the mouse is not rotating smoothly. What actually appears to be happening is that the graphic is snapping to 45 degree...
  14. Replies
    2
    Views
    2,148

    Custom mouse pointer rotation is erratic

    Ok well I'm not really replacing the mouse cursor exactly. Just placing a custom image of a pointer below it so it will follow the mouse cursor as it moves around the screen. I want this pointer...
  15. Replies
    12
    Views
    12,722

    rachil0: Thanks for all your info. Did some...

    rachil0: Thanks for all your info. Did some research on "the ambiguous case" and you're certainly right. :)

    dudeqwerty: Not sure I follow you. totalDist just gives the distance to the point...
  16. Replies
    4
    Views
    6,498

    Hey strikerjax. Looks like we're both looking for...

    Hey strikerjax. Looks like we're both looking for the same answer.
    How to find the point at which an object traveling in a straight line passes through a circle. I posted the same question a couple...
  17. Replies
    12
    Views
    12,722

    Would leave this to solve......

    Would leave this to solve...
    http://i594.photobucket.com/albums/tt26/Trugas/TrigDiagram3.png?t=1252461153
    Question 1) Is this way even possible or am I assuming too much?
    Question 2) Even if it...
  18. Replies
    12
    Views
    12,722

    Okay fun's not over yet though. I was just...

    Okay fun's not over yet though. I was just considering if this can be done by using the rule of sines too? Here's what I mean......
  19. Replies
    12
    Views
    12,722

    Lmao, you guys are freaks! :) Thankyou!! I've...

    Lmao, you guys are freaks! :)
    Thankyou!! I've been struggling with this for days.
  20. Replies
    12
    Views
    12,722

    Tricky trigonometry question

    OK, This one really needs a diagram to explain so check the attached image I created.
    (I need to find the lengths of the blue triangle).
    ...
  21. Replies
    7
    Views
    1,107

    Yeah, no problem. Glad that did the trick. Dunno...

    Yeah, no problem. Glad that did the trick.
    Dunno if I can help you with your other problem though. My guess is that it's most likely an Internet Explorer issue rather than a Flash problem.
  22. Replies
    7
    Views
    1,107

    Had a feeling this question might be next....

    Had a feeling this question might be next. :rolleyes:
    Create frame labels for all the frames you want to be able to jump to. From there this code should do the job.

    var rdmInt:int =...
  23. Replies
    7
    Views
    1,107

    Ok, sounds like you've built the animation...

    Ok, sounds like you've built the animation entirely on the timeline and I'm guessing you might be pretty new to the whole idea of using actionscript to control flash. This is a basic solution that...
  24. Replies
    7
    Views
    1,107

    OK what is the strategy you've used to set this...

    OK what is the strategy you've used to set this up originally? Do you have the images stored in an Array for example?
  25. Replies
    3
    Views
    544

    Thanks guys. I'm liking the look of: (angle >...

    Thanks guys. I'm liking the look of:

    (angle > 0)? mc.rotation += rotateIncrement : mc.rotation -= rotateIncrement;
    I've never seen an if/else statement written like that before. Nice and simple.
Results 1 to 25 of 83
Page 1 of 4 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center