RSS Forums RSS
Please support our ColdFusion advertiser: Programming Forums
Views: 6996 | Replies: 6
Reply
Join Date: Jul 2005
Posts: 69
Reputation: bkendall is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
bkendall's Avatar
bkendall bkendall is offline Offline
Junior Poster in Training

loading a swf file using a variable

  #1  
Feb 28th, 2006
I have a website that I am using includes on to make life easier. One issue that has come up is that I am also using a flash header on the top of each page. I would like to put the object and embed tags inside my posthead file with a variable name instead of the movie file name and then set the variable on each page.


This seems like it should be simple but I have been unable to get it to work or find information. Any ideas?

Thanks!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2006
Posts: 27
Reputation: anuradhu is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 1
anuradhu anuradhu is offline Offline
Light Poster

Re: loading a swf file using a variable

  #2  
Apr 18th, 2006
could u explain ur problem in detail?
Reply With Quote  
Join Date: Jul 2005
Posts: 69
Reputation: bkendall is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
bkendall's Avatar
bkendall bkendall is offline Offline
Junior Poster in Training

Re: loading a swf file using a variable

  #3  
Apr 18th, 2006
I actually worked around the issue by using a css layer over the top of the flash movie and making that a cf variable instead. Basically what I wanted to do was call a flash movie using a variable name for example instead of:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="32" height="32" title="test">
	<param name="movie" value="/test.fla" />
	<param name="quality" value="high" />
	<embed src="/test.fla" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="32" height="32"></embed>
</object>

I wanted to use #movieName# instead of test.fla.
Reply With Quote  
Join Date: Apr 2006
Posts: 27
Reputation: anuradhu is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 1
anuradhu anuradhu is offline Offline
Light Poster

Re: loading a swf file using a variable

  #4  
Apr 18th, 2006
have you found the solution?
Reply With Quote  
Join Date: Jul 2005
Posts: 69
Reputation: bkendall is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
bkendall's Avatar
bkendall bkendall is offline Offline
Junior Poster in Training

Re: loading a swf file using a variable

  #5  
Apr 18th, 2006
Yes, I used the attributes tag inside my CustomTags/PostHead: #Attributes.SwfPath# then on the page I called:

<cfmodule template="Test/Test.cfm" PageTitle="Title Here" SwfPath="images/test.swf" />

For now this works really well, ultimatly it would be nice to go back and use one swf and then pass the elements into it rather than a seperate swf for each header.
Reply With Quote  
Join Date: Apr 2006
Posts: 27
Reputation: anuradhu is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 1
anuradhu anuradhu is offline Offline
Light Poster

Re: loading a swf file using a variable

  #6  
Apr 19th, 2006
oh...dats great!!
Reply With Quote  
Join Date: Jun 2006
Posts: 1
Reputation: anardodesign is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
anardodesign anardodesign is offline Offline
Newbie Poster

Help Re: loading a swf file using a variable

  #7  
Jun 16th, 2006
Originally Posted by bkendall
I actually worked around the issue by using a css layer over the top of the flash movie and making that a cf variable instead. Basically what I wanted to do was call a flash movie using a variable name for example instead of:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="32" height="32" title="test">
    <param name="movie" value="/test.fla" />
    <param name="quality" value="high" />
    <embed src="/test.fla" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="32" height="32"></embed>
</object>

I wanted to use #movieName# instead of test.fla.

I am trying to load a swf using CSS, do you know hoe to do so?
I mean can you use a DIV tag, and from the CSS put it's properties to have a background image, and also a flash file?

this is how I would write it

html sample
<div id="menu"></div>

CSS sample
#menu {
backgound-ulr: {what ever.swf);
load: swf;
}

However that those not work.

I need some help I am trying to learne CSS.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:05 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC