that looks fine to me for swfobject 1.x
1. is the swfobject.js file found ok by the page?
2. do you have so.write("CaptivateContent");?
3. you have <div id="CaptivateContent"></div> in the page? (the id here
matches the string used in the so.write part)
4. when you view the url of your swf do you see the file online?
5. what is the name of the file you upload? perhaps you need to make the
file .swf.ashx
this ashx thing is weird to me (perhaps someone with exp/knowledge of aspx
and this file handler doo-hicky will enlighten us both)
- S
On 12 April 2010 21:39, Eric Reagan <[email protected]> wrote:
> Sam,
> Thanks for the advice. I will try it out. Here is the errant line.
> Note: The swf file was made in Captivate so the files I am tweaking are are
> auto-generated by Captivate.
>
> var so = new SWFObject("http://www.mysite.com/files/flash.swf.ashx",
> "Captivate", "960", "751", "8", "#CCCCCC");
>
> Thank you,
>
>
> On Mon, Apr 12, 2010 at 3:23 PM, Sam Sherlock <[email protected]>wrote:
>
>> If the file can be accessed you can use SWFObject to display it (it
>> returns a swf file).
>>
>> can you provide a real link to this example
>>
>>
>> but if you look at this example using uploadify the flash file has a
>> suffix of .swf and its the serverside script that has .ashx suffix (this
>> suggests you might be accessing the flash file incorrectly) note I am not
>> suggesting that you try this code - its not swfoject : - just an example
>> that uses flash with ashx (also bear in mind that I don't first had have
>> much exp of asp and microsoft stuff - I might be wrong)
>> $('#fileUpload').uploadify({
>> 'uploader': '/_layouts/js/uploadify/uploadify.swf',
>> 'script': '/_layouts/other/Upload.ashx',
>> 'cancelImg': '/_layouts/js/uploadify/cancel.png',
>> 'auto': true,
>> 'onError': function(event, queueID, fileObj, errorObj) {
>> alert('error');
>> },
>> 'onComplete': function(event, queueID, fileObj, response, data) {
>> alert('complete');
>> }
>> });
>>
>> - S
>>
>>
>>
>> On 12 April 2010 17:18, Eric R <[email protected]> wrote:
>>
>>> Hello,
>>> I am trying to use the SWFObject (....) method and my system
>>> will automatically append an ashx. extension to the file. Further the
>>> system will not allow you to access the file unless you append the
>>> ashx extension. I have tried using SWFObject("http://www.mysite.com/
>>> files/flash.swf.ashx <http://www.mysite.com/files/flash.swf.ashx>", ...)
>>> and have it create the flash object?
>>>
>>> --
>>> 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]<swfobject%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/swfobject?hl=en.
>>
>
>
>
> --
> Eric Reagan
>
> --
> 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.