Check out
http://extjs.com/forum/showthread.php?t=23983highlight=swfobject+flash
http://extjs.com/forum/showthread.php?t=23983highlight=swfobject+flash
Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
Co-Author of Learning Ext JS
http://www.packtpub.com/learning-ext-js/book
_
http://blog.cutterscrossing.com
On 7/9/2009 9:21 PM, Abinidi Web Services wrote:
I am trying to use the swfobject.js from google in a page that is loading a
flash swf file that is nested inside of a Cflayout/cflayoutarea. The page is
the source for the cflayoutarea.
When I try to include the code to load the swfobject.js file in the page that
is nested:
script type=text/javascript src=swfobject/swfobject.js/script
It throws an error.
If I try to include it in the parent page that has the cflayout code on it,
no error, but the swf file doesnt load.
If I just make a test page not nested in the cflayout, it works fine.
I am also doing:cfajaximport tags=cfwindow,cfform,cftooltip,cfdiv on
the cflayout main page so it can load stuff for the nested source pages. This
is what it is having a conflict with.
Basically I have:
page1.cfm
cflayout type=tab name=user_upload_layout tabposition=top
cflayoutarea name=tab1 title=Image Uploads
source=page2.cfm?upld_folder=#upld_folder#
selected=#isDefined('url.tab1')#
/cflayoutarea
cflayoutarea name=tab2 title=Upload via Zip file
source=page3.cfm?zip_folder=#zip_folder# selected=#isDefined('url.tab2')#
/cflayoutarea
/cflayout
and on the page2.cfm I have:
script type=text/javascript
var params = {
BGColor: ##FF
};
var attributes = {
id: FlashFilesUpload,
name: FlashFilesUpload
};
var flashvars = {
uploadUrl : upload_image.cfm,
customPostFields : foldername;#url.upld_folder#,
backgroundColor : ##FF
};
swfobject.embedSWF(uploader.swf, Upload_holder, 450, 350,
9.0.0, expressInstall.swf, flashvars, params, attributes);
/script
I need it to be able to call this function:
swfobject.embedSWF but I cant get the js to load properly
Does anyone know of a workaround to get this to work? Does CF8 have anything
built in that will do the same as swfobject and not conflict? Maybe im doing
it wrong?
The main reason I'm doing this is the swf isn't working right if I use the
EMBED method of loading flash swf in firefox but it is working fine on the
test page if I use the swfobject. And its a 3rd party app with zero help.
Thanks.
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324426
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4