A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: loading images through variables

  1. #1
    Junior Member
    Join Date
    Apr 2000
    Posts
    1

    Question

    help,
    how can i load images in a flash moevie by using variables (the images must be chagable at all times)

    thx,

  2. #2
    Senior Member
    Join Date
    Mar 2000
    Posts
    303

    Post

    well, haven't done it yet in flash, but in other programs like VB.. I made a card game,and all you do is set the random number function and assign you pictures the value of numbers. For example, 1 = aceOfClubs
    2 = KingOfClubs, ect

  3. #3

    Post

    It can be done but depending on what you mean by "must be chagable at all times" there are different methods. If you simply want to load up an image that's within the Flash movie using variables, you can use something like

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code:</font><HR><pre>if x=1 then go to and play ("image1")[/code]

    where "image1" is the frame displaying the images. However, if you want to load an image into Flash from an external source, you will need to make a Flash template and use in conjunction with a server side program like Generator or Turbine.

  4. #4
    Senior Moderator
    Defender of the Faith
    Pope de Flash's Avatar
    Join Date
    Feb 2000
    Posts
    3,429

    Wink

    If you want to load external images into a flash swf. You are going to have to use either the load movie command with the images set in place and in a templet you design. (a swf)

    Or if you want to load them thru a table you will need Generator either by Macromedia with a $15,000. Lic fee or you can use swiff generator from www.openswiff.org for FREE. You will need a unix / lennox box running an apache server.

    ------------------
    Macromedians 1:1

    In the beginning the web was without shape and color, and the hype covered the darkness of the net. Then there was a Flash and life came to the web and vision became reality.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center