dcsimg
A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Dynamic Image Please help

  1. #1
    Junior Member
    Join Date
    Oct 2006
    Posts
    4

    Dynamic Image Please help

    hey all,

    i know how to dynamicly load an external .txt file into flash 8 but i was wondering how do i dynamic load images i.e. load an external .png, .gif or .jpg

    Many thanks,

    CJ

  2. #2
    Senior Member
    Join Date
    Oct 2004
    Posts
    2,049
    use the loadMovie() or loadMovieNum()

    example
    Code:
    this.loadMovie("myPic.png")
    
    this.loadMovieNum("myPic.png",5)

  3. #3
    Junior Member
    Join Date
    Oct 2006
    Posts
    4
    Thank you.......dumb question but what is the num fuction for?

  4. #4
    Junior Member
    Join Date
    Oct 2006
    Posts
    4
    also a nother dumb question....with loading .txt dynamicly you have a dynamic text field which has a name so it knows where to load it.....but what would i use for an image......do you see what i mean?

    Many thanks

  5. #5
    Senior Member
    Join Date
    Oct 2004
    Posts
    2,049
    1) create a empty movieClip
    2) give it an instance name holder.
    3) loadMovie("myPic.jpg","holder");
    3a) this will load the jpg in to the movieClip holder.

    or you can use

    4) loadMovieNum("myPic.jpg",5)
    4a) 5 is the depth of the jpg will load in.

  6. #6
    Senior Member
    Join Date
    Oct 2004
    Posts
    2,049
    Here is a sample of loadMovie


    just change the pic name to something u have.

  7. #7
    Junior Member
    Join Date
    Oct 2006
    Posts
    4
    thank you so much!!

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