A Flash Developer Resource Site

Search:

Type: Posts; User: robertpenner

Page 1 of 9 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    13
    Views
    890

    Swampy will perish in the Dead Marshes.

    Swampy will perish in the Dead Marshes.
  2. Replies
    42
    Views
    1,836

    The Silmarillion by J.R.R. Tolkien. It tells the...

    The Silmarillion by J.R.R. Tolkien. It tells the story of how Illuvatar (God) created Middle Earth, Elves, Men, Dwarves, and what happened in the First Age.
  3. Replies
    13
    Views
    890

    Moock's ASDG2 - A Long Review

    ActionScript for Flash MX: The Definitive Guide, by Colin Moock
    Reviewed by Robert Penner


    Read it here

    Excerpt:
    'I remember first hearing Colin Moock speak at FlashForward 2001 in San...
  4. Replies
    0
    Views
    377

    Moock's ASDG2 - A Long Review

    ActionScript for Flash MX: The Definitive Guide, by Colin Moock
    Reviewed by Robert Penner


    Read it here

    Excerpt:
    'I remember first hearing Colin Moock speak at FlashForward 2001 in San...
  5. // copy vars from a to b for (var p in a) { ...

    // copy vars from a to b
    for (var p in a) {
    b[p] = a;
    }

    It's really as easy as that. You can make this into a function:


    function copyVars (a, b) {
    for (var p in a) {
  6. Replies
    4
    Views
    299

    I'm not sure what you're trying to do, but it...

    I'm not sure what you're trying to do, but it looks like you're not clear on how function parameters and function calls work.
  7. Replies
    4
    Views
    299

    There are several problems with your function. ...

    There are several problems with your function.

    1. The parameter is called "number", which is a reserved word.
    2. You aren't using the function parameter inside the function.
    3. You're calling...
  8. Replies
    1
    Views
    1,064

    Re: Here's a good one...

    You probably mean 3x + 3y + z - 82 = 0, right? (missing y)
    And tER means that t is a real number?
  9. It would be helpful if you posted some code or...

    It would be helpful if you posted some code or more explanation.

    Perhaps this will start you off:

    angleInRadians = Math.atan2 (y, x);
    angleInDegrees = angleInRadians * 180 / Math.PI;

    This...
  10. Replies
    3
    Views
    494

    I created a Flash 5 version of...

    I created a Flash 5 version of Object.registerClass()--it can't do everything that MX can, but it helps:




    // create functions if in Flash 5
    if ( getVersion().indexOf(" 5,") != -1 ) {
    ...
  11. Replies
    4
    Views
    3,171

    As a Math function: Math.logBase =...

    As a Math function:



    Math.logBase = function (num, base) {
    if (base == undefined) base = Math.E;
    return Math.log (num) / Math.log (base);
    };

    // test
  12. Replies
    1
    Views
    1,105

    You can use the equation for a lemniscate...

    You can use the equation for a lemniscate (parametric form):

    http://mathworld.wolfram.com/Lemniscate.html

    Translated to ActionScript, this should get you started:



    // put a "ball" movie...
  13. Replies
    3
    Views
    494

    Sorry, there is no equivalent in Flash 5.

    Sorry, there is no equivalent in Flash 5.
  14. Cross-reference: Scam: OpenLGX - We were...

    Cross-reference:

    Scam: OpenLGX - We were fooled

    http://www.flashguru.co.uk/000118.php
  15. Hello everyone, I am speaking at FlashForward in...

    Hello everyone, I am speaking at FlashForward in New York on "Dynamic Drawing in Flash MX." I would like to show off some creative examples using the shape drawing API. Post your URLs in this thread...
  16. Originally posted by snowdude [B]...

    [QUOTE]Originally posted by snowdude
    [B]
    Nowhere does the article say that. Why are you saying it? I don't think this is true at all.
  17. Thank you CrashStar, I changed my settings right...

    Thank you CrashStar, I changed my settings right away. For the longest time, I would rarely get spammed on my Yahoo address--maybe once a week on average. Now it's more often.

    If you have a Yahoo...
  18. Replies
    2
    Views
    1,821

    I'm got some nice setBrightness() code for you...

    I'm got some nice setBrightness() code for you here:

    http://www.robertpenner.com/scripts/color_extensions.txt
  19. Replies
    9
    Views
    1,029

    Thanks for the reminder, Stickman.

    Thanks for the reminder, Stickman.
  20. Replies
    9
    Views
    1,029

    Here's all the undocumented features I can think...

    Here's all the undocumented features I can think of. Feel free to add on.

    1. Cookie object
    2. fscommand ("save", "file.txt")
    3. asfunction (added to revised Actionscript Dictionary)
    4....
  21. Right you are, Stickman. Peculiar.

    Right you are, Stickman. Peculiar.
  22. Good catch, Stickman. I rejigged it so you don't...

    Good catch, Stickman. I rejigged it so you don't need the load initialization:


    onClipEvent (enterFrame) {
    rButton = !Key.isToggled(2);
    if (rButton ^ old) {
    trace ("right click detected");...
  23. An explanation of the above code-- The Key...

    An explanation of the above code--

    The Key object is used to detect keyboard interaction. For some reason, Flash treats the right mouse button as "key 2" (and the left mouse button as key 1).
    ...
  24. Great work, Sem. Stickman, Flash can detect...

    Great work, Sem.

    Stickman, Flash can detect mouse right-click, although it's not a widely-known technique.

    Paste this code onto a movieclip instance:


    onClipEvent (enterFrame) {
    rButton...
  25. I've been wondering for a while about the...

    I've been wondering for a while about the mathematical properties of Flash's built-in easing. I thought it was probably cubic, because a lot of animation programs use cubic splines for their easing....
Results 1 to 25 of 207
Page 1 of 9 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center