[SWFObject] Making the whole Flash file a link

Duncan Reid duncan.reid at gmail.com
Sun Jul 30 21:05:48 PDT 2006


Hi Drew,

You could also create that button in the flash file as Aran suggested and
pass the url in via flashVars:

myFlashObject.addVariable("url", "http://yourlink.com");

then have your button do a getURL on the url var passed in.

just a thought...

Dunc

On 7/31/06, drew <drew.robinson at gmail.com> wrote:
>
> Thanks for the reply Aran. (And thanks Geoff for stemming the tide
> that my query unfortunately triggered ... :-)
>
> I would normally put the link in the Flash file, but the flash file in
> this case is from our marketing company, and I want to be able to set
> it to point to wherever I like just using a normal URL, rather than
> having to get them to alter the Flash file each time.
>
> I have tried wrapping the whole "flashcontent" div in an <a href=...>
> tag, but that didn't work, probably because it's illegal in HTML (I
> suspect)...
>
> Another div floating above the "flashcontent" div, with the link
> attached to that?? hmm, I'll try it.
>
> Drew
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20060731/245ec76d/attachment-0005.htm>


More information about the Swfobject mailing list