Hi All, I tried doing this
$(document).ready(function(){ $('#link_menu1').bind('click', function () { $('#mainTable').hide(); }); }); But it's not working. I think Flash is still taking away the click event. Can you please help me figure out how can I detect the click in flash and then have it call the jQuery function to hide the element? I am using sIFR'd links, so somewhere in the created Flash movie I think I have to detect a click and then call the javascript function, but I have no idea how to actually do it. Please help. -Roman On Oct 14, 2:06 pm, Pyrolupus <[EMAIL PROTECTED]> wrote: > I originally thought that it was justFlashand JavaScript > interaction, in which case you'd use the > getUrl('javascript:yourfunc()') ActionScript statement, but it sounds > more like you just want your previously working links to continue > working the way you remember them. > > I skimmed the sIFR docs and found the following: > > http://wiki.novemberborn.net/sifr/FAQ#replacing-links > > That *might* answer your question, but without a code example of what > you're trying to accomplish, I can't be sure. If you are simply > trying to use a link to get your show/hide behavior, then the link > above still helps you: essentially, you just want to wrap the sIFRed > text/element that you want to use for show/hide functionality and then > use that instead: > > <span id="showHideThing1"><a class="sifrMe">Ugly Text to be > Prettified</a></span> > > (script area) > sIFR.replace(sifrMe, blah, blah) //I don't use sIFR, correct as > necessary > > $('#showHideThing1').bind('click', function () { > myShowHideFunc(this); > > }); > > So, you replace the "siferMe" item and bind your click event to > showHideThing1. > > Pyro > > On Oct 14, 11:55 am, pixelwizzard <[EMAIL PROTECTED]> wrote: > > > > > Hi Guys, > > > Did you figure this out? > > > I have a problem with links that were converted using sIFR and then I need > > to use them to do a show/hide usingjQueryand it looks likeFlashis > > stealing my click event, so the click event never gets called byjquery. > > > Is there any way to getFlashto trigger the event for a specific link? > > > Thanks, > > -Roman > > > njsuperfreak wrote: > > > > Sweet! Good Find Brett, and thanks Sam! I think I am definitely going > > > to experiment with this. looks interesting... > > > > On Oct 4, 8:19 pm, Brett <[EMAIL PROTECTED]> wrote: > > >> Interesting, I googled up and found an example of > > >> this:http://www.quirksmode.org/js/flash_call.html > > > >> NotjQueryas such in the demo, but any function you write can refer > > >> tojQuery. > > > >> On Oct 5, 8:10 am, "Sam Sherlock" <[EMAIL PROTECTED]> wrote: > > > >> > yourflashwould need to be wmode=transparent > > > >> > and you'd need to call a javascript function from withinflashthat in > > >> turn > > >> > calls the grey box function > > > >> > sincejqueryapplies the onclick event to all anchors with a class of > > >> > greybox you'll need simluar code inside you function that you call from > > >> >flash. > > > >> > getURL('javascript:callGreyboxFromFlash()'); > > > >> > - S > > > >> > On 04/10/2007, njsuperfreak <[EMAIL PROTECTED]> wrote: > > > >> > > CanFlashcommunicate withjQuery? I would like to useflashto > > >> > > interact withjQuerylike opening up a dialogbox using the greybox.js > > >> > > plugin. How would I go about doing that any ideas? > > > >> > > The code is activated by the class="greybox" > > > -- > > View this message in > > context:http://www.nabble.com/Flash-and-jQuery-tf4569724s27240.html#a13159151 > > Sent from thejQueryGeneral Discussion mailing list archive at Nabble.com.- > > Hide quoted text - > > - Show quoted text -