Hi

I am currently trying to create a progress bar for a movieclip in director.
I have managed to create the same progress bar before, but for some reason
now it just wont work.  I have managed to find the area which is going
wrong.

myvalue = float(current / videoDuration) * mysize

'current', 'videoDuration' and 'mysize', all have values, however when I try
read 'myvalue' no value is displayed.
???????????

Where am I going wrong?
_______________________________________________________

global myvalue
global mysize
global videoDuration
global videoSprite

property progressbar
property videoSprite
property videoDuration
property mysize

on beginSprite me
  initialize me
end beginSprite

on prepareframe me
  myupdate me
end prepareframe

on initialize me
  videoDuration = sprite(videoSprite).duration
  mysize = sprite(progressbar).width
end initialize

on myupdate me
  current = sprite(videoSprite).movieTime
  myvalue = float(current / videoDuration) * mysize        <<<<< The problem
area
  sprite(progressbar).width = myvalue
  member("check").text = string(myvalue)                    <<<<using this
to debug
end myupdate

on getPropertyDescriptionList me
  description = [:]
  addprop description, #videoSprite, [#comment:"Video Sprite",
#format:#sprite, #default:0]
  addprop description, #progressbar, [#comment:"Progress Sprite",
#format:#sprite, #default:0]
  return description
end getPropertyDescriptionList
__________________________________________________________________

Many thanks in advance

Richard Poole


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to