A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: How would I alter this script to work in flash?

  1. #1
    Junior Member
    Join Date
    May 2001
    Location
    Kansas
    Posts
    17

    How would I alter this script to work in flash?

    I want to Flash execute a javascript link that plays a slide show from a link.

    The current link that works is the same as this only my specific thumbnail image. I would like to replace the image w/ either text or image symbol so what would the action script be to converte from this javascript link:

    <img src="thumbnail_gr.jpg" onClick="javascript:showLightBox()" title="Click to see the demo" style="cursor: pointer;">

    So far I haven't gotten it right on my own trials.

    Thank you so much, Cyn

  2. #2
    flash grasshopper
    Join Date
    Feb 2005
    Posts
    156
    I'm having difficulty trying to work out exactly what it is you are trying to do, but I would think it's going to be something along the lines of this (in AS 2.0):
    PHP Code:
    my_btn.onRelease = function ()
    {
        
    getURL("javascript:showLightBox()""_self"); 
    }; 
    Hope this helps.

  3. #3
    Junior Member
    Join Date
    May 2001
    Location
    Kansas
    Posts
    17
    You can see a temporary fix here http://*******.com/2cof7rb until I find a solution. You have to click on the image above the Flash content. I inherited this site, and the client knows the downside of a total flash site and will change when able..the fact she promotes locally, not as big of an issue of not showing up on the SE's.

    I'll give it a try, thanks, Cyn

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center