A Flash Developer Resource Site

Page 1 of 2 12 LastLast
Results 1 to 20 of 21

Thread: Why can't flash import an HTML doc, like a txt file?

  1. #1
    Flash Fan, Non-Blonde
    Join Date
    Apr 2004
    Posts
    27

    Why can't flash import an HTML doc, like a txt file?

    I'm having success with all textField imports to my website (which has allowed me to to give limited revisions/updates control to my clients) but I would love to attach images in these fields as easy as an HTML doc

    Doesn't this seem innately necessary? Am I crazy, or am I missing the obvious remedy?

    site in question: http://www.distincdesign.com/outpost/

    Hey, thanks.

    BaileyBoy

  2. #2
    Flashkit Jedi

    Join Date
    Jul 2001
    Location
    Coruscant System
    Posts
    3,426
    There is currently no way to load in an html file to flash. You can html-enable dynamic textfields to read html, but there are only 11 supported tags.

    XFM

  3. #3
    Flash Fan, Non-Blonde
    Join Date
    Apr 2004
    Posts
    27
    Why aren't developers laying siege to Macromedia HQ with torches right now? Who's with me!?

  4. #4
    Flashkit Jedi

    Join Date
    Jul 2001
    Location
    Coruscant System
    Posts
    3,426
    If it was a major 'needed' function or piece of scripting, then I'm sure it'd be in there already.

    There are just other ways around it I guess.

    XFM

  5. #5
    Flash Fan, Non-Blonde
    Join Date
    Apr 2004
    Posts
    27
    first, thanks for your replies Xurion, I appreciate it.

    second, wouldn't you love to put an image tag in your dynamic text files?! what would be better than that? what's the easier, like solution?

  6. #6
    Flashkit Jedi

    Join Date
    Jul 2001
    Location
    Coruscant System
    Posts
    3,426
    No probs.

    Umm, you can put an img tag in text fields.

    XFM

  7. #7
    Special Member Tea_J's Avatar
    Join Date
    Dec 2000
    Posts
    991
    Like Xurion_Flash_Man said, flash supports a number of html tags... including image tags.. <img>...

    try it..

    tea

  8. #8
    Flash Fan, Non-Blonde
    Join Date
    Apr 2004
    Posts
    27
    wha. . .how?

    in my source.txt I placed <img src="filename.jpg"> just like an HTML, to no avail - I'll give you a nickel if you tell me what I'm doing wrong!

    Thanks

  9. #9
    Flashkit Jedi

    Join Date
    Jul 2001
    Location
    Coruscant System
    Posts
    3,426
    Make sure you have your text field html enabled, and then use this code:

    code:


    yourtextfield.htmlText = "<img src='yourimg.jpg'>";




    Now... about that nickel...

    XFM

  10. #10
    Special Member Tea_J's Avatar
    Join Date
    Dec 2000
    Posts
    991
    darn!!!!
    Xurion_Flash_Man you weasel!! you're fast mate!! argg.. im too late for the nickel!!!!! ARGG!!!!!

    lol
    tea

  11. #11
    Flash Fan, Non-Blonde
    Join Date
    Apr 2004
    Posts
    27
    that nickel's getting polished right now... can't seem to make it work! Here's the top of my file

    textField=<font color="#0066FF">julie deamer
    founding director
    ---------------------------------------------</font>
    outpost's founding director julie deamer has a proven track record of creating and guiding successful art endeavors supporting contemporary artists. She has been working within the field of contemporary visual art for nine years as an educator, curator, writer, and fu
    bless you for your patience!

  12. #12
    Flashkit Jedi

    Join Date
    Jul 2001
    Location
    Coruscant System
    Posts
    3,426
    Post the fla...

    XFM

  13. #13
    Flashkit Jedi

    Join Date
    Jul 2001
    Location
    Coruscant System
    Posts
    3,426
    Balls to that, I'm back already with a nickel-worthy example

    Hope this helps.

    XFM
    Attached Files Attached Files

  14. #14
    Flash Fan, Non-Blonde
    Join Date
    Apr 2004
    Posts
    27
    Here ya go. . .

    http://www.baileycreative.com/OUTPOSTX.fla

    the source for julie deamers bio is:
    http://www.baileycreative.com/deamer.txt

    and the image I need in the body of that text is
    http://www.baileycreative.com/deamer.jpg

    show me the magic!

  15. #15
    Flash Fan, Non-Blonde
    Join Date
    Apr 2004
    Posts
    27
    Master Xurion:

    Your swf file produced no grasshopper? Just the text. God I feel like a novice when I come to these boards.

    um. . .
    Grasshopper.

  16. #16
    Flashkit Jedi

    Join Date
    Jul 2001
    Location
    Coruscant System
    Posts
    3,426
    What version of flash you usin?

    XFM

  17. #17
    Flash Fan, Non-Blonde
    Join Date
    Apr 2004
    Posts
    27
    Flash MX, MAC

  18. #18
    Flashkit Jedi

    Join Date
    Jul 2001
    Location
    Coruscant System
    Posts
    3,426
    The img tag came along with mx 2004. Sorry, should have checked sooner.

    XFM

  19. #19
    Special Member Tea_J's Avatar
    Join Date
    Dec 2000
    Posts
    991
    what? no nickle? hehe.

    yep..flashMX 2004 supports the <img> tag.. however, you dont need the FlashMX2004 to VIEW dynamic text fields with image tags.. what you need really is the latest version of flash player...

    Basically, you can still include your image in your text, and although you dont see the image in your old version of flash, people with flash player 7.---something will see it juz fine..

    tea

  20. #20
    Flash Fan, Non-Blonde
    Join Date
    Apr 2004
    Posts
    27
    I wish I had a billion nickels for you two!

    Thanks,

    BaileyBoy

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