Lee_Benson
11-29-2003, 02:03 PM
Hey dudes,
Got a quick Q, regarding Flash in AMS 5.
I'm using Camtasia Studio 2 to record/capture screen recordings, and encode them as SWF files.
All is great - except, Camtasia outputs 5 files for each SWF file.
If my video was called "newtest", the following files would be output:
- newtest.html (the HTML to load the Flash. Not needed in AMS, obviously)
- newtest.swf (the actual encoded video file itself)
- newtest_preload.swf (the screen that preloads the main video)
- newtest_controller.swf (the SWF that's first loaded by the HTML, to control it all)
- newtest_config.xml (An XML file that newtest_controller.swf loads, to find out the file paths to each of the SWF files, and other config settings)
The following code is output in the "newtest.html" file:
--- newtest.html
<head>
<title>Macromedia Flash (SWF) Movie Created by Camtasia Studio 2</title>
</head>
<body bgcolor="#FFFFFF">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
rsion=5,0,0,0" width="800" height="617" id="myMovieName">
<param name="movie"
value="newtest_controller.swf?csConfigFile=newtest_config .xml">
<param name="quality" value="high">
<param name="bgcolor" value="#FFFFFF">
<param name="FlashVars" value="csConfigFile=newtest_config.xml">
<embed src="newtest_controller.swf?csConfigFile=newtest_config .xml"
FlashVars="csConfigFile=newtest_config.xml" quality=high bgcolor=#FFFFFF
width=800 height=617 type="application/x-shockwave-flash"
pluginspace="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
</body>
</html>
---
And the following is in "newtest_config.xml"
--- newtest_config.xml
<config>
<AutoStart>1</AutoStart>
<MovieWidth>800</MovieWidth>
<MovieHeight>600</MovieHeight>
<BackgroundColor>FFFFFF</BackgroundColor>
<MovieURL>newtest.swf</MovieURL>
<ShowLoadingMov>1</ShowLoadingMov>
<LoadingMovURL>newtest_preload.swf</LoadingMovURL>
<ScaleLoadingMov>1</ScaleLoadingMov>
<LoadingMovPercentToLoad>20</LoadingMovPercentToLoad>
<LoadingMovMinDuration>2</LoadingMovMinDuration>
<ControllerColor>C0C0C0</ControllerColor>
<ShowFFRW>1</ShowFFRW>
<ShowAbout>1</ShowAbout>
<AboutBoxText>Just a test movie, for now!</AboutBoxText>
<TimeDisplayFormat>MM:SS</TimeDisplayFormat>
<ShowDuration>1</ShowDuration>
<ShowElapsedTime>1</ShowElapsedTime>
<TimeDisplayFont>Arial</TimeDisplayFont>
<TimeDisplayFontColor>000000</TimeDisplayFontColor>
</config>
---
Now, I'm having a bit of trouble loading these files into AMS 5.
I tried inserting "newtest_controller.swf" as a new Flash object, and then using the Flash.SetFlashVariable action to set "csConfigFile" to "newtest_config.xml" inside the Flash object. But that didn't work. Nothing happens.
You can see the HTML and XML that is being used above, that works fine when all the files are in the same directory, and the HTML is called directly from a web browser. How would I translate THAT over to AMS 5?
How do I load query string variables, like the web browser does, into a Flash file? Is that done with the Flash.SetFlashVariable action, or do I use something else? Where do I set it - OnFSCommand, or OnLoad in the page?
Corey, you're the Flash whizz - do you have any ideas mate?
Thanks a lot!
Got a quick Q, regarding Flash in AMS 5.
I'm using Camtasia Studio 2 to record/capture screen recordings, and encode them as SWF files.
All is great - except, Camtasia outputs 5 files for each SWF file.
If my video was called "newtest", the following files would be output:
- newtest.html (the HTML to load the Flash. Not needed in AMS, obviously)
- newtest.swf (the actual encoded video file itself)
- newtest_preload.swf (the screen that preloads the main video)
- newtest_controller.swf (the SWF that's first loaded by the HTML, to control it all)
- newtest_config.xml (An XML file that newtest_controller.swf loads, to find out the file paths to each of the SWF files, and other config settings)
The following code is output in the "newtest.html" file:
--- newtest.html
<head>
<title>Macromedia Flash (SWF) Movie Created by Camtasia Studio 2</title>
</head>
<body bgcolor="#FFFFFF">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
rsion=5,0,0,0" width="800" height="617" id="myMovieName">
<param name="movie"
value="newtest_controller.swf?csConfigFile=newtest_config .xml">
<param name="quality" value="high">
<param name="bgcolor" value="#FFFFFF">
<param name="FlashVars" value="csConfigFile=newtest_config.xml">
<embed src="newtest_controller.swf?csConfigFile=newtest_config .xml"
FlashVars="csConfigFile=newtest_config.xml" quality=high bgcolor=#FFFFFF
width=800 height=617 type="application/x-shockwave-flash"
pluginspace="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
</body>
</html>
---
And the following is in "newtest_config.xml"
--- newtest_config.xml
<config>
<AutoStart>1</AutoStart>
<MovieWidth>800</MovieWidth>
<MovieHeight>600</MovieHeight>
<BackgroundColor>FFFFFF</BackgroundColor>
<MovieURL>newtest.swf</MovieURL>
<ShowLoadingMov>1</ShowLoadingMov>
<LoadingMovURL>newtest_preload.swf</LoadingMovURL>
<ScaleLoadingMov>1</ScaleLoadingMov>
<LoadingMovPercentToLoad>20</LoadingMovPercentToLoad>
<LoadingMovMinDuration>2</LoadingMovMinDuration>
<ControllerColor>C0C0C0</ControllerColor>
<ShowFFRW>1</ShowFFRW>
<ShowAbout>1</ShowAbout>
<AboutBoxText>Just a test movie, for now!</AboutBoxText>
<TimeDisplayFormat>MM:SS</TimeDisplayFormat>
<ShowDuration>1</ShowDuration>
<ShowElapsedTime>1</ShowElapsedTime>
<TimeDisplayFont>Arial</TimeDisplayFont>
<TimeDisplayFontColor>000000</TimeDisplayFontColor>
</config>
---
Now, I'm having a bit of trouble loading these files into AMS 5.
I tried inserting "newtest_controller.swf" as a new Flash object, and then using the Flash.SetFlashVariable action to set "csConfigFile" to "newtest_config.xml" inside the Flash object. But that didn't work. Nothing happens.
You can see the HTML and XML that is being used above, that works fine when all the files are in the same directory, and the HTML is called directly from a web browser. How would I translate THAT over to AMS 5?
How do I load query string variables, like the web browser does, into a Flash file? Is that done with the Flash.SetFlashVariable action, or do I use something else? Where do I set it - OnFSCommand, or OnLoad in the page?
Corey, you're the Flash whizz - do you have any ideas mate?
Thanks a lot!