A Flash Developer Resource Site

Results 1 to 11 of 11

Thread: Desparate! Willing to pay for help :)

  1. #1
    Junior Member
    Join Date
    May 2008
    Posts
    5

    Desparate! Willing to pay for help :)

    Hey everyone,

    I've read a lot of posts on this topic and have tried a bunch of different things, but I can't get it to work.

    I have a movie with a dynamic text are that pulls from an external text file on the server. The HTML I'm using in the text file works, except for the <img> tag. I can't get it to render. I even tried putting extra blank lines in the text file to "make room" for the image as someone had suggested.

    Here's the test page: http://www.sprucenubblefarm.com/ACT/index.html

    Here's the text file: http://www.sprucenubblefarm.com/ACT/newsflash.txt

    I have been pulling my hair out with this one all day. Oh.. here's the actionscript for the dynamic text. and I'm using MX 2004 Professional ver. 7.2

    myData = new LoadVars();
    myData.onLoad = function() {
    myText.html = true;
    myText_txt.htmlText = this.myVariable;
    };
    myData.load("newsflash.txt");


    Will send $50 via PayPal to the first person who can fix this!

    Thanks,
    Amy

  2. #2
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    Hmm, using the exact same code and files, I can't make it not work. I'd suggest trying a different image, or putting that code into a new file and see if it works.

  3. #3
    Junior Member
    Join Date
    May 2008
    Posts
    5
    Yep, I tried both of those things, but it didn't work. I can't get any image to display, even if its the only thing in the text file. Thanks for trying though!

  4. #4
    Junior Member
    Join Date
    May 2008
    Posts
    5
    C'Mon - Nobody wants to make 50 bucks??

  5. #5
    OOP is one letter from OOPS kortex's Avatar
    Join Date
    Aug 2005
    Location
    New Hope, PA
    Posts
    2,668
    Is the image in the text file in the same folder as the HTML page where the SWF in?
    Jeremy Wischusen
    Flash - Flex - LAMP - Web Developer Purple Inc
    AS OOP FAQ-Best Practices Thread | Flashkit OOP Tutorials | Purple Inc (day job) | Blog


  6. #6
    Junior Member
    Join Date
    May 2008
    Posts
    5
    Yes it is.

  7. #7
    www.rajkataria.com rajkataria17's Avatar
    Join Date
    Mar 2008
    Posts
    120
    I found the solution for this. It works for me.

    I have sent you pm with my contact details...

    contact me asap so I can give you the solution for this issue.

    Raj

  8. #8
    Senior Member
    Join Date
    Oct 2004
    Location
    Biograd, Croatia
    Posts
    179
    make sure your jpg-s are not progressive...

  9. #9
    http://www.in3d.eu Kostas Zotos's Avatar
    Join Date
    Jul 2007
    Location
    Athens - Greece
    Posts
    408
    Hi all,

    I spot these 2 errors in variables:

    Error 1:
    There is a redundant suffix "_txt" in "myText" variable:
    Code:
    myData = new LoadVars();
    myData.onLoad = function() {
    myText.html = true;
    myText_txt.htmlText = this.myVariable;
    };
    myData.load("newsflash.txt");

    Error 2:
    In the external file in the: "myVariable" the "v" is in lower case (while in your script the "V" is in Upper case). In your .txt file is like this: "myvariable=This is..."

    ------------------------------
    Suggestions (how to fix):

    1) Modify your AS like this (remove the "_txt" of your "myText" variable)
    PHP Code:
    myData = new LoadVars();
    myData.onLoad = function() {
        
    myText.html true;
        
    myText.htmlText this.myVariable;  // Note the capital "V" in "this.myVariable"
    }
    myData.load("newsflash.txt"); 
    2) Fix also the "V" character's case in your .txt file so both "myVariable" in the .txt file and inside script to be written identical like:
    Code:
    myVariable=This is the area for the newsflash.  It is a simple text file which Dominic can update easily.
    <br>You can use HTML in here as well.  For example, you might want to make a word <b>bold</b> or <i>italic</i>.
    <br>You may also want to link to other pages on the site when writing a newsflash.  For example, if you're writing about a recent dredging prject, you can <u><a href='dredging.html'>link to the dredging page</a></u> for readers.
    <br><img src="bleh.gif">
    After fixing these 2 small errors the code normally should work..

    UPDATED: Possible reason for error maybe the equality "=" symbol in the <img src="bleh.gif">
    You may try to escape it with the url-encoded equivalent which is the HEX: %3D.
    I mean to write the image tag like this: <img src%3D"bleh.gif">

    Works well for me even without escaping it.. but just in case..

    Kostas
    Last edited by Kostas Zotos; 05-10-2008 at 01:51 PM.
    K. Zotos online portfolio: http://www.in3d.eu

  10. #10
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    Quote Originally Posted by rajkataria17
    I found the solution for this. It works for me.

    I have sent you pm with my contact details...

    contact me asap so I can give you the solution for this issue.

    Raj
    there is NEVER any reason to keep solution 'private' or PM a solution to a PUBLICLY posted question. We are here to help each other out..and well as build a community & knowledge base of helpful content.


    If you wanted to pay you should have posted in the freelance section here... if you expected or trying to solicit payment for an answer.. again..this is NOT the place for it. If posted in the PUBLIC ARENA.. it stays that way, unless the original poster moves it to a maying situation.

    Thanks

  11. #11
    www.rajkataria.com rajkataria17's Avatar
    Join Date
    Mar 2008
    Posts
    120
    weluna was willing to pay for the solution....

    that's why I didn't post the solution here...

    Best Regards

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