<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2995" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT face=Arial 
color=#0000ff size=2>Chris.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT face=Arial 
color=#0000ff size=2>Flash lets you load images into any "movieclip" 
object.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT face=Arial 
color=#0000ff size=2>If you are using flash 6 or less, you can use loadMovie(), 
or flash 7/8, you can use the better movieclipLoader class (it gives you easier 
hoooks into progress and complete events).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT face=Arial 
color=#0000ff size=2>As an exmaple for f 7/8, you woulod do something like 
this:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT face=Courier 
size=2>// on your swfObject code for you HTML page, add a var like 
this:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT><FONT face=Courier 
size=2>// use full path to images, so IE doesn't cache from the wrong 
location</FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT><FONT face=Courier 
size=2><BR></FONT><FONT face=Courier size=2>so.addVariable("<SPAN 
class=453031722-11122006>bgimg</SPAN>", "</FONT><A 
href="http://www.mysite.com/someimage.jpg"><FONT face=Courier color=#000000 
size=2>http://www.mysite.com/someimage.jpg</FONT></A><FONT face=Courier 
size=2>");<BR></DIV></FONT></FONT></SPAN>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT face=Courier 
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT face=Courier 
size=2>//INSIDE FLASH</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT face=Courier 
size=2>// All variables passed from swfObject are available on the _root 
timeline with the same names you passed in. In this case 
"bgimg"</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT face=Courier 
size=2>//</FONT></SPAN></DIV>
<DIV dir=ltr align=left><FONT size=2><FONT face=Courier><SPAN 
class=453031722-11122006><FONT><FONT face=Arial 
color=#0000ff></FONT></FONT></SPAN></FONT></FONT> </DIV>
<DIV dir=ltr align=left><FONT size=2><FONT><SPAN 
class=453031722-11122006><FONT><FONT face=Courier>// START FLASH 
CODE</FONT></FONT></SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT size=2><FONT><SPAN 
class=453031722-11122006><FONT><FONT 
face=Courier>//</FONT></DIV></FONT></SPAN></FONT></FONT>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT face=Courier 
size=2>// create object to "listen" to events from the movieclip 
loader</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT face=Courier 
size=2>var loadListener:Object = new Object();<BR></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT face=Courier 
size=2>// functions for handling the various events from the 
loader</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT face=Courier 
size=2>// add or remove as necessary<BR><BR>loadListener.onLoadInit = 
function(target_mc:MovieClip):Void {<BR>    trace(">> 
loadListener.onLoadInit()");<BR>    trace(">> 
=============================");<BR>    trace(">> 
target_mc._width: " + target_mc._width); // your image 
width/height</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT face=Courier 
size=2>}</FONT></SPAN></DIV>
<DIV><SPAN class=453031722-11122006><FONT face=Courier 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=453031722-11122006><FONT face=Courier 
size=2>loadListener.onLoadProgress = function(target:MovieClip, 
bytesLoaded:Number, bytesTotal:Number):Void {<BR>    trace(target 
+ ".onLoadProgress with " + bytesLoaded + " bytes of " + 
bytesTotal);<BR>}</FONT></DIV>
<DIV dir=ltr align=left><BR><SPAN class=453031722-11122006></SPAN><FONT 
face=Courier size=2>/<SPAN class=453031722-11122006>/ create the movieclip 
loader</SPAN><BR>var mcLoader:<SPAN class=searchhilite>MovieClipLoader</SPAN> = 
new <SPAN class=searchhilite>MovieClipLoader</SPAN>();</FONT></DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006></SPAN><FONT face=Courier 
size=2>/<SPAN class=453031722-11122006>/ add the lister object to receive events 
from the loader</SPAN><BR>mcLoader.addListener(loadListener);<BR></FONT></DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006></SPAN><FONT face=Courier 
size=2>/<SPAN class=453031722-11122006>/ create a movielcip to load the image 
into</SPAN><BR>var <SPAN class=453031722-11122006>imgBGMC</SPAN>:MovieClip 
= this.createEmptyMovieClip("<SPAN class=453031722-11122006>imgBGMC</SPAN>", 
this.getNextHighestDepth());</FONT></DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006></SPAN><FONT face=Courier 
size=2>/<SPAN class=453031722-11122006>/ load the image loaction from an 
swfObject flash vars variable</SPAN><BR>mcLoader.loadClip(<SPAN 
class=453031722-11122006>bgimg</SPAN>, <SPAN 
class=453031722-11122006>imgBGMC</SPAN>);</FONT></DIV>
<DIV dir=ltr align=left><FONT face=Courier size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Courier size=2></FONT> </DIV>
<DIV dir=ltr align=left></SPAN><SPAN class=453031722-11122006><FONT face=Arial 
color=#0000ff size=2>This is really more of a general flash question though , 
and you'll have a better response in beginner flash lists / 
forums.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT face=Arial 
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT face=Arial 
color=#0000ff size=2>Aran</FONT> </SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=453031722-11122006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> swfobject-bounces@lists.deconcept.com 
  [mailto:swfobject-bounces@lists.deconcept.com] <B>On Behalf Of </B>Chris V. 
  Gnarra<BR><B>Sent:</B> Tuesday, 12 December 2006 4:24 AM<BR><B>To:</B> 
  swfobject@lists.deconcept.com<BR><B>Subject:</B> [SWFObject] SWFObject 
  flashVars to pull in an image to be used as abackground<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV><FONT face=Arial size=2>Hi: </FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2>I was wondering if anyone knew how to parse 
  an image to be </FONT><FONT face=Arial size=2>used as a background in an SWF, 
  for arguments sake a JPG into a flash file </FONT><FONT face=Arial 
  size=2>using the SWFObject flashVars option and actually have it </FONT><FONT 
  face=Arial size=2>sitting behind the main flash stage area?</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2>I am pretty new to flash but more so actionscript 
  and would love </FONT><FONT face=Arial size=2>to know how to do this as I know 
  images can be pulled into the </FONT><FONT face=Arial size=2>flash via the 
  SWFObject but I do not know how to pull an image </FONT><FONT face=Arial 
  size=2>in to be used as a background and actually have it sit behind the main 
  flash </FONT><FONT face=Arial size=2>stage. If anyone can help here I would be 
  immensely grateful and </FONT><FONT face=Arial 
size=2>appreciated.</FONT></DIV>
  <DIV> </DIV>
  <DIV><FONT face=Arial size=2>Many thanks.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2>Chris.</FONT></DIV></BLOCKQUOTE></BODY></HTML>