Note that there are some explanatory texts on larger screens.

plurals
  1. PODynamic text doesnt change in server but does in localhost
    primarykey
    data
    text
    <p>I'm using Flash CS5 with AS3. It's a bit of a weird situation. I have a Dynamic Text in a MovieClip with an instance name of 'message_text'. That text initially holds the value "Loading...".</p> <p>Then I have a VideoLoader class that loads and controls an external SWF video:</p> <pre><code>public function loadVideo (video, beginframe, endframe, isanswer, container) { ... this.messagePanel = new MessagePanel(); this.container.addChild(messagePanel); loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadHandler); loader.load(new URLRequest(video)); } function onProgressHandler(event:ProgressEvent) { var percent:Number = Math.round(event.bytesLoaded/event.bytesTotal*100); var st_percent:String = String(percent); this.messagePanel.message_text.text = st_percent+"% loaded"; if (percent == 100) { this.container.removeChild(this.messagePanel); } } </code></pre> <p>This works PERFECT when I test it in flash and when I export the SWF and try it on my computer. BUT when I upload it to the server, the messagePanel movieclip doesn't show the text I add in the onProgressHandler() method. It does show text if I add it directly on the stage.</p> <p>What could be the problem here? I don't understand. Fonts are already embedded. Even if I try with a font like Arial, still doesn't work. The value of percent is correct since it removes the child when it reaches 100 in the server too. And again, the text functionality works perfect in localhost, but not in the server.</p> <p>Thank you very much for your help.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload