[Laszlo-dev] Applying transformation matrix on movie clip
Christophe NEY
christophe.ney at batisseurs.com
Mon Oct 29 06:36:53 PDT 2007
Thanks, Got it !
It works perfectly, but it is a little difficult to integrate since the
matrix must also translate
along x with the window width and flash 8 is required, so I will think
about the best integration
strategy... beside those issues the result is great!
Many thanks,
Christophe
P T Withington a écrit :
> I you need to get access to the movie clip that represents a view, it
> is available as:
>
> <view>.sprite.__LZmovieClipRef
>
> Nothing in LZX prevents you from directly manipulating movie clips,
> but this is not a supported API and is subject to change.
>
> You may find it helpful to use the debugger, with
> Debug.showInternalProperties=true to explore...
>
> On 2007-10-27, at 06:09 EDT, Christophe NEY wrote:
>
>> First I would like to congratulate the laszlo dev team for this
>> fantastic framework!
>>
>> Here is a question for you guys of the core team:
>>
>> I am developping an app where I need to apply a transformation on a
>> movie
>> clip so that it is played as if in a mirror.
>>
>> I have tried to set negative width without success.
>>
>> Looking at the AS2 language reference doc, it looks like the right
>> way to do it
>> is to use the transformation matrix, but it can't access such
>> propertie from the
>> movie clip in videoview.
>>
>> the code is
>>
>> var mat = mc.transform.matrix;
>> mat.a = -1;
>> mc.transform.matrix = mat;
>>
>> Would any of you give me some clue on how this could be done?
>>
>> Thanks,
>> Christophe
>>
>> ---------------------------------------------------------
>> Christophe NEY - Advanced IT Expertise and Consulting
>> email: christophe.ney <at> batisseurs.com
>> skype: cney-mac
>> bio: http://christophe.batisseurs.com/en
>> -------------------------------------------------------
>>
>
>
>
--
-------------------------------------------------------
Christophe NEY - Advanced IT Expertise and Consulting
email: christophe.ney <at> batisseurs.com
tel: +33 8 70 35 85 53
mobile: +33 6 61 48 85 53
skype: cney-mac
bio: http://christophe.batisseurs.com/en
-------------------------------------------------------
More information about the Laszlo-dev
mailing list