PDA

View Full Version : Loading images into a flash file using Flashvars


magicpaul
09-24-2006, 04:00 PM
Hi,

I'm trying to load 4 images into a flash file and fade between them. I'm thinking maybe I can use Flashvars to do this and set the image names in the HTML, i.e.,

<param name="FlashVars" value="image1=image1.jpg" />
<param name="FlashVars" value="image2=image2.jpg" />
<param name="FlashVars" value="image3=image3.jpg" />
<param name="FlashVars" value="image4=image4.jpg" />

But what I'm not sure about is how I would reference these images within the Flash file, so that I can animate between them?

Any help would be much appreciated!

Paul

_Aerospace_Eng_
09-24-2006, 05:40 PM
It should be like this
<param name="FlashVars" value="image1=image1.jpg&amp;image2=image2.jpg&amp;image3=image3.jpg&amp;image4=image4.jpg" />
Then in your actionscript you can access them by doing something like
var img1 = this.image1;
var img2 = this.image2;
var img3 = this.image3;
var img4 = this.image4;

ven
12-14-2010, 09:04 AM
Hello All,

I don't know how to add an image in a flashplayer using flashvars. Can anyone help me?

Actually, I want to add an image at the background in a flash player before the video is played.

This is a part of the HTML code:

The colored text are the changes i've made using dreamweaver:


<param name="movie" value="express 800x550 q50 b5000 mp4_controller.swf" />
<param name="quality" value="best" />
<param name="allowfullscreen" value="true" />
<param name="scale" value="exactfit" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value="image=w.png&autostart=false&thumb=BOX ICON 3-4.png&thumbscale=45&color=0x234456,0x234456" />

changes made in scale-value and flashvars-color reflected in the html except the flashvars image.

Is it possible to add an image in this code??

Thank you.