A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: disserpring dynamic html text on reload

Threaded View

  1. #1
    Senior Member
    Join Date
    Jul 2003
    Location
    Brighton,UK
    Posts
    249

    disserpring dynamic html text on reload

    i have come across a strange problem

    i have a html text box in a movie and have the following html text to color some of the text differently:

    <font color="#0000FF">my name is </font><font color="#FF0000">kevin</font>
    it colors "my name is" blue & "kevin" red

    here is my AS:

    this.onLoad = function() {
    this.head.htmlText = '<font color="#0000FF">my name is </font><font color="#FF0000">kevin</font>';
    };

    you can view the swf here:
    http://www.jamesmowbray.com/flash/headertest.swf
    or the swf in a html page here:
    http://www.jamesmowbray.com/flash/headertest.html
    the problem happends when you reload the page or visit again the page twice, the text dissapers on the next visit just reload to see go! i have tested it on firefox and safari on the mac + firefox on the PC

    but it seems to be fine in IE on the PC & MAC

    as this i going to header on a html site people will be click back to pages and then they will presented with a blank header

    it works fine if i test in flash but as soon as i look at it embedded in a html page it disappears.

    but if you look at swf directly in the browser you can see the text.

    i tough it might of been my html so i have used that html written by flash and it still doe it!

    you take a look at fla here
    http://www.jamesmowbray.com/flash/headertest.fla

    i am useing MX 2004
    Last edited by lomokev; 12-07-2005 at 07:16 AM. Reason: made a mistake with what browsers it works and dose not work in

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