|
-
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
-
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.
-
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!
-
C'Mon - Nobody wants to make 50 bucks??
-
OOP is one letter from OOPS
Is the image in the text file in the same folder as the HTML page where the SWF in?
-
-
www.rajkataria.com
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
-
Senior Member
 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
-
make sure your jpg-s are not progressive...
-
http://www.in3d.eu
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.
-
www.rajkataria.com
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|