Viewpoint Forums
Viewpoint Forums
Viewpoint ZoomView & Flash Authoring
Text dynamic change in to Flash animation on ZoomView photography|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Member |
The answer is "yes"
HTML:
// pass a string into your custom property
function setText(myString)
{
vmp.SetProperty ('myString', 'Data', myString, 'mts_str');
vmp.PostEvent ('setText', 0);
}XML: <!-- define the property --> <MTSProperty Name="myString" Data="temp text" Type="mts_str"/> <!-- pass the string to a flash variable --> <MTSAction Name="setFlashText"> <MTSSetProperty Target="myFlash.SWF._root.myDynamicTextField" Value="MTSScene.myString"/> </MTSAction> <!-- event which calls your action --> <MTSInteractor Name="getMessage"> <MTSHandle Event="setText" Action="setFlashText"/> </MTSInteractor> ...where "myDynamicTextField" is the var label of your dynamic text field in your embeded Flash movie, and "myFlash" is the name of the MTSTimeElem that loads your embeded Flash movie. HTH, let me know if you need further assistance, regards, Daimen |
|||
|
| <warren>
|
tank you duncan
and sorry for my bad english ( in italy we d'not know well English but we know very well soccer (sig!!!. warren |
||
|
|
Member |
oops, it seems MTSProperty doesn't work as expected in the current player release... that'll teach me to test my suggestions before I post them
HTML:
function setText(myString)
{
vmp.SetProperty('myInteractor', 'stat', myString, 'mts_str');
vmp.PostEvent('setText', 0);
}
XML: <!-- pass the string to a flash variable --> <MTSAction Name="setFlashText"> <MTSSetProperty Target="myFlash.SWF._root.myDynamicTextField" Value="val"/> </MTSAction> <!-- interactor which holds the string and event which calls your action --> <MTSInteractor Name="myInteractor" StartState="dummy"> <MTSHandle Event="setText" Action="setFlashText" val="myInteractor.stat"/> </MTSInteractor> This message has been edited. Last edited by: duncan, |
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|
Viewpoint Forums
Viewpoint Forums
Viewpoint ZoomView & Flash Authoring
Text dynamic change in to Flash animation on ZoomView photography
