Professional Web Applications Themes

How to read the keyframes name... - Macromedia Director 3D

What about this one? alert string(sprite(1).member.model[n].keyframePlayer.playlist[1]) gets me: [#name:"Box-Key" , #loop:1, #starttime:0,#endtime:1500, scale:1.0"] so how do I get the #name only (Box-Key)? string(sprite(1).member.model[b].keyframePlayer.playlist[1].#name) doesnt work string(sprite(1).member.model[b].keyframePlayer.playlist[1].name) doesnt work string(sprite(1).member.model[b].keyframePlayer.playlist[1].modifier.#name) doesnt work any ideas? Tanks in advance!...

  1. #1

    Default How to read the keyframes name...

    What about this one?

    alert string(sprite(1).member.model[n].keyframePlayer.playlist[1])
    gets me:
    [#name:"Box-Key" , #loop:1, #starttime:0,#endtime:1500, scale:1.0"]

    so how do I get the #name only (Box-Key)?

    string(sprite(1).member.model[b].keyframePlayer.playlist[1].#name)
    doesnt work

    string(sprite(1).member.model[b].keyframePlayer.playlist[1].name)
    doesnt work

    string(sprite(1).member.model[b].keyframePlayer.playlist[1].modifier.#name)
    doesnt work

    any ideas?

    Tanks in advance!

    foq Guest

  2. #2

    Default Re: How to read the keyframes name...

    This is untested off the top of my head, but try this:

    alert string(sprite(1).member.model[n].keyframePlayer.playlist[1][#name])
    Mike Blaustein Guest

  3. #3

    Default Re: How to read the keyframes name...

    Thanks a lot for trying, but it didnīt work...
    foq Guest

  4. #4

    Default Re: How to read the keyframes name...

    See the attached code.



    global w

    on beginSprite me
    w = member("W3D_name")
    repeat with n = 1 to w.model.count
    if (w.model[n].modifier).getOne(#keyframePlayer) = true then
    motion_name = (w.model[n].keyframePlayer.playlist[1]).name
    -- put motion_name
    end if
    end repeat
    end

    necromanthus Guest

  5. #5

    Default Re: How to read the keyframes name...

    Thanks a lot, necromanthus. It worked perfectly.
    foq Guest

Similar Threads

  1. Keyframes on FLV file
    By GuybeushThreepwood in forum Macromedia Flash Flashcom
    Replies: 1
    Last Post: October 1st, 02:36 PM
  2. Adding text directly into keyframes, creating tweens
    By adamfharris in forum Macromedia Flash Data Integration
    Replies: 5
    Last Post: July 19th, 04:10 PM
  3. How Do I Align Bitmaps Manually Dragged into Blank Keyframes?
    By J. Danniel in forum Macromedia Flash
    Replies: 1
    Last Post: April 23rd, 01:19 AM
  4. File system get auto change from read-write to read-oly
    By RC in forum Linux / Unix Administration
    Replies: 1
    Last Post: October 23rd, 10:51 PM
  5. Read & Read/Write Groups
    By Damien Harrod in forum Sun Solaris
    Replies: 1
    Last Post: July 22nd, 01:52 PM

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