On Jun 9, 2007, at 11:00 AM, Walter Lee Davis wrote:

>
>
> On Jun 9, 2007, at 10:22 AM, Walter Lee Davis wrote:
>
>>
>> I am using the Stop() method on a QuickTime movie as a part of a
>> Lightbox-esque player window. This is all hand-rolled, I am trying to
>> figure this out as a learning exercise as well as to get it to work.
>> [snip]
>
>> Firebug reports that Stop is not a function. I can imagine why it
>> doesn't think so, because we are inside an anonymous function
>> already, and the QuickTime stuff was never declared. So how do I get
>> this to work in this context, with a movie object that does not exist
>> at the time that the function is declared?
>>
>
> Now this is very weird -- I just quit and restarted Firefox, and it
> works without complaint -- the first time. If you open the player layer
> again and try to click "close", then it gives the error.
>
>
Talking to myself here. I figured it out. I needed to define my closer 
variable/function first, before defining the click handler.

Walter


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to