Jump to content
Fórum Script Brasil
  • 0

Flash carregar html


Luiz Quintana
 Share

Question

Olá Boa noite.

Seguinte eu vi em muitos lugares o Flash carregando o XML, porem o HTML eu não consegui achar. usei esse codigo aqui para testar o carregamento do XML.

package {
import flash.display.MovieClip;
import flash.net.URLLoader;
import flash.events.Event;
import flash.net.URLRequest;
import flash.text.TextField;
import flash.text.StyleSheet;
public class banner extends MovieClip {
private var txt:String;
public function banner() {
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onComplete);
loader.load(new URLRequest("datos.xml"));
}
private function onComplete(evento:Event):void{
var datos:XML = new XML(URLLoader(evento.target).data);
texto.htmlText = datos.texto;
}}}
o mesmo funciona..
aqui esta o xml de exemplo
<?xml version="1.0" encoding="utf-8"?>
<datos>
<texto><![CDATA[<h1>teste</h1>
]]>
</texto>
</datos>
porem oque eu gostaria de saber se há uma possibilidade do flash carregar o html, ou ate mesmo o xml carregar o html

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Forum Statistics

    • Total Topics
      149.8k
    • Total Posts
      646.6k
×
×
  • Create New...