Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

White background precedes Flash and want to loop but can't



6:51 pm on Jul 2, 2009 (gmt 0)

5+ Year Member

i have tried each of these and more to embed my flash. the background of the file is black, yet when you enter the intro and home pages of
respectively there is always a white box that preceds the flash.

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 classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
width="530" height="398"
<param name="movie" 
value="http://www.example.com/Flash/HarvestMed.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<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"

<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]


3:57 pm on Jul 3, 2009 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Welcome aboard deekay,

"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.


7:36 pm on Jul 5, 2009 (gmt 0)

5+ Year Member

as for looping, i don't think i'm swift enough in flash just yet. i calculated the video at 24fps should be 2040 frames so i tried to pop in a keyframe at 2040 and add a loop actionscript and it wasn't pretty. i think i have to find a tutorial for working with video clips. I can only find ones that work with things animated in flash, things that function in the program. at the moment SWFobject seems like a lot of work too, but maybe my brain is just cooked


5:44 pm on Jul 7, 2009 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

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.


9:19 am on Jul 13, 2009 (gmt 0)

5+ Year Member

just a thought

have you tried to place in the header of the html the following
<meta http-equiv="Page-Enter" content="Alpha(opacity=100)" />
<meta http-equiv="Page-Enter" content="blendTrans(Duration=0.5)" />


5:52 pm on Jul 13, 2009 (gmt 0)

5+ Year Member

Mind telling me what i should expect to happen before i try it?


6:28 pm on Jul 13, 2009 (gmt 0)

5+ Year Member

why not try googlizing the meta tags.

Featured Threads

Hot Threads This Week

Hot Threads This Month