Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  Other Viewpoint Software    Flash buttons/rollover experience

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Junior Member
Posted
Hello,

I have an observation and fix to the problem of buttons not appearing when a scene is published.

When I was adding buttons with the Enliven 2d button tool I found that it worked fine with bitmaps but flash buttons would go missing when finally published to html. This occurred first with the flash checkbox example in the cellphone tutorial and again in a scene I am working on. However, when I just added a flash element to the 2d layer it worked fine. What I eventually noticed was that even though Enliven was exporting the actual flash file into the scene assets, it was for some reason leaving out the time elements which call the swf files to be loaded into the scene and applied to the proper texture.

Following is a sample of the code which needs to be added to the mtx file for each button:

<!-- Button up state -->
<MTSTimeElem Name="YourButton" Type="SWFView" Path="YourButton1.swf" >
<Target Name="MTSTexture.YourTexture_0" />
</MTSTimeElem>
<!-- Button over state -->
<MTSTimeElem Name="YourButtonover" Type="SWFView" Path="YourButton2.swf" >
<Target Name="MTSTexture.YourTexture_1" />
</MTSTimeElem>
<!-- Button down state -->
<MTSTimeElem Name="YourButtondown" Type="SWFView" Path="YourButton3.swf" >
<Target Name="MTSTexture.YourTexture_2" />
</MTSTimeElem>


in that case where you get the target from the LayerData field IE
LayerData Texture="MTSTexture.YourTexture_0"

I hope this helps if someone else experiences the same problem,

Cheers,

Jamie
 
Posts: 4 | Registered: April 19, 2005Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  Other Viewpoint Software    Flash buttons/rollover experience