So, a few things:

1) Your swfobject.js include and embedSWF() code block should be in the
<head> of the document. The div you are writing to/replacing should be in
the <body> tag of the page.
2) You are attempting to pass in the variables flashvars, params, attributes
into the embedSWF() method, but you have not defined the variables or their
values
3) the #include expression.as error in Flash is nothing to do with SWFObject
- it means it cannot find the expression.as Actionscript file


I suggest you have a look at the SWFObject documentation and examples in a
static HTML file and then add the dynamic elements in the PHP file you
require after you have everything working in a static page (I don't see
where you are using any PHP code in relation to the swfobject part of your
page)


Aran 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Asimkh
Sent: Tuesday, 3 March 2009 8:21 PM
To: SWFObject
Subject: inserting flash object in php file


Hi,

Q. Help me to know why flash CS3 giving error? i check attach fla file
is using AS.1.0, player 6
Q. Check php code if its right.

Currently am using a template and trying to decode it and putting
flash animation on main page
my website i.e. http://www.asim.net.pk
am using Flash CS3 i.e. playing 9 and actionscript 3.0

I download the SWFObject 2 and test it in Flash CS 3.0, during test it
gives error syntax error
#include expression.as ?

after checking help, i want to this code in my php file to test swf
i.e.

--------------------------------------
<?php $var['rain'] = $GLOBALS; ?>
<!-- highlight | generated by RainTPL v 1.0 | www.RainTPL.com -->


<script type="text/javascript" src="http://www.asim.net.pk/templates/
moling/highlight/swfobject.js"></script>
<script type="text/javascript">
        //swfobject.registerObject("flashcontent_other", "9.0.0", "swf/
expressInstall.swf");
</script>
<center>
<div id="flashcontent">
</div>
<br/>
<div id="flashcontent_other1">
</div>
</center>
<script language="JavaScript" type="text/javascript">

        var playerVersion = swfobject.getFlashPlayerVersion(); // returns a
JavaScript object
        var output = "You have Flash player " + playerVersion.major + "." +
playerVersion.minor + "." + playerVersion.release + " installed";
        var pVersion = playerVersion.major + "." + playerVersion.minor + "."
+ playerVersion.release; //alert(output);
        
swfobject.embedSWF("http://www.asim.net.pk/templates/moling/highlight/
asimnet.swf", "flashcontent", "638", "200", "9.0",

"http://www.asim.net.pk/templates/moling/highlight/
expressInstall.swf", flashvars, params, attributes );

</script>

<!--/ highlight -->
----------------------------------------

Currently am using following code for playing flash, but it doesnt
detect flash player due to
which on some website not having latest flash player, will not run
flash animation.

Code i.e.

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=10,0,22,87" width="638" height="200">

<param name="Asim.Net.Pk" value="asimnet.swf">
<param name=quality value=high>

<embed src="templates/moling/highlight/asimnet.swf" quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi
?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="638" height="200">

</embed>
</object>

Thanks!

 

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3903 (20090303) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
 

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3903 (20090303) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 


--~--~---------~--~----~------------~-------~--~----~
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