Professional Web Applications Themes

Flash sprite control - Macromedia Director Lingo

Please help... Deadlines looms hours away.... I have a flash sprite on stage, I want to be able to click a "Rotate Forward" and "Rotate Back" option. Trying to use the following (going to the current frame plus 5 for example): on mouseDown me cursor -1 -- goToFrame(sprite 12, 1) Property n -- Current Frame number of Flash Sprite n = sprite (12).getFlashProperty(targetName, #currentframe) goToFrame(sprite 12, n + 5) end Thank you in advance for your help!!! Michael Hamstra...

  1. #1

    Default Flash sprite control

    Please help... Deadlines looms hours away....

    I have a flash sprite on stage, I want to be able to click a "Rotate
    Forward" and "Rotate Back" option. Trying to use the following (going to the
    current frame plus 5 for example):

    on mouseDown me
    cursor -1
    -- goToFrame(sprite 12, 1)

    Property n -- Current Frame number of Flash Sprite
    n = sprite (12).getFlashProperty(targetName, #currentframe)
    goToFrame(sprite 12, n + 5)



    end

    Thank you in advance for your help!!!

    Michael Hamstra


    Michael Hamstra Guest

  2. #2

    Default Re: Flash sprite control

    If you want rotation why not do a movieSprite in a movie in Flash and
    have that rotate on a click somehow ? I fail to see what your code
    should achieve.

    Nick

    Michael Hamstra wrote:
    > I have a flash sprite on stage, I want to be able to click a "Rotate
    > Forward" and "Rotate Back" option. Trying to use the following (going to the
    Nick Guest

  3. #3

    Default Re: Flash sprite control

    Hi Michael,

    sprite(12).frame will return the flash sprite's current frame.

    --
    Rob
    _______
    Rob Dillon
    Team Macromedia
    [url]http://www.ddg-designs.com[/url]
    412-243-9119

    [url]http://www.macromedia.com/software/trial/[/url]
    Rob Dillon Guest

  4. #4

    Default Re: Flash sprite control

    Thanks Rob.

    "Rob Dillon" <robddg-designs.com> wrote in message
    news:180920031055585773%robddg-designs.com...
    > Hi Michael,
    >
    > sprite(12).frame will return the flash sprite's current frame.
    >
    > --
    > Rob
    > _______
    > Rob Dillon
    > Team Macromedia
    > [url]http://www.ddg-designs.com[/url]
    > 412-243-9119
    >
    > [url]http://www.macromedia.com/software/trial/[/url]

    Michael Hamstra Guest

Similar Threads

  1. ActiveX Video Sprite Control
    By TheMoo in forum Macromedia Director Basics
    Replies: 2
    Last Post: March 7th, 11:10 PM
  2. using arrow keys 2 control a sprite???
    By j1mmy webforumsuser@macromedia.com in forum Macromedia Director Lingo
    Replies: 4
    Last Post: November 27th, 06:04 PM
  3. flash sprite sound control
    By Scott Southworth in forum Macromedia Director Lingo
    Replies: 0
    Last Post: October 28th, 01:50 AM
  4. movie script sprite control
    By silvertron webforumsuser@macromedia.com in forum Macromedia Director Lingo
    Replies: 7
    Last Post: September 22nd, 02:47 PM
  5. Sprite control with the keyboard
    By adwatkin webforumsuser@macromedia.com in forum Macromedia Director Lingo
    Replies: 2
    Last Post: August 1st, 07:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139