[osflash] Mouse out of Stage solved?
Zippy Doo
zippy.doo23 at gmail.com
Thu Apr 26 06:53:01 EDT 2007
Sure, the js method is previously thought to be the only 100% certain way to
solve this issue.
However my gut feelings has always been the introducing JS, brings with it a
whole set of new problems - such as reliable js/as communication and
disabling j. But mainly its not a neat self contained solution. This is
especially an issue for a banner ad, as you may well have no option to
include JS.
However, this is why i found the example so intriguing, for your reference
once more,
http://www.lmyr.com/test/test.html
view source on it - and you can see its *just* an object tag.
On 4/26/07, András Csizmadia <andras at vpmedia.hu> wrote:
>
> maybe you can use html and js communication, i got this code working in
> some
> of the browsers, but there are issues of course :-/ maybe this code could
> be
> improved by browser detection.
>
> HTML:
> <DIV ID="flashcontent" onMouseOver="onInsideFlash()"
> onMouseOut="onOutsideFlash()">
> <a HREF="http://www.macromedia.com/go/getflash/">Please upgrade your
> Flash
> Player.</a>
> </DIV>
> <SCRIPT TYPE="text/javascript" SRC="js/swfobject_detect.js"></SCRIPT>
>
> JS:
> /* on out */
> function onOutsideFlash()
> {
> //alert("onOutsideFlash");
> if(flashMovie)
> {
>
> flashMovie.SetVariable("_level0.isOutsideFlash", "true");
> }
> }
> /* on over */
> function onInsideFlash()
> {
> //alert("onInsideFlash");
> if(flashMovie)
> {
> flashMovie.SetVariable("_level0.isOutsideFlash", "false");
> }
> }
>
> ----- Original Message -----
> From: <osflash-request at osflash.org>
> To: <osflash at osflash.org>
> Sent: Thursday, April 26, 2007 12:13 PM
> Subject: osflash Digest, Vol 24, Issue 40
>
>
> > Send osflash mailing list submissions to
> > osflash at osflash.org
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> > http://osflash.org/mailman/listinfo/osflash_osflash.org
> > or, via email, send a message with subject or body 'help' to
> > osflash-request at osflash.org
> >
> > You can reach the person managing the list at
> > osflash-owner at osflash.org
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of osflash digest..."
> >
> >
> > Today's Topics:
> >
> > 1. Re: Mouse out of Stage solved? (Rákos Attila)
> > 2. Re: Mouse out of Stage solved? (Stephen Ford)
> > 3. fyi : Adobe Open Sources Flex (Mike Chambers)
> > 4. Re: fyi : Adobe Open Sources Flex (Martin Wood-Mitrovski)
> > 5. Re: fyi : Adobe Open Sources Flex (Firdosh Tangri)
> > 6. Re: fyi : Adobe Open Sources Flex (Mark Winterhalder)
> > 7. Re: fyi : Adobe Open Sources Flex (Martin Heidegger)
> > 8. Re: Mouse out of Stage solved? (Zippy Doo)
> > 9. Re: Mouse out of Stage solved? (Ian Thomas)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Wed, 25 Apr 2007 22:02:16 +0200
> > From: Rákos Attila <tenegri at tengerstudio.com>
> > Subject: Re: [osflash] Mouse out of Stage solved?
> > To: Open Source Flash Mailing List <osflash at osflash.org>
> > Message-ID: <28511550.20070425220216 at tengerstudio.com>
> > Content-Type: text/plain; charset=ISO-8859-1
> >
> >
> > There is nothing special, a simple onRollOut/onRollOver with a button
> > covering the whole stage is always working. But this is slightly
> > off-topic I think.
> >
> > Attila
> >
> >
> >
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Thu, 26 Apr 2007 09:45:18 +1000
> > From: Stephen Ford <inboxsf at hotmail.com>
> > Subject: Re: [osflash] Mouse out of Stage solved?
> > To: <osflash at osflash.org>
> > Message-ID: <BAY126-W27E0AD30978183C96DB937A8490 at phx.gbl>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > Don't know. So how did they do it then?
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL:
> >
> http://osflash.org/pipermail/osflash_osflash.org/attachments/20070426/43cef6a0/attachment-0001.htm
> >
> > ------------------------------
> >
> > Message: 3
> > Date: Wed, 25 Apr 2007 22:06:41 -0700
> > From: Mike Chambers <mchamber at adobe.com>
> > Subject: [osflash] fyi : Adobe Open Sources Flex
> > To: osflash at osflash.org
> > Message-ID: <46303361.1040900 at adobe.com>
> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> >
> > Under MPL
> >
> > More info:
> >
> > Press Release
> >
> http://www.adobe.com/aboutadobe/pressroom/pressreleases/200704/042607Flex.html
> >
> > FAQ
> > http://labs.adobe.com/wiki/index.php/Flex_Open_Source_FAQ
> >
> > Discussion List
> > http://groups.google.com/group/flex-open-source/
> >
> > mike chambers
> >
> > mesh at adobe.com
> >
> >
> >
> > ------------------------------
> >
> > Message: 4
> > Date: Thu, 26 Apr 2007 07:22:19 +0200
> > From: Martin Wood-Mitrovski <flashdev at relivethefuture.com>
> > Subject: Re: [osflash] fyi : Adobe Open Sources Flex
> > To: Open Source Flash Mailing List <osflash at osflash.org>
> > Message-ID: <4630370B.7050905 at relivethefuture.com>
> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> >
> > wooo, the compilers are included.
> >
> > thats great news.
> >
> > Mike Chambers wrote:
> >> Under MPL
> >
> >
> >
> > ------------------------------
> >
> > Message: 5
> > Date: Thu, 26 Apr 2007 01:29:21 -0400
> > From: "Firdosh Tangri" <ftangri at gmail.com>
> > Subject: Re: [osflash] fyi : Adobe Open Sources Flex
> > To: "Open Source Flash Mailing List" <osflash at osflash.org>
> > Message-ID:
> > <a20e23b40704252229q713d939fw4462fdef31c607ce at mail.gmail.com>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > woww
> >
> > cheers
> > firdosh
> >
> > On 4/26/07, Martin Wood-Mitrovski <flashdev at relivethefuture.com> wrote:
> >>
> >> wooo, the compilers are included.
> >>
> >> thats great news.
> >>
> >> Mike Chambers wrote:
> >> > Under MPL
> >>
> >> _______________________________________________
> >> osflash mailing list
> >> osflash at osflash.org
> >> http://osflash.org/mailman/listinfo/osflash_osflash.org
> >>
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL:
> >
> http://osflash.org/pipermail/osflash_osflash.org/attachments/20070426/d21c8e0b/attachment-0001.htm
> >
> > ------------------------------
> >
> > Message: 6
> > Date: Thu, 26 Apr 2007 09:46:01 +0200
> > From: "Mark Winterhalder" <mark13 at gmail.com>
> > Subject: Re: [osflash] fyi : Adobe Open Sources Flex
> > To: "Open Source Flash Mailing List" <osflash at osflash.org>
> > Message-ID:
> > <388d2ce00704260046o25ad9514u2e28d7acc1dd27a7 at mail.gmail.com>
> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> >
> > Wow! That's great!
> >
> > Thanks! :)
> >
> > Mark
> >
> >
> >
> > ------------------------------
> >
> > Message: 7
> > Date: Thu, 26 Apr 2007 09:48:48 +0200
> > From: "Martin Heidegger" <mastakaneda at gmail.com>
> > Subject: Re: [osflash] fyi : Adobe Open Sources Flex
> > To: "Open Source Flash Mailing List" <osflash at osflash.org>
> > Message-ID:
> > <c7d074470704260048v27413804u8384b4dc21f92911 at mail.gmail.com>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > It took adobe quite a while to decide that. I think it was about the
> same
> > amount of time that people spent trying to understand ajax ...
> > To me, in my position as developer, this came about 2 years too late.
> >
> > Maybe this could be a reason for me to restart digging into the whole
> > flash
> > thingy...
> >
> > yours
> > Martin.
> >
> > On 4/26/07, Firdosh Tangri <ftangri at gmail.com> wrote:
> >>
> >> woww
> >>
> >> cheers
> >> firdosh
> >>
> >> On 4/26/07, Martin Wood-Mitrovski <flashdev at relivethefuture.com> wrote:
> >> >
> >> > wooo, the compilers are included.
> >> >
> >> > thats great news.
> >> >
> >> > Mike Chambers wrote:
> >> > > Under MPL
> >> >
> >> > _______________________________________________
> >> > osflash mailing list
> >> > osflash at osflash.org
> >> > http://osflash.org/mailman/listinfo/osflash_osflash.org
> >> >
> >>
> >>
> >> _______________________________________________
> >> osflash mailing list
> >> osflash at osflash.org
> >> http://osflash.org/mailman/listinfo/osflash_osflash.org
> >>
> >>
> >
> >
> > --
> > ICQ: 117662935
> > Skype: mastakaneda
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL:
> >
> http://osflash.org/pipermail/osflash_osflash.org/attachments/20070426/bad2622c/attachment-0001.htm
> >
> > ------------------------------
> >
> > Message: 8
> > Date: Thu, 26 Apr 2007 10:52:32 +0100
> > From: "Zippy Doo" <zippy.doo23 at gmail.com>
> > Subject: Re: [osflash] Mouse out of Stage solved?
> > To: "Open Source Flash Mailing List" <osflash at osflash.org>
> > Message-ID:
> > <fc4bc1320704260252x1d7af696od8827f37d0bc1efb at mail.gmail.com>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > OT?: Apologies if this *is* off topic, I thought an open solution to
> this
> > common problem would be useful. I dont think any exisits as yet, infact
> > the problem may of been given up on as unsolvable. Id hoped this
> example
> > may reignite inquiry?
> >
> > OnRollOut will not work - if you move the mouse too fast off the stage,
> > flash will not respond to the rollOut (as the mouse has moved move
> pixels
> > per tick than flash can check i guess). In this case the x,y position
> of
> > the mouse becomes 'stuck' somewhere on the flash movie. Its only in AS3
> > we
> > have the introduction of the new On Stage Leave event.
> >
> > However this solution and an invisible border - will capture +/- 95% of
> > mouse out cases. The example I posted, to the best of my knowledge
> seems
> > to
> > capture 100%.
> >
> >
> > On 4/25/07, R?kos Attila <tenegri at tengerstudio.com> wrote:
> >>
> >>
> >> There is nothing special, a simple onRollOut/onRollOver with a button
> >> covering the whole stage is always working. But this is slightly
> >> off-topic I think.
> >>
> >> Attila
> >>
> >>
> >> _______________________________________________
> >> osflash mailing list
> >> osflash at osflash.org
> >> http://osflash.org/mailman/listinfo/osflash_osflash.org
> >>
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL:
> >
> http://osflash.org/pipermail/osflash_osflash.org/attachments/20070426/c853b3d3/attachment-0001.htm
> >
> > ------------------------------
> >
> > Message: 9
> > Date: Thu, 26 Apr 2007 11:13:48 +0100
> > From: "Ian Thomas" <ian at eirias.net>
> > Subject: Re: [osflash] Mouse out of Stage solved?
> > To: "Open Source Flash Mailing List" <osflash at osflash.org>
> > Message-ID:
> > <5d9fae400704260313q73b97da9s2998f20cf6dbe2a7 at mail.gmail.com>
> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> >
> > That's very interesting - I've had exactly the same problems as you
> > and would like to see how it's done.
> >
> > And no, I don't consider it OT at all.
> >
> > Ian
> >
> > On 4/26/07, Zippy Doo <zippy.doo23 at gmail.com> wrote:
> >> OT?: Apologies if this *is* off topic, I thought an open solution to
> this
> >> common problem would be useful. I dont think any exisits as yet,
> infact
> >> the problem may of been given up on as unsolvable. Id hoped this
> example
> >> may reignite inquiry?
> >>
> >> OnRollOut will not work - if you move the mouse too fast off the stage,
> >> flash will not respond to the rollOut (as the mouse has moved move
> pixels
> >> per tick than flash can check i guess). In this case the x,y position
> of
> >> the mouse becomes 'stuck' somewhere on the flash movie. Its only in
> AS3
> >> we
> >> have the introduction of the new On Stage Leave event.
> >>
> >> However this solution and an invisible border - will capture +/- 95% of
> >> mouse out cases. The example I posted, to the best of my knowledge
> seems
> >> to
> >> capture 100%.
> >>
> >>
> >>
> >> On 4/25/07, R?kos Attila <tenegri at tengerstudio.com> wrote:
> >> >
> >> > There is nothing special, a simple onRollOut/onRollOver with a button
> >> > covering the whole stage is always working. But this is slightly
> >> > off-topic I think.
> >> >
> >> > Attila
> >> >
> >> >
> >> > _______________________________________________
> >> > osflash mailing list
> >> > osflash at osflash.org
> >> > http://osflash.org/mailman/listinfo/osflash_osflash.org
> >> >
> >>
> >>
> >> _______________________________________________
> >> osflash mailing list
> >> osflash at osflash.org
> >> http://osflash.org/mailman/listinfo/osflash_osflash.org
> >>
> >>
> >
> >
> >
> > ------------------------------
> >
> > _______________________________________________
> > osflash mailing list
> > osflash at osflash.org
> > http://osflash.org/mailman/listinfo/osflash_osflash.org
> >
> >
> > End of osflash Digest, Vol 24, Issue 40
> > ***************************************
> >
> >
> > --
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.463 / Virus Database: 269.6.1/776 - Release Date:
> 2007.04.25.
> > 12:19
> >
>
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20070426/5ce1b1e5/attachment-0001.htm
More information about the osflash
mailing list