SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Have any code?

  1. #1
    SitePoint Member
    Join Date
    Feb 2004
    Location
    carolina
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Have any code?

    Does anyone have code that will let you load a image into flash by reading the variable from a text file? So all the person has to do is change the path in the text file and it will automatically change the image that loads.

    mediacre8tor

  2. #2
    always learning . . .
    Join Date
    Nov 2003
    Location
    UK
    Posts
    821
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    could do something like this:
    in .txt file
    URL=picture1.jpg

    in flash loadVars("url.txt", _root)

    this will load the variable URL into flash and then use something like.

    picture = URL
    loadMovie(picture, MC_instance)

    will load the picture into the instance. Sorry for the rough, very rough outline but i have to get off!

    Hope it helps

  3. #3
    SitePoint Member
    Join Date
    Feb 2004
    Location
    carolina
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    NP Thanks for taking any time at all. Thanks for the code.


Bookmarks

Posting Permissions

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