Forum Moderators: open
the code below is for the Home page. it is the one i've been working on the most.
1) the background of the flash file is set to black
2) when i go to try to add an action script to the flash file, to loop it, i click on the flv, the only thing in the file, and the action box reads"
"current selection cannot have actions applied to it"
So i can't tell whether the problem is in my flash or in my html.
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" [fpdownload.adobe.com...] width="530" height="398" align="middle"> <PARAM NAME="LOOP" VALUE="true"> <param name="wmode" value="transparent" /> <param name="movie" value="http://www.example.com/Flash/HarvestMed.swf"> <param name="allowScriptAccess" value="always"> <param name="bgcolor" value="#000000" /> <embed type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" width="530" height="398" align="middle" loop="true"
src="http://www.example.com/Flash/HarvestMed.swf" allowScriptAccess="always"></embed>
</object>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
width="530" height="398"
id="mymoviename">
<param name="movie"
value="http://www.example.com/Flash/HarvestMed.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<PARAM NAME="LOOP" VALUE="true">
<embed src="http://www.example.com/Flash/HarvestMed.swf" quality="high" bgcolor="#ffffff"
width="530" height="398"
name="mymoviename" align="" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="530" height="398"><param name="movie" value="http://www.example.com/Flash/HarvestMed.swf"><param name="allowScriptAccess" value="always">
<param name="wmode" value="transparent" /><param name="quality" value="High"><PARAM NAME="LOOP" VALUE="true"><embed src="http://www.example.com/Flash/HarvestMed.swf" wmode="transparent" pluginspage="http://www.adobe.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="530" height="398" LOOP="true" allowScriptAccess="always"></object>
[edited by: eelixduppy at 12:14 am (utc) on July 6, 2009]
[edit reason] Removed specifics [/edit]
"current selection cannot have actions applied to it"
This is a Flash error and indicates the current object can't have ActionScript applied to it. For example, you create a graphic object, say, a rectangle, on the stage, and attempt to script the rectangle. You have to first convert it to a symbol, and apply scripting to the symbol.
Don't think the problem is in the embed/publish code, but once you sort it look into SWFobject.
2040 frames so i tried to pop in a keyframe at 2040 and add a loop actionscript and it wasn't pretty.
So are you dropping the entire video in the Flash? It doesn't really work this way, or shouldn't.
At it's most basic level, you create a video player object within Flash and assign a file - .flv - to the video. The Flash itself does not contain the video, it references the .flv as the external file.
While you can put keypoints in the .flv for syncing events with the video, it would not be needed for a loop.
The player itself determines the "loop." That is, you'd put something like this:
onVideoEnd () { goToAnyPlay(1); }
"onVideoEnd" is not a "real" function. There are many ways to determine the end of a video in Flash, this is just an example. "goToAnyPlay(1)" is a real function in that it goes to the first frame of the Flash movie, but doesn't play the video. However, you might have actionScript in frame 1 like "mymovie.play()."
i think i have to find a tutorial for working with video clips.
Again, it's in the help files. Understand the basics of video from there before you download a player and start tweaking it, it will help. Flash provides sample video files you can pick apart. Many of the web-based "beginner" video tutorials are basically a rework of what's already in the help files, but if they help you grok it's all good.