A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Loading An Image

  1. #1
    Junior Member
    Join Date
    Jun 2008
    Posts
    7

    Loading An Image

    Hi

    I am new to flash, and I have a task to do, that is to load an image (jpg) on a particular frame of the movie. Note, that the image will be a result of an upload form. I have already done the upload / resize part in PHP.

    I know that this can be done using FlashVars, but do not know how to put that on Flash.

    Please guide me what steps are needed and what are the things (movie clip etc etc) are needed to set. I will be very much thankful if you can provide me step by step guide.

    Thanks
    Zeeshan

  2. #2
    Junior Member
    Join Date
    Jun 2008
    Posts
    7
    Hello people, !!

    I want to know if I am missing anything OR any rule !

    MODS, can u please tell me if the post is OK ?

    because this is my 2nd post here, and so far none of the post were replied.

  3. #3
    Junior Member
    Join Date
    Jun 2008
    Posts
    7
    Did I asked a lot advanced things ?

  4. #4
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    Nope, no rules breaking. I'm guessing your question isn't clear. I saw your post yesterday. That's what i thought then:

    question:
    .... to load an image (jpg) on a particular frame of the movie.
    obvious answer:
    use loadMovie or loadClip on that keyframe. Or call a loading function on that keyframe.

    Then:
    I know that this can be done using FlashVars...

    FlashVars ?? What's the connection with loading an image?
    So, I then thought, no that's not what the question meant. And i have no idea what you meant now.

    It's possible other members thought that too...

    gparis

  5. #5
    Junior Member
    Join Date
    Jun 2008
    Posts
    7
    Hi

    Wow, at last I got a reply. But in other forums, if anything is unclear, people ask to clear it.

    Anyways, if you have ready my full question then you can find the answer of FlashVars.
    I wrote that I want to show the image/photo that was uploaded from a HTML form.

    Here is the question in easiest wording !

    I have a form where people fill in some data and upload a photo via a HTML form.
    As the result a HTML file is generated that calls the SWF file and pass the form data via FlashVars.

    Now i want a step by step guide for how to show that uploaded photo on frame no. 400 till 1000 in Flash.

  6. #6
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    So you uploaded the picture. And you want to hide it from view until the playhead reaches keyframe #400. Right? then set its _visible property to false to start with, then to true on keyframe 400, then false again on frame 1000. As in:

    container._visible = true; // visible
    container._visible = false; // invisible

    That's one option.

    gparis

  7. #7
    Junior Member
    Join Date
    Jun 2008
    Posts
    7
    Yes,

    but again if you have ready my question in detail, I am a novice, I want to know how to put everything on flash. A Step by step guide !

  8. #8
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    Frame1: container._visible = false; // invisible
    Frame400: container._visible = true; // visible
    Frame1000: container._visible = false; // invisible

    gparis

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