dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: check if file exists ?

  1. #1
    Senior Member
    Join Date
    Jun 2003
    Location
    La Mirada California
    Posts
    396

    check if file exists ?

    OK, I'm creating thumbnail buttons and I need to make as many as there are jpg's.. they're in sequential order, so I need to do something like
    if(fileexists){ goto next file and load this jpg}

    Or any other suggestions?

    Thanks!

  2. #2
    Junior Member
    Join Date
    Oct 2007
    Posts
    14

    use xml file for the jpgs and xmlList

    Hi
    im quite new in this so...
    i would put all jpg's into xml file by its numbers
    and then create XMLList and check if node number x exist then put the thumb
    and when u delete a jpeg delete it from the xml

    hope it helps
    inwonder

  3. #3
    Senior Member
    Join Date
    Jun 2003
    Location
    La Mirada California
    Posts
    396
    I thought of that, but I want to make it as simple as possible.
    I just called a function that loads the next photo, every time one loads..

    That works, unless there's a very simple way to check anyone knows?

  4. #4
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    Check the "LoaderClass" here:

    http://flashscript.biz/flashas3/biz/index.html

    You can download all the classes here:
    http://flashscript.biz/flashas3/biz/FS_biz_classes.html

    Using a loop or Timer type loop you can call this class several times for each of your thumbs and then aasociate a url with the thumb once it is loaded.

    There are other classes and components.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

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