View Full Version : dynamic images
danjar
08-11-2001, 02:52 PM
I'm trying to create a site totally with flash.. Retrieving information from a database with php...
I'm wanting to know if I can dynamically load an image into a page during a movieclip..
ie: a user logs in, their details are retieved from the database, and their photo is loaded into the flash movie from a file location..
is this possible?
dan
Jesse
08-12-2001, 02:55 AM
yes, if you store the path tot he file int he DB and then load that in as a variable into flash. but of course the image woul dhave to be an swf or a jpg converted on the fly to an swf usinga 3rd party app like jpg2swf or Siwft Generator.
explorer
08-17-2001, 07:51 PM
Try this (myClip is dummy clip defined manually).
this.backgrounds.duplicateMovieClip("myClip", 0);
this.myClip._x = x_offset;
this.myClip._y = y_offset;
loadMovie("images/myimage.swf", this.myClip);
Gifs could be batch converted to swf via gifswfsh.
However if swfs need to be smart (acting on events)
you have to make fla files from gifs manually (File - Import...) and add actions (to myimage.swf). If the event actions are generic for all, add them to myClip instead.
matski
08-28-2001, 12:47 AM
Danjar,
Yes, I am very interested also, about how you go with this problem,
I also want people to be able to upload graphic files within my online flash page, and them have access to them immediately to resize, flip rotate and place them into the flash movie,
Let me know how you go
matski
Jesse
08-28-2001, 04:52 AM
Like I said in reply to your other post:
- Uploading via flash is still not very user-friendly
- You would have to use MING or Jpg2SWF or similar to convert the graphic to an SWF
- Once it's an SWF you can load it in and manipulate it easily.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.