Web Analytics Made Easy -
StatCounter Loading images into a flash file using Flashvars - CodingForum

Announcement

Collapse
No announcement yet.

Loading images into a flash file using Flashvars

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Loading images into a flash file using Flashvars

    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

  • #2
    It should be like this
    Code:
    <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
    Code:
    var img1 = this.image1;
    var img2 = this.image2;
    var img3 = this.image3;
    var img4 = this.image4;
    ||||If you are getting paid to do a job, don't ask for help on it!||||

    Comment


    • #3
      how do I load an image using flashvars?

      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:

      Code:
       
      <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.

      Comment

      Working...
      X