A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [RESOLVED] img src not working in flash

  1. #1
    Junior Member
    Join Date
    Nov 2006
    Posts
    7

    resolved [RESOLVED] img src not working in flash

    I am loading a .txt file in to flash with the following:

    var myLV:LoadVars = new LoadVars ();
    myLV.load("bio3.txt");

    myLV.onLoad = function(success) {
    if(success) {
    main_txt.htmlText = myLV.main_txt;
    }
    }

    There is also AS within this movie clip:

    txtBox.autoSize = "left"
    myVars = new LoadVars()
    myVars.onData = function(data){
    txt = data
    trace(data)
    }
    myVars.load("bio3.txt")

    First, do I need both AS to load this .txt file?

    Second, images will not load using this tag within the .txt:

    <img src="astoria-5.gif"/>

    Please advise your thoughts, and thank you in advance.

    Site: http://www.brucecanafax.com (problem is in third page of Biography section)

  2. #2
    Ryan Thomson EvolveDesigns's Avatar
    Join Date
    Oct 2001
    Location
    British Columbia
    Posts
    3,338
    change
    <img src="astoria-5.gif"/>

    to
    <img src='astoria-5.gif'/>

    might work now, double-quotes will mess with flash if used inline like that.

    good luck!
    Evolve Designs Interactive Media
    the natural selection

  3. #3
    Junior Member
    Join Date
    Aug 2010
    Posts
    1

    problems with textarea component

    How did you do that?
    I have problems with textarea component.
    The scroll bar does not reach until the below arrow.

    Look at this sample...
    http://imasumaq.webcindario.com/pp/scroll.html

    thanks!

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