ClipProperty

Uses a movieClip on the stage as input and outputs a property of the clip, including X,Y,Z,width, height, etc.

The ClipProperty widget uses a property of a movieClip on stage as its input, and outputs the value of that property. For example, a project that’s on a mobile device might allow the user to touch and drag an image up and down. ClipControl can listen to the Y property of this image movieClip, and send that to a ServoOut widget. Another option would be to send these value to an AnalogOut that is set to hubFeed as its output controller. This would allow an App running on an iPad to send values to another NETLab Toolkit project running on a computer, where an AnalogIn is set to listen to the same hubFeed.

On-screen Features

  • in: Shows the instance name of the movieClip and the values coming from it
  • out: Shows the values of the property of the clip being listened to
  • theProperty: the property of the movieClip used for input
    • x, y, z: Note that for x, zero is on the left of the screen; for y, zero is at the top of the screen; for z, zero is normal and higher numbers are away from the screen.
    • width/height
    • scaleX,scaleY
    • rotation, rotationX, rotationY, rotationZ: 0 to 360 indicating the number of degrees rotation, multiples of 360 are possible
    • alpha: 0 to 100, where 0 is completely transparent, and 100 is completely opaque
    • currentFrame: 1 to the highest frame in the clip timeline

Parameters

  • clip: the instance name of the movieClip you want to listen to
  • invisible: If set to “true” or checked, the widget will disappear when the Flash movie is run – NOTE: you can make all the widgets invisible interactively when the Flash moving is running by pressing the backslash key “\”

Last modified March 7th, 2012