943,810 Members | Top Members by Rank

Ad:
  • ColdFusion Discussion Thread
  • Unsolved
  • Views: 10274
  • ColdFusion RSS
Feb 28th, 2006
0

loading a swf file using a variable

Expand Post »
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!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
bkendall is offline Offline
69 posts
since Jul 2005
Apr 18th, 2006
0

Re: loading a swf file using a variable

could u explain ur problem in detail?
Reputation Points: 12
Solved Threads: 2
Light Poster
anuradhu is offline Offline
28 posts
since Apr 2006
Apr 18th, 2006
0

Re: loading a swf file using a variable

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:

ColdFusion Syntax (Toggle Plain Text)
  1. <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">
  2. <param name="movie" value="/test.fla" />
  3. <param name="quality" value="high" />
  4. <embed src="/test.fla" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="32" height="32"></embed>
  5. </object>

I wanted to use #movieName# instead of test.fla.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
bkendall is offline Offline
69 posts
since Jul 2005
Apr 18th, 2006
0

Re: loading a swf file using a variable

have you found the solution?
Reputation Points: 12
Solved Threads: 2
Light Poster
anuradhu is offline Offline
28 posts
since Apr 2006
Apr 18th, 2006
0

Re: loading a swf file using a variable

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.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
bkendall is offline Offline
69 posts
since Jul 2005
Apr 19th, 2006
0

Re: loading a swf file using a variable

oh...dats great!!
Reputation Points: 12
Solved Threads: 2
Light Poster
anuradhu is offline Offline
28 posts
since Apr 2006
Jun 16th, 2006
0

Re: loading a swf file using a variable

Quote 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:

ColdFusion Syntax (Toggle Plain Text)
  1. <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">
  2. <param name="movie" value="/test.fla" />
  3. <param name="quality" value="high" />
  4. <embed src="/test.fla" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="32" height="32"></embed>
  5. </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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
anardodesign is offline Offline
1 posts
since Jun 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ColdFusion Forum Timeline: Trying to return query results
Next Thread in ColdFusion Forum Timeline: SQL Delete/Update Error





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC