Viewpoint Forums
Viewpoint Forums
Viewpoint ZoomView & Flash Authoring
Flash interactivity in SWFView|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Member |
Is it possible to add interactivity in my SWFView with or without the current VETScript?
For example, if I have a map in .swf format with several hotspots, can I have rollover-able hotspots and clickable hotspots? |
||
|
|
EnIgMaTiCScOrPioN Member |
Hi !!
Yes you can have the Flash buttons active in VET. You need to make an interactor as follows: <MTSTimeElem Type="SWFView" Name="hotspot_loader" PostAnimator="1" On="0" Path="swf/hotspot.swf" Loop="0" /> <MTSInteractor Name="flashUI_int" IgnoreHandled="1" IgnoreError="1" NeverHandle="1"> <MTSHandle Event="MouseMove" Action="hotspot_loader"/> <MTSHandle Event="MouseLeftClick" Action="hotspot_loader"/> </MTSInteractor> Here, the "hotspot_loader" is the loader for the flash movie. The interactor helps detecting the flash rollovers and clicks. Hope this helps. Cheers, Anup |
|||
|
|
Member |
Anup,
Yes, it helps a lot, thanks! I have another question though, in my scene, I am using the standard zoomview navigation script. Is it possible to block this script from running if the user clicks on the flash button? i.e. stop the scene from zooming in when the cursor is on top of a flash button? |
|||
|
|
EnIgMaTiCScOrPioN Member |
Hi !!
In the Flash UI, on the button RollOver, post a message to VET which will make the zoomview interactors inactive and on RollOut, post a message to VET which will make the zoomview interactors active again. So when you click, the zoomview interactors are already inactive. Hope this helps. Cheers, Anup |
|||
|
|
Member |
Anup,
To be honest, I'm having trouble using the new viewpoint "extern" feature, it never seemed to work, whatever I did. I manage to pull it off using fscommand("PostMessage"), but when the interactor was de-activated, the whole navigation interactor, including the one that is feeding events to the flash view, died and stopped responding. In effect the flash button never received any rollOut mouse event, and could not re-activate the interactor (a bit of a conondrum here). |
|||
|
|
EnIgMaTiCScOrPioN Member |
Hi Bud !!
Send me your files if possible and I will try fixing them. anu_mmx@hotmail.com Cheers, Anup |
|||
|
|
Member |
Anup,
Done, the e-mail should be in your e-mail account any minute now. |
|||
|
|
EnIgMaTiCScOrPioN Member |
Hi !!
Saw the files. Change the zoomview interactor name to some other name. The present name MTSCameraNavi is a VET Tag in itself. Works fine if you rename it to something like zoom_int. This solves your problem. Also if you want to use the extern command, you have to keep the scene version as 330. Read the 330 release notes and you will know how to go about the Extern command. Hope this helps. Cheers, Anup |
|||
|
|
Member |
Anup,
Danke! That teaches me a lesson not to trust auto generated codes |
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|
Viewpoint Forums
Viewpoint Forums
Viewpoint ZoomView & Flash Authoring
Flash interactivity in SWFView
