Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 00:44
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  MySQL, PostgreSQL, MS SQL, Access (Moderators: Flash-db, Musicman, Ronald Wernecke, Jorge Solis, Andries Seutens)
| | |-+  Passing pictures to generator from mysql
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Passing pictures to generator from mysql  (Read 2033 times)
sdfa
Server what's that
*
Posts: 9



View Profile Email
« on: 04/03/02, 23:56 »

Hi, I am trying to use a jpg generator object linked to a field in mysql which contains various filenames for jpg image files. The files are in the same directory as the flash movie. I have been looking all over for flash generator support but i cant seem to find much on mysql conectivity, im just trying to make a simple connection here. Well if anyone can tell me how to make a conection between the generator and mysql that would be awesome! or possibly tell me where to look with for generator/mysql help? Thanks!
Logged
flashswami
Jr. Programmer
**
Posts: 55


vene vidi vector


View Profile WWW
« Reply #1 on: 04/04/02, 07:30 »

If you're talking about MM Generator, then you need to be aware that MM are not supporting it from 15th of this month. It will be replaced by ColdFusion Server, which, if you can prove your ownership of Generator, you will get free.

Besides, for relativley simple things like image links, you don't need Generator any more. You can use code in Flash 5 or MX that, as long as your viewers have the v6 player, will work fine. Basically, you can use loadMovie("myImage.jpg"); to bring in images.

Remember you'll need to detect for v6 player. Also, if you are bringing in the images from a script reading in variables then you'd be better using some MX native code like this-

lets say you had a textfile that, as one of the variables, listed a jpg.
lets call this text file 'my_image_list.txt' and lets say that one of the
name value pairs is-

var1=some_image.jpg

If you use the new LoadVars object then you can ensure that the textfile
and the image references are all in Flash before any actual script is
executed e.g.-

i= new LoadVars();
i.onLoad=function(){
image_mc.loadMovie(var1,1);
}
i.load("my_image_list.txt");

which loads the correct image into a movie clip called 'image_mc'
Logged

Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!