Your shopping cart is empty. Browse our Store

Magento

Open Source eCommerce Evolved

Magento Forum

   
Can I get some help with Flash integration? (please don’t hate me for using Flash; I’m just doing my job ;-)
 
JazzcatCB
Jr. Member
 
Total Posts:  24
Joined:  2008-02-06
 

I’m trying to integrate flash with my storefront. I have a template that looks like this:

faculty_flash.phtml

<div class="box">
    <
object width="191" height="320" data="http://magento/skin/frontend/default/test_theme/flash/faculty_sidebar.swf" type="application/x-shockwave-flash">
        <
param value="http://magento/skin/frontend/default/test_theme/flash/faculty_sidebar.swf" name="movie"/>
        <
param value="transparent" name="wmode"/>
    </
object>
</
div>

The absolute paths work, but I’m pretty sure I want to use relative paths. Does anyone know how I’d accomplish this in Magento? Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
chinesedream
Guru
 
Total Posts:  457
Joined:  2007-08-31
San Francisco, CA
 
JazzcatCB - 15 February 2008 06:31 PM


The absolute paths work, but I’m pretty sure I want to use relative paths. Does anyone know how I’d accomplish this in Magento? Thanks.

Something like this I think.

param value="{{skin url=’test_theme/flash/faculty_sidebar.swf’}}”

if it doesn’t work, try creating a flash folder in the ‘images’ folder then try this:
param value="{{skin url=’images/flash/faculty_sidebar.swf’}}”

 Signature 

I am orangutan Fatimah, I want to marry chimpanzee Tan ahming, so that when mankind extinct from his own doing, me and my cintaku Ahming will make a new race that respects all things on earth.

 
Magento Community Magento Community
Magento Community
Magento Community
 
JazzcatCB
Jr. Member
 
Total Posts:  24
Joined:  2008-02-06
 

Great. I’ll give it a shot. Thank you very much Chinesedream.

 
Magento Community Magento Community
Magento Community
Magento Community
 
JazzcatCB
Jr. Member
 
Total Posts:  24
Joined:  2008-02-06
 

Unfortunately, neither approach worked. Am I right in assuming that anything enclosed by {{}} gets replaced by a path string in the html? Because this didn’t happen. The html source contained the original {{}} directive. Apparently, my template file isn’t being parsed by Magento.

 
Magento Community Magento Community
Magento Community
Magento Community
 
chinesedream
Guru
 
Total Posts:  457
Joined:  2007-08-31
San Francisco, CA
 

Ah Sorry, I was working on a CMS static page last night and gave you the wrong one.LOL

Try this:

param value="<?=$this->getSkinUrl('test_theme/flash/faculty_sidebar.swf')?>"

Is your theme default? If not, I think you need to match with your custom theme, make sure that in the in the admin configuration, the ‘themes’ under the Design is called.

 Signature 

I am orangutan Fatimah, I want to marry chimpanzee Tan ahming, so that when mankind extinct from his own doing, me and my cintaku Ahming will make a new race that respects all things on earth.

 
Magento Community Magento Community
Magento Community
Magento Community
 
ohminu
Magento Team
 
Avatar
Total Posts:  170
Joined:  2007-08-07
Los Angeles
 

You don’t need to use your theme name ‘test_theme’ in the getSkinUrl - so you only need <?=$this->getSkinUrl('flash/faculty_sidebar.swf')?>

 
Magento Community Magento Community
Magento Community
Magento Community
 
JazzcatCB
Jr. Member
 
Total Posts:  24
Joined:  2008-02-06
 

Hey, that worked perfectly! Thanks chinesedream and ohminu. Is there documentation anywhere that lists what methods are available? How did you discover this method chinesedream?

 
Magento Community Magento Community
Magento Community
Magento Community
 
chinesedream
Guru
 
Total Posts:  457
Joined:  2007-08-31
San Francisco, CA
 
JazzcatCB - 18 February 2008 07:36 AM

How did you discover this method chinesedream?

There are a number of examples in the default phtml files that show the relative path for linking images , so I thought it must work for swf as they are basically the same principle smile

 Signature 

I am orangutan Fatimah, I want to marry chimpanzee Tan ahming, so that when mankind extinct from his own doing, me and my cintaku Ahming will make a new race that respects all things on earth.

 
Magento Community Magento Community
Magento Community
Magento Community
 
BlackDesk
Member
 
Avatar
Total Posts:  34
Joined:  2008-03-10
San Diego
 

Hey Friends -

I’m trying to add a Flash slideshow to my homepage cms, as such:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="485" height="300" id="slideshow" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="http://shopmedpro.com/store/ss/slideshow.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="http://shopmedpro.com/store/ss/slideshow.swf" quality="high" bgcolor="#ffffff" width="485" height="300" name="slideshow" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

All I get is a blank white area; What am i missing?

THANX!

 Signature 

_____________________________________________________________________

If we did all the things we are capable of doing, we would literally astonish ourselves.

Thomas Edison

 
Magento Community Magento Community
Magento Community
Magento Community
 
daFunk
Jr. Member
 
Total Posts:  6
Joined:  2008-04-08
 

Hi,

u need this smal part of JS also.
This is how it works if u put it into a static block.

'src''index.swf',

'movie''{{skin url=""}}/flash/home_page/index',

<script language="javascript">
    if (
AC_FL_RunContent == 0{
        alert(
"Diese Seite erfordert die Datei \"AC_RunActiveContent.js\".");
    
else {
        AC_FL_RunContent
(
            
'codebase''http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
            
'width''890',
            
'height''805',
            
'src''index.swf',
            
'quality''high',
            
'pluginspage''http://www.macromedia.com/go/getflashplayer',
            
'align''middle',
            
'play''true',
            
'loop''true',
            
'scale''showall',
            
'wmode''window',
            
'devicefont''false',
            
'id''index',
            
'bgcolor''#ffffff',
            
'name''index',
            
'menu''true',
            
'allowFullScreen''false',
            
'allowScriptAccess','sameDomain',
            
'movie''{{skin url=""}}/flash/home_page/index',
            
'salign'''
            
); //end AC code
    
}
</script>

<noscript>
    <
object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="890" height="805" id="index" align="middle">
    <
param name="allowScriptAccess" value="sameDomain" />
    <
param name="allowFullScreen" value="false" />
    <
param name="movie" value="{{skin url=""}}flash/home_page/index.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />    <embed src="{{skin url=""}}flash/home_page/index.swf" quality="high" bgcolor="#ffffff" width="890" height="805" name="index" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </
object>
</
noscript>

 
Magento Community Magento Community
Magento Community
Magento Community
 
BlackDesk
Member
 
Avatar
Total Posts:  34
Joined:  2008-03-10
San Diego
 

Thanks for the reply!

Ok, so are you saying put all of that code in the static block? If the absolute path to the swf is

http://shopmedpro.com/store/ss/slideshow.swf

where do I put that in your code?

And what is this in English:

alert(”Diese Seite erfordert die Datei \"AC_RunActiveContent.js\".");

THANK YOU so much for your generous help !

 Signature 

_____________________________________________________________________

If we did all the things we are capable of doing, we would literally astonish ourselves.

Thomas Edison

 
Magento Community Magento Community
Magento Community
Magento Community
 
BlackDesk
Member
 
Avatar
Total Posts:  34
Joined:  2008-03-10
San Diego
 

the bottom bit (between the object tags) did the trick - i didn’t even need the js!

thanks :o]

 Signature 

_____________________________________________________________________

If we did all the things we are capable of doing, we would literally astonish ourselves.

Thomas Edison

 
Magento Community Magento Community
Magento Community
Magento Community
 
norbolig
Sr. Member
 
Total Posts:  141
Joined:  2008-03-15
 

@BlackDesk: “Diese Seite erfordert die Datei” means: “this page need the Data” - i.e. indicating that “AC_RunActiveContent.js\"." is missing.

I vistited your web site - nice Flash already working!

I am also impressed by your Service Request Form, that includes both Text fields and boxes. Are the information forwarded to the Shop Owner per email, or does the input show up in the Admin Panel? Hmmmmm..., I wish I could manage to do that myself.  wink

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International) to request a call-back.
© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien    Privacy Policy|Terms of Service