A Flash Developer Resource Site

Results 1 to 19 of 19

Thread: Input type = file

  1. #1
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702

    Input type = file

    Is it possible to do something similar to the HTML input type="file" feature?

    For example, user browsed their computer, selects a file and it attaches itself to my outgoing form.
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  2. #2
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    Hahaha...man ...I'm a post bogart today. You sure can...but it's a bit more complicated than that.

    Koolmoves nicely handles internal upload windows but you have to tweak existing Flash code to integrate with a backend like you want. I have a s**tload of upload routines coming that do exactly that. They are meant to be tied to say user profiles....instant additions to gallery dirs that are read back in at runtime, forum avatars routines...etc.


    Unfortunately I could code 20 hours a day and never get everything online fast enough. Soon man. Soon.

  3. #3
    AKA [ Paul Bainbridge] webdreamer's Avatar
    Join Date
    Aug 2001
    Location
    Glasgow, Scotland, UK
    Posts
    3,317
    Flash 8 has this function. Or if you dont have flash 8 you can use a hidding form and use Js and what not to call the select file window. I used the simplest option and created a html popup with the upload form in that.
    .: To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Twitter - Linkedin
    bringmadeleinehome.com

  4. #4
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    Go flash 8. If you use an html form, you have to get those variables (image name or whatever else is in the html form) back into flash. Oh it can be done...but with you being able to export flash 8 from Koolmoves...you'd be nuts to waste the ton of coding it requires ( I know...I did it for years that way).


    Especially if it is say a user profile where you want to let them upload/update their avatar. You have to associate the user with the html form or push that users login name to the form....and do the same when it posts to integrate with their database record. Just an example.

    It's why the Flash 8 exported file uploads are far superior. It all integrates in one shot. Flash users begged for that for years.
    Last edited by Chris_Seahorn; 01-03-2006 at 03:24 PM.

  5. #5
    AKA [ Paul Bainbridge] webdreamer's Avatar
    Join Date
    Aug 2001
    Location
    Glasgow, Scotland, UK
    Posts
    3,317
    I use an html form on my site for members to upload custom avators. I use "live connect" to send the information back to flash. Not had any reported problems with it.
    .: To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Twitter - Linkedin
    bringmadeleinehome.com

  6. #6
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    I'm sure you don't. But the new routines smoke it. Koolmoves pumps F8 code so why walk backward. The people still using html are the ones who sacrifice the ability because they have chosen to not export F8 or want the F7 userbase (or lower). It's a tradeoff.
    Last edited by Chris_Seahorn; 01-03-2006 at 03:36 PM.

  7. #7
    AKA [ Paul Bainbridge] webdreamer's Avatar
    Join Date
    Aug 2001
    Location
    Glasgow, Scotland, UK
    Posts
    3,317
    I am not nocking F8 i using new F8 functions within my C.M.S system for innovativedesigns before i move over totaly to F8 on the front end. It's a lot of work that i am not looking forward to.
    .: To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Twitter - Linkedin
    bringmadeleinehome.com

  8. #8
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    I know. Mman...when i bumped up my 7 code went nuts : 0

  9. #9
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    Dupe post...disregard.

  10. #10
    AKA [ Paul Bainbridge] webdreamer's Avatar
    Join Date
    Aug 2001
    Location
    Glasgow, Scotland, UK
    Posts
    3,317
    I could switch to F8 just now but it would mean atleast a couple of months ironing out bugs
    .: To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Twitter - Linkedin
    bringmadeleinehome.com

  11. #11
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    No doubt...I've seen the site. I've been to your place before but never registered as I'm not much of a code buyer and would waste the database space. Why fix what isn't broke right? Dniezby is building whereas yours is built...so he needs to decide now what version he's gonna baseline and has to code within that versions abilities, like we all do.

    My guess is if you converted up this minute...you'd be seeing the word "undefined" all over the place, not to mention whatever else could go wrong.

  12. #12
    AKA [ Paul Bainbridge] webdreamer's Avatar
    Join Date
    Aug 2001
    Location
    Glasgow, Scotland, UK
    Posts
    3,317
    Yeh when i first updated to player 7 AS2 i was like WTF :S
    Left settings at player 6
    .: To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Twitter - Linkedin
    bringmadeleinehome.com

  13. #13
    AKA [ Paul Bainbridge] webdreamer's Avatar
    Join Date
    Aug 2001
    Location
    Glasgow, Scotland, UK
    Posts
    3,317
    No doubt...I've seen the site. I've been to your place before but never registered as I'm not much of a code buyer and would waste the database space.
    Please do the site needs some life. it's about the only thing that it lacks.
    .: To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Twitter - Linkedin
    bringmadeleinehome.com

  14. #14
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    I know what you mean....getting users to interact these days is like cutting teeth. It's why I don't code cms systems anymore

  15. #15
    AKA [ Paul Bainbridge] webdreamer's Avatar
    Join Date
    Aug 2001
    Location
    Glasgow, Scotland, UK
    Posts
    3,317
    Nah man i love it. Not much of a designer but i know the workings of flash+php+mysql like the back of my hand
    .: To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Twitter - Linkedin
    bringmadeleinehome.com

  16. #16
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    You're definitely my type of coder. As soon as I can put my son down...I'll be over to register.

  17. #17
    AKA [ Paul Bainbridge] webdreamer's Avatar
    Join Date
    Aug 2001
    Location
    Glasgow, Scotland, UK
    Posts
    3,317
    Hey while your at it sign my guestbook
    .: To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Twitter - Linkedin
    bringmadeleinehome.com

  18. #18
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    Hey Paul, I just sent you a PM. I hit the keyboard and added an extra letter to my email when I regged. I saw it as I hit submit but it was too late.

    I would have re-regged but your cookie writes before a successful login so it thinks I'm good.
    Last edited by Chris_Seahorn; 01-03-2006 at 04:59 PM.

  19. #19
    AKA [ Paul Bainbridge] webdreamer's Avatar
    Join Date
    Aug 2001
    Location
    Glasgow, Scotland, UK
    Posts
    3,317
    Dont worry it is sorted now.
    .: To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Twitter - Linkedin
    bringmadeleinehome.com

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