[Resolved] Pulling images from a DB
A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: [Resolved] Pulling images from a DB

  1. #1
    Junior Member
    Join Date
    Mar 2000
    Posts
    2

    Talking


    Hey,

    Ok, here's the situation. I'm currently building a site in flash/php3/MySQL... Data about "clients" is entered by administrators from a seperate html page with some php3 coding in it. The info is stored in a DB and accessed by MySQL through php3. Each "client" has an image file associated with it.

    So what I'm trying to do is have the flash movie pull the image file from the db, or more specifically pull the name of the file from the db, this is done, and pull the file itself from the host server.

    I'm wondering if it is possible to pull an image this way in flash?

    If not is there any way to store the images directly in the flash movie... there could be as many as 600 of em, so loading time becomes an issue.

    Thanks,

    Telf

  2. #2
    Junior Member
    Join Date
    Mar 2000
    Posts
    2

    Post



    .... anyone?

  3. #3
    Junior Member
    Join Date
    Mar 2000
    Location
    Seattle, WA
    Posts
    19

    Post

    You need to store the images in seperate swfs...then load then as movies...ie...

    hat.swf
    ball.swf
    etc...


  4. #4
    Junior Member
    Join Date
    Mar 2000
    Posts
    12

    Post

    Did you looked in to Generator
    Genrator is a very good solution for your Problem .
    Of course it is not cheap but it is the almost only way to create personalized
    Database drien Flash sites


    CB


    [This message has been edited by keilo2000 (edited 28 March 2000).]

  5. #5
    Junior Member
    Join Date
    Mar 2000
    Posts
    19

    Post

    does the swift generator have that ability?

  6. #6
    Junior Member
    Join Date
    Feb 2000
    Posts
    1

    Post

    Telf!
    this is what i'm trying to do!!
    plz mail me for the best workz together if you need my help (i need any help for flash+php3+sql)
    gabesz@futureco.hu

  7. #7
    Junior Member
    Join Date
    Apr 2000
    Posts
    2

    Lightbulb

    Hio Telf!
    My advise: Use the sql-database to only store the filenames of the gifs/jpgs in the right position and then pull the info out of the database into a php3 - script that creates a swift-generator script file, changing the source of the "to-be-changed"!
    That should do it -- quite inexpensively!
    I'll hang on this one - let's keep posted!
    greetings & happy flashing
    flo

    ------------------

  8. #8
    Junior Member
    Join Date
    Apr 2000
    Posts
    7

    Lightbulb

    I just trying swift generator and with this its easy to get your picture from the server into flash dynamicly.
    Excellent help file is availible aswel www.swift-tools.com

  9. #9

    SOLUTION??

    I also am looking for a solution, i want to have an admin page that people can uplaod images onto the FTP and then for flash to grab them and show them in the album...

    Any idea's
    files i can steal?
    borrow,
    tips
    anything?

  10. #10
    Moderator
    Join Date
    Feb 2001
    Posts
    13,044
    Hi zanga,

    you were pulling a thread from the grave

    Macromedia has sort of resolved the issue, since flash player 6 can load at least jpeg images - it even does if your main movie is done with flash 5.
    So your movie would retrieve the image file name from the database and then do a
    loadMovie(moviename, container)
    where container is just an empty clip ... place it where you want the upper left corner of the image

    If you want to use other image formats, you probably should look for a server script that converts them after upload

    Musicman

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

Poll by Flashkit.com