Welcome Guest, Not a member yet? Register   Sign In
In desparate need of help with embedding Flash
#1

[eluser]charlie spider[/eluser]
Can't seem to get a Flash movie to embed in my current project.

It works fine in my root directory but as soon as i move it into the project folder it won't work.
This is using code generated by SWFObject v2.0 (http://www.swffix.org/swfobject/generator/)

Code:
<?=$style;?>


swfobject.registerObject("flashmap", "9.0.0", "expressInstall.swf");

</head>
<body>
<div id="wrapper" class="save">
&lt;?=$menu;?&gt;
<div id="home_shadow_left"></div>
<h3 class="save_ppp_header">Pacific Peoples' Partnership</h3>
<div id="flashcontent">
&lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="930" height="425" id="flashmap" align="middle"&gt;
    <param name="movie" value="&lt;?=base_url();?&gt;flash/map.swf" />
    <param name="play" value="true" />
    <param name="loop" value="true" />
    <param name="menu" value="true" />
    <param name="quality" value="high" />
    <param name="scale" value="showall" />
    <param name="wmode" value="window" />
    <param name="bgcolor" value="#fff" />
    <param name="devicefont" value="false" />
    <param name="allowfullscreen" value="false" />
    <param name="allowscriptaccess" value="sameDomain" />
    &lt;!--[if !IE]>--&gt;
    &lt;object type="application/x-shockwave-flash" data="&lt;?=base_url();?&gt;flash/map.swf" width="930" height="425" align="middle"&gt;
        <param name="play" value="true" />
        <param name="loop" value="true" />
        <param name="menu" value="true" />
        <param name="quality" value="high" />
        <param name="scale" value="showall" />
        <param name="wmode" value="window" />
        <param name="bgcolor" value="#fff" />
        <param name="devicefont" value="false" />
        <param name="allowfullscreen" value="false" />
        <param name="allowscriptaccess" value="sameDomain" />
    &lt;!--<![endif]--&gt;
        <a href="http://www.adobe.com/go/getflashplayer">
            <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
        </a>
    &lt;!--[if !IE]>--&gt;
    &lt;/object&gt;
    &lt;!--<![endif]--&gt;
&lt;/object&gt;
</div>
<div id="save_content">&lt;?=$textblock_1;?&gt;</div>


i've tried moving the map.swf into the main folder (ie: not in the flash folder) and other locations, but it still does not work.

Any and all help will be greatly, greatly appreciated (especially by my wife who is worried because i started the day with a full head of hair but now have very little left to pull out)

Thank you all

Brent Christensen
http://www.pyfo.ca
#2

[eluser]nirbhab[/eluser]
Code:
data="&lt;?=base_url();?&gt;flash/map.swf"

When you are moving your project from:
1. http://domain.com
to
2. http://domain.com/projects

You should also check for base-url too....
Please check config.php file for that.
#3

[eluser]charlie spider[/eluser]
Usually i use site_url() but i guess i tried it here out of desparation and just hadn't changed it back, but thanks for reminding me about that, will change it now, even though i still don't have this thing working:\
#4

[eluser]nirbhab[/eluser]
See the resources like CSS, Images , Flash file, what resources that doesn't need index.php of CI,
Needs a base_url(), to be added to the url, as CI works with Absolute addressing not relative addressing, by default.

So, base_url should be fixed first, when changing the domain of the applications.
#5

[eluser]charlie spider[/eluser]
thanks for the comments nirbhab.

base_url is not my problem here.

i've tried this without base_url or site_url,
i've tried this with absolute urls,
i've tried this with the .swf in the main project folder
i've tried this with the .swf in a /flash/ folder i created
i even got desperate and tried the .swf in the views folder
i've tried a bunch of other things i can't even remember right now.

i need help from someone who has gotten flash (CS3) to work in a project recently

nothing i do here seems to work

thank you for any help
#6

[eluser]Clooner[/eluser]
[quote author="charlie spider" date="1206387203"]thanks for the comments nirbhab.

base_url is not my problem here.

i've tried this without base_url or site_url,
i've tried this with absolute urls,
i've tried this with the .swf in the main project folder
i've tried this with the .swf in a /flash/ folder i created
i even got desperate and tried the .swf in the views folder
i've tried a bunch of other things i can't even remember right now.

i need help from someone who has gotten flash (CS3) to work in a project recently

nothing i do here seems to work

thank you for any help[/quote]

But it works without a CI project? Because I think this has nothing to do with CI. What is the (html) result page?
#7

[eluser]charlie spider[/eluser]
i have tried two different methods for embedding flash.

one uses AC_RunActiveContent.js
the other method uses SWFObject.js

i have multiple project folders within the root of my localhost server (XAMPP)
kinda like this:

htdocs
-bakery
-blissmania
-medallion
-ppp
-pyfo

The folders 'bakery' and 'ppp' have CodeIgniter installed in them, the others do not. (I know this is not the most efficient method of having multiple CI installations running on a server but this makes things easier when uploading finished projects to a clients' server.)

If i run a flash embedded page using either of the two methods mentioned above, from any of the non-CI folders, things work great. The flash works.

If i take that same page and place it within the 'ppp' project's view folder, (obviously a CI project) and call that page from a controller, the flash doesn't work, regardless of where i place the .swf file or how i reference the .swf file.

What's interesting is that when you look at the page in the browser, you can right-click on the big blank rectangle where the flash movie is supposed to be, that little right-click context menu appears and has the "About Adobe Flash 9.0" link in it. So the flash is ALMOST there, but it's not.

As stated in the heading of this thread, i am in desperate need of help with this. If anybody has any experience embedding flash into a codeigniter project i would greatly greatly appreciate hearing how you did it.

Where did you place your .swf ?
What embedding method did you use?
How did you reference your .swf?
Do you have an example that i could look at?

If someone can help me solve this problem i will permanently add a comment to the bottom of my forum signature where i will praise your obvious brilliance for all the CI community to see.

Thanks
#8

[eluser]charlie spider[/eluser]
I still haven't solved this problem and am still in DESPERATE NEED OF HELP !!!


PLEASE PLEASE PLEASE
(down on knees with hands clenched and cheesy violin music playing in the background)

Can someone who has successfully embedded Flash into CI please help me ???
#9

[eluser]dark_lord[/eluser]
http://ellislab.com/forums/viewthread/45742/

I think you might want to try this thread dude... I have used it in embedding Flash. :-). Just be Patient in Studying it.

And you might want to you use relative path.
Code:
../flash/filename.swf
#10

[eluser]spmckee[/eluser]
Charlie, did you ever find the solution? I have tried the exact same things you did with no luck. ARG!




Theme © iAndrew 2016 - Forum software by © MyBB