Both static and dynamic publishing methods have a callback function as their
last parameter:
e.g.
swfobject.embedSWF(swfUrlStr, replaceElemIdStr, widthStr, heightStr,
swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj, callbackFn)
Where callbackFn is a JavaScript function that has an event object as a
parameter:
function callbackFn(e) { ... }
Properties of this event object are:
success, Boolean to indicate whether the embedding of a SWF was success or
not
id, String indicating the ID used in swfobject.registerObject
ref, HTML object element reference (returns undefined when success=false)
Example here:
http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/test_dynamic2.html
You *should *be able to use this function to check whether the swf was every
written to the page. If not, then you can run some extra logic. I saw
should, as there may be some circumstances where SWFObejct will not be able
to determine that some other exteranl process has blocked the display of the
flash file.
Regards,
Aran
On Thu, Oct 15, 2009 at 10:17 PM, Sam Sherlock <[email protected]>wrote:
> I searched for +swfobject +"alt content" +firewall
> but ee has a section devoted to 'software firewalls' and so the results are
> not what your looking for. Also I guess from the lack of other suggestions
> that there is very little you can do other than I suggested previously
>
> - S
>
>
>
> 2009/10/15 KenMcD <[email protected]>
>
>
>>
>> What search phrase did you search to find the page?
>> I would like to see the answer.
>> Thanks.
>>
>> On Oct 13, 4:46 pm, Sam Sherlock <[email protected]> wrote:
>> > seems that I missed that the expert exchange results were showing
>> because ee
>> > has section software firewalls
>> > I was tired or I would have noticed that
>> >
>> > - S
>> >
>> > 2009/10/13 KenMcD <[email protected]>
>> >
>> >
>> >
>> > > Usually you can see the Experts Exchange answer at the very bottom of
>> > > the page you find via Google.
>> > > I could not find the page you mention in Google.
>> > > Could you please post a link?
>> > > Thanks.
>> >
>> > > On Oct 12, 8:47 am, Sam Sherlock <[email protected]> wrote:
>> > > > Hi Ric,
>> >
>> > > > Aran, Getify or Jim et al may have a better solution or something
>> else
>> > > may
>> > > > want to expand (or indeed correct me) upon this but here is what I
>> would
>> > > do
>> >
>> > > > Use dynamic embed as Aran describes below[1] - add a control to the
>> page
>> > > > that informs the user to click here to view page without using the
>> flash
>> > > > plugin (I hope you get my drift with my poor wording); you could
>> make a
>> > > call
>> > > > from within flash (ex interface) to hide this element
>> >
>> > > > [1]
>> > >http://groups.google.com/group/swfobject/browse_thread/thread/3acb39e.
>> ..
>> >
>> > > > I notice that Experts Exchange has a similar question posted (but
>> since
>> > > you
>> > > > have to pay to see that I can say no more than its index by google)
>> >
>> > > > hth- S
>> >
>> > > > 2009/10/12 [email protected] <[email protected]>
>> >
>> > > > > Hello,
>> >
>> > > > > I've used SWFObject on many sites but sometimes have problems with
>> > > > > Firewalls. Many offices block Flash content with their Firewall,
>> > > > > however the Flash plugin is installed on peoples machines. This
>> means
>> > > > > SWFObject detects the plugin and tries to show the Flash file
>> which is
>> > > > > never downloaded resulting in empty white boxes being displayed.
>> >
>> > > > > Does anyone know of any way to display alternative content when
>> the
>> > > > > Flash file is blocked? I already have alternative content in place
>> for
>> > > > > people without Flash installed so would like to show this.
>> >
>> > > > > Cheers
>> >
>> > > > > Ric
>>
>>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---