Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
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?
 
Posts: 13 | Registered: July 17, 2005Reply With QuoteEdit or Delete MessageReport This Post
EnIgMaTiCScOrPioN
Member
Picture of e_phoenix13
Posted Hide Post
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
 
Posts: 557 | Location: India | Registered: February 12, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
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?
 
Posts: 13 | Registered: July 17, 2005Reply With QuoteEdit or Delete MessageReport This Post
EnIgMaTiCScOrPioN
Member
Picture of e_phoenix13
Posted Hide Post
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
 
Posts: 557 | Location: India | Registered: February 12, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
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).
 
Posts: 13 | Registered: July 17, 2005Reply With QuoteEdit or Delete MessageReport This Post
EnIgMaTiCScOrPioN
Member
Picture of e_phoenix13
Posted Hide Post
Hi Bud !!

Send me your files if possible and I will try fixing them.

anu_mmx@hotmail.com


Cheers,

Anup
 
Posts: 557 | Location: India | Registered: February 12, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Anup,

Done, the e-mail should be in your e-mail account any minute now.
 
Posts: 13 | Registered: July 17, 2005Reply With QuoteEdit or Delete MessageReport This Post
EnIgMaTiCScOrPioN
Member
Picture of e_phoenix13
Posted Hide Post
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
 
Posts: 557 | Location: India | Registered: February 12, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Anup,

Danke! That teaches me a lesson not to trust auto generated codes Big Grin
 
Posts: 13 | Registered: July 17, 2005Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community