The issue seems to be the availability of your logger when the callback
function is run.

1) Move all the swfobject and function blocks up into the <head> so that the
code can execute on domready rather than after the page starts to render
(otherwise none of your code will run until the browser gets to the bottom
of the page)

2) comment out the get debugger line for the callback:
//if ($('#jQueryLogger').get(0).debug)

3) alert appears as it should


Aran



On Mon, Nov 29, 2010 at 3:40 AM, Thomas Pujolle <[email protected]>wrote:

> Ok, something new again.
>
> The main idea is still to use some functions on the flash right after
> the integration, so without waiting for any click, nothing more but
> wait for a loadEvent, or someting like this.
>
> The onLoadEvent works only with firefox, which allow me to use my
> public functions on the flash BUT, it doesn't work in IE, or Safari,
> or Chrome ...
>
>
> Has anyone an idea about that ? It's tricky, need a javascript
> master :D
>
> On Nov 28, 4:32 pm, Thomas Pujolle <[email protected]> wrote:
> > Ok there is something new.
> > If I had an alert before trying to call this function, it works ...
> > An alert with bullshits in.
> >
> > Did someone ever get this weird stuff ?
> >
> > On Nov 28, 1:52 pm, Thomas Pujolle <[email protected]> wrote:
> >
> > > What steps will reproduce the problem?
> > > 1. Create the simplest swfObject template
> > > 2. Add a callback function on the swfobject.embedSWF function
> > > 3. Try to use a flash function in the embeded flash using jQuery
> >
> > > What is the expected output? What do you see instead?
> > > I get an error, the function I want to call doesn't exist.
> >
> > > What version of the product are you using? On what operating system?
> > > 2.2, mac osx, same issue on windows XP.
> >
> > > Please provide any additional information below.
> > > The function I want to call is available on click after a while. I
> > > just cannot get my function right after the integration. It means the
> > > code is right, just a sync issue I think !
> >
> > > Any idea ?
> >
> > > Test it here :http://www.thomaspujolle.com/extint/jQueryLogger.html
>
> --
> You received this message because you are subscribed to the Google Groups
> "SWFObject" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<swfobject%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/swfobject?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"SWFObject" 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/swfobject?hl=en.

Reply via email to