Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to see the flash movie using Cold Fusion

Status
Not open for further replies.

request

Programmer
Dec 5, 2001
76
US
I have my Cold Fusion code. I have designed a welcome screen using FLASH that I need to display thru the Cold Fusion code.

In flash, I created .fla file and published it to create the .swf file. I included the following lines in my Cold Fusion Code screen so that I can see the welcome screen:

<HTML>
<HEAD>
<TITLE>safari_intro_6</TITLE>
</HEAD>
<BODY bgcolor=&quot;#FFFFFF&quot;>
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<!--S Online A F R I Y --><OBJECT classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;
codebase=&quot; WIDTH=550 HEIGHT=400>
<PARAM NAME=movie VALUE=&quot;safari_intro_6.swf&quot;> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src=&quot;safari_intro_6.swf&quot; quality=high bgcolor=#FFFFFF WIDTH=550 HEIGHT=400 TYPE=&quot;application/x-shockwave-flash&quot; PLUGINSPAGE=&quot;</OBJECT>
</BODY>
</HTML>


However, when I try to access the screen in CF code, it seems to take forever to run the .swf file (and I never see it).

How can I incorporate .swf file in Cold Fusion code????
Please help.
 
silly question but, have you got the page and the shockwave file in the same directory? Regards

Big Dave

davidbyng@hotmail.com
 
You were right. I did not have the page and shockwave file in the same directory.
However, I am facing the following problems now:

1. My flash welcome screen keeps on playing infinite times.
Why???

2. Also, I have a CFTREE that need to be displayed on the side of the screen .

How can I combine both the code mentioned below so that I can see the CFTREE on the side and see the FLASh movie on the other side of the screen.

<frameset cols=&quot;20%,80%&quot;>
<frame name=&quot;NavBar&quot; src=&quot;nav_Main.cfm&quot; frameborder=&quot;0&quot; scrolling=&quot;Auto&quot; marginwidth=&quot;10&quot; marginheight=&quot;10&quot;>
</frameset>

<HTML>
<HEAD>
<TITLE>intro_6</TITLE>
</HEAD>
<BODY bgcolor=&quot;#FFFFFF&quot;>
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<!--S Online A F R I Y --><OBJECT classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;
codebase=&quot; WIDTH=550 HEIGHT=400>
<PARAM NAME=movie VALUE=&quot;safari_intro_6.swf&quot;> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src=&quot;safari_intro_6.swf&quot; quality=high bgcolor=#FFFFFF WIDTH=550 HEIGHT=400 TYPE=&quot;application/x-shockwave-flash&quot; PLUGINSPAGE=&quot;</OBJECT>
</BODY>
</HTML>

Thanks for the help.
 
To keep your welcome movie from looping you should add a stop action on the last frame of your movie.
Beforehand, you could also try to add a <PARAM NAME=loop VALUE=false> parameter within the object tag, and a loop=false parameter within the embed tag, but that might not work, as the stop action would!

I'm not familiar with Cold Fusion, but seems to me that your main html should only hold the frameset - which by the way, only has one identified frame name - and that both frames sources should hold links to their own html.
Something like:

<frameset cols=&quot;20%,80%&quot;>
<frame name=&quot;NavBar&quot; src=&quot;nav_Main.cfm&quot; frameborder=&quot;0&quot; scrolling=&quot;Auto&quot; marginwidth=&quot;10&quot; marginheight=&quot;10&quot;>
<frame name=&quot;Main_Screen&quot; src=&quot;your_movie.html&quot; frameborder=&quot;0&quot; scrolling=&quot;Auto&quot; marginwidth=&quot;10&quot; marginheight=&quot;10&quot;>
</frameset>

Thus your_movie.html should be:
Code:
<HTML>
<HEAD>
<TITLE>intro_6</TITLE>
</HEAD>
<BODY bgcolor=&quot;#FFFFFF&quot;>
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<!--S Online A F R I Y --><OBJECT classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;
 codebase=&quot;[URL unfurl="true"]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0&quot;;[/URL]
 WIDTH=550 HEIGHT=400>
 <PARAM NAME=movie VALUE=&quot;safari_intro_6.swf&quot;> <PARAM NAME=quality VALUE=high> <PARAM NAME=loop VALUE=false> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src=&quot;safari_intro_6.swf&quot; quality=high loop=false bgcolor=#FFFFFF  WIDTH=550 HEIGHT=400 TYPE=&quot;application/x-shockwave-flash&quot; PLUGINSPAGE=&quot;[URL unfurl="true"]http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash&quot;;></EMBED>[/URL]
</OBJECT>
</BODY>
</HTML>

Regards,
wink4.gif
ldnewbie
 
In the above, I need to do the following additional thing:

I need to pass Cold Fusion variables to the FLASH movie.
How can I do it?????

e.g. I need to pass employee code and employee name.

Please help.

Thanks.
 
Do you mean &quot;my above&quot; is now working?

Regards,
wink4.gif
ldnewbie
 
oldnewbie:

Due to some problems here, I have not yet tried the last suggested solution by you. I should be able to use your suggestion in the next couple of hours. However, I also need to do additional thing as I mentioned in my last posting.

Thanks.
 
To do the variable thing :

1) Write the variable to a blank page like this : myname=cold-fusion-variable

2) Read the page into Flash with : loadVariablesNum()

3) Assign variable were needed in movie Regards

Big Bad Dave

davidbyng@hotmail.com
 
to read a cf variable with a swf when it loads just use

<!--S Online A F R I Y --><OBJECT classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;
codebase=&quot; WIDTH=550 HEIGHT=400>
<PARAM NAME=movie VALUE=&quot;safari_intro_6.swf?myvariable=#cfvar#&quot;> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src=&quot;safari_intro_6.swf?myvariable=#cfvar#&quot;> &quot;> &quot; quality=high bgcolor=#FFFFFF WIDTH=550 HEIGHT=400 TYPE=&quot;application/x-shockwave-flash&quot; PLUGINSPAGE=&quot;</OBJECT>


it'll be in your swf whe i loads as myvariable in your root.
 
oldnewbie:

I implemented the last solution suggested by you mentioned above.It worked in the sense that I could see the Cold Fusion CFTREE on one side of the screen and my FLASH movie on the rest of the screen.

However, whenever I click on any of the items on the CFTREE, instead of taking me to the related screens, it pops up the login screen again. Please let me know what fix can I do for this.

<frameset cols=&quot;20%,80%&quot;>
<frame name=&quot;NavBar&quot; src=&quot;nav_Main.cfm&quot; frameborder=&quot;0&quot; scrolling=&quot;Auto&quot; marginwidth=&quot;10&quot; marginheight=&quot;10&quot;>
<frame name=&quot;Main_Screen&quot; src=&quot;your_movie.html&quot; frameborder=&quot;0&quot; scrolling=&quot;Auto&quot; marginwidth=&quot;10&quot; marginheight=&quot;10&quot;>
</frameset>

The file nav_Main.cfm displays the CFTREE.

Thanks a ton for your help.
 
oldnewbie:

Please ignore my last posting. I am able to get to the screens when I click on the CFTREE. I had mentioned the frame name incorrectly in my code.

I greatly appreciate your help.

Thanks.
 
As I said, I'm not at all familiar with CF. The solution I gave you would work if you had a Flash navigation movie in the left frame, with buttons calling up links or other movies in the main frame. Guess CF should be able to do the same, but I have no idea on what the coding might be.

By the way, did you know there's a CF forum232 on Tek-Tips. Maybe ask those guys!

Regards,
wink4.gif
ldnewbie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top