Professional Web Applications Themes

film loop speed - Macromedia Director Basics

hi, my name is E.C. i wanted to create an interface where when you roll over a sprite it fades into a film loop which is places behind it. everything works aside the fact that while the upper sprite is "fading" to 0 ( using a repeat while loop ) the film loop beneath it runs at about 40 fps... after the blending is complete the frame rate of the film loop changes to the fps of the score. if anyone understood what i just wrote then help me out. thanx...

  1. #1

    Default film loop speed

    hi, my name is E.C.

    i wanted to create an interface where when you roll over a sprite it fades into a film loop which is places behind it.

    everything works aside the fact that while the upper sprite is "fading" to 0 ( using a repeat while loop ) the film loop beneath it runs at about 40 fps... after the blending is complete the frame rate of the film loop changes to the fps of the score.

    if anyone understood what i just wrote then help me out.

    thanx



    d-sign webforumsuser@macromedia.com Guest

  2. #2

    Default Re: film loop speed

    Probably, each updateStage in your fadeout loop script is increamenting
    the frame in the film loop, may have to stick in a static placeholder
    for the loop at thins point.
    JB Guest

  3. #3

    Default Re: film loop speed

    > Probably, each updateStage in your fadeout loop script is increamenting
    > the frame in the film loop, may have to stick in a static placeholder
    > for the loop at thins point.
    Or don't use a repeat loop with updateStage - use an enterFrame handler instead
    like this:-

    ----------------------------------------
    property spriteNum, self, active, fadeDirn, fadeAmount, fadeInc

    on enterFrame
    if not(active) then exit
    fadeAmount=fadeAmount+fadeDirn*fadeInc
    if fadeAmount<=0 then
    fadeAmount=0
    active=false
    end if
    if fadeAmount>=100 then
    fadeAmount=100
    active=false
    end if
    self.blend=fadeAmount
    end enterFrame

    on mouseEnter
    active=true
    fadeDirn= -1
    end mouseEnter

    on mouseLeave
    active=true
    fadeDirn=1
    end mouseLeave

    on beginSprite
    self=sprite(spriteNum)
    active=false
    fadeAmount=100
    fadeDirn= -1
    fadeInc=4
    self.blend=fadeAmount
    end beginSprite

    on endSprite
    self.blend=100
    end endSprite
    ----------------------------------------

    Andrew Morton

    Andrew Morton Guest

  4. #4

    Default Re: film loop speed

    thanx andrew,
    that fixed the whole thing
    e.c.



    d-sign webforumsuser@macromedia.com Guest

Similar Threads

  1. Can a film loop play once, then loop on the last frame(s)?
    By Schiemer webforumsuser@macromedia.com in forum Macromedia Director Lingo
    Replies: 0
    Last Post: November 29th, 03:35 AM
  2. Film loop rollovers working with tell sprite, but only if Loop is checked
    By Schiemer webforumsuser@macromedia.com in forum Macromedia Director Basics
    Replies: 0
    Last Post: November 27th, 06:02 AM
  3. Best type of film/speed for wedding
    By ThomasNews in forum Photography
    Replies: 11
    Last Post: September 8th, 02:19 PM
  4. film speed
    By The Review in forum Photography
    Replies: 1
    Last Post: August 20th, 01:42 PM
  5. Urgent: Repeat loop and Film loop clash!
    By Jai G in forum Macromedia Director Lingo
    Replies: 4
    Last Post: July 31st, 04:39 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