[Xerte] setting id

Mary Ann Ahearn maryann at moberg.com
Fri Jul 23 16:59:30 BST 2010


Here's the flash documentation for setProperty - a movie clip function.  Is
this what you had in mind?

setProperty(target:Object, property:Object, expression:Object) : Void

Changes a property value of a movie clip as the movie clip plays.

*Availability: *ActionScript 1.0; Flash Player 4
Parameters

*target*:Object - The path to the instance name of the movie clip whose
property is to be set. *
*

*property*:Object - The property to be set.

*expression*:Object - Either the new literal value of the property, or an
equation that evaluates to the new value of the property.
Example

The following ActionScript creates a new movie clip and loads an image into
it. The _xand _y coordinates are set for the clip using setProperty(). When
you click the button called right_btn, the _x coordinate of a movie clip
named params_mc is incremented by 20 pixels.

this.createEmptyMovieClip("params_mc", 999);

params_mc.loadMovie("http://www.helpexamples.com/flash/images/image1.jpg");

setProperty(this.params_mc, _y, 20);

setProperty(this.params_mc, _x, 20);

this.right_btn.onRelease = function() {

setProperty(params_mc, _x, getProperty(params_mc, _x)+20);

};




On Fri, Jul 23, 2010 at 11:25 AM, Dave Burnett <d_b_burnett at hotmail.com>wrote:

>
>
> I'm having another of my noticeably more frequent senior moments.
> At least I'll get half-price at the buffet soon...
>
>
> icon.previousSibling.clip().getProperty('id')
>
> What's the syntax to set this same property?
>
> Thnx.
>
> Dave
>
>
> _________________________________________________________________
> Hotmail is redefining busy with tools for the New Busy. Get more from your
> inbox.
>
> http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2_______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20100723/abc5104d/attachment.html


More information about the Xerte mailing list