Dynamic text doesnt load in container

hey,
like the headline says i have a problem wit a dynamic text which i load from a .php file
Just in a container, if I load it on its own it works correctly
example: www.borgball.at.tc (Gästebuch)
www.borgball.at.tc/gaestebuch.swf
its the same file both times.
Structure: Main(root)-->container
code:
count = new LoadVars();
this.onEnterFrame = function(){
    if(main.maxscroll > 1){
        main_balken._visible = true;
    }else{
        main_balken._visible = false;
count.load("count_guestbook.txt?nocache="+new Date().getTime(), 0);
count.onLoad = function(ok_1) {
    if (ok_1) {
        counter.text = this.zahlguestbook;
    } else {
        counter.text = "0";
read = new LoadVars();
//read.load("guestbook.txt?nocache="+new Date().getTime(), 0);
read.load("auslesen.php?nocache="+new Date().getTime(), 0, "POST");
read.onLoad = function(ok_2) {
    if (ok_2) {
        mainframe.htmlText = this.main;
    } else {
        mainframe.htmlText = "<b><br>Keine Einträge vorhanden!</b><br>Text konnte nicht geladen werden!";
signal = 0;
stop();

this is the index.html page that i'm loading and it's not correct:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Powered by FlashVillage.com</title>
<style type="text/css">
<!--
* { margin:0; padding:0; }
html { height:100%;}
body {
height: 100%;
overflow:hidden;
.Stil1 {color: #000000}
-->
</style>
</head>
<body>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100%" height="100%" id="index" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="index.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#000000" />
    <embed src="index.swf" quality="high" bgcolor="#000000" width="100%" height="100%" name="index" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
  </object>
</body>
</html>

Similar Messages

  • Dynamic text doesnt appear chinese word!!!!

    dynamic text doesnt appear chinese word.
    i have try to set to arial unicode but still cant.
    Pls help.
    THx

    I change that line but is the same result....
    If I have one event it look like this:
    and if I fill all events look like this:
    as you can see it doesnt align vertical....its the same alignment on the two images.... here is my code again...
    var urlLDR:URLLoader=new URLLoader();
    urlLDR.addEventListener(Event.COMPLETE,f);
    urlLDR.load(new URLRequest("hallsXML.xml"));
    function f(e:Event) {
        var xml:XML =new XML(urlLDR.data);
        TXThall.autoSize = "center";
        TXThall.text = "";
        for(var i:uint=0;i<xml.hall.length();i++){
            TXThall.appendText(xml.hall[i]+"\n");
    TXThall.y= Math.floor((stage.stageHeight - TXThasll.textHeight) / 2);
    My page size of the project is 768 * 1024 and the position & size of the dynamic text is X: 384.0    Y: 332.5  W: 664.0    H: 405.9...
    I dont know if it helps that data....
    Thanks for responding and I hope you can help me figure out this...

  • Dynamic Text not loading when browser refreshes

    Hi All,
    For some reason, when the user refreshes the browser, the 'Welcome to our ....' dynamic text in the middle of my swf doesn't load in IE 8. I think this is somehow cache related maybe?
    I'm using a preloading container .swf to load the main movie swf, Interactive_StrategyMap.swf (located here: http://precorp.coop/fileshare/map/Interactive_StrategyMap.swf).
    You can view the behavior here: http://www.precorp.coop/fileshare/map/InteractiveStrategyMap.html
    Any ideas how I can fix this?
    Thanks,
    John

    Ned... Ahh, it appears to be happening to me because I have the Tools/Internet option in IE selected "Check for new version of stored pages" to Automatically.

  • Dynamic text not loading properly in web browser

    Please help - I have a dynamic text field in a movieclip
    inside a main movieclip - Loading works well within Flash and
    GoLive but once I load the file to the web browser the dynamic text
    no longer display - It loads undefined in the text box. However
    when I remove the movieclip from main movieclip text display no
    problem in browser.

    make sure to 'embed' the font, into the textField instance.
    select the instance on the Stage, look in the properties panel, and
    click the 'embed' button, skipping 'all' select the next four
    listings, and hit enter.

  • Add dynamic text to loader

    Hello,
    I'm trying to get dynamic text to parent to a loader. I don't get any errors, but once I add the code(commented out below) the text that is rendered through the renderText function stops showing up. Any ideas?
    //input Text
    line1Label.text = "Line 1";
    inputTextOne.text = "Custom Text: Line 1";
    stage.focus = inputTextOne;
    inputTextOne.addEventListener(TextEvent.TEXT_INPUT, renderText);
    var hasText: Boolean;
    function renderText (evt:TextEvent): void
    inputTextRender01.text = inputTextOne.text;
    hasText = true;
        if(hasText == true)
            //.BGContain.addChild(inputTextRender01); //trying to add the text to the loader BGContain....

    Hi Ned,
    Thanks for the input and feedback. I was able to get this to work by adding a complete event listener. The text shows up now. However, I have some images and now this text that I am trying to save as a PDF with alive PDF. The PDF saves fine, but the entered text does not save along with the PDF file. Right now I have the pdf saving everything in "BGContain" but for some reason I can't see the text in the pdf.
    //input Text
    line1Label.text = "Line 1";
    inputTextOne.text = "Custom Text: Line 1";
    stage.focus = inputTextOne;
    inputTextOne.addEventListener(TextEvent.TEXT_INPUT, renderText);
    inputTextOne.addEventListener(Event.COMPLETE, textComplete);
    var textToBitmap: BitmapData = new BitmapData(inputTextRender01.width, inputTextRender01.height, true, 0x00000000);
    function renderText (evt:TextEvent): void
    inputTextRender01.text = inputTextOne.text;
    function textComplete(event:Event)
        BGContain.addChild(inputTextRender01);
        textToBitmap.draw(inputTextRender01, new Matrix());

  • Please Help -- Dynamic Text Wont Load :-(

    Hi Gang,
    I've just written a quick mail form in Flash8Pro/PHP - the
    user enters their contact details & a message, and it sends it
    off to the specified email address.
    The feature works fine for the most part, but there's one
    little problem. The dynamic text field that confirms the message
    has been sent successfully isn't working properly. I'm using the
    following php code to send dynamic text back to the flash document
    saying the message has gone through OK:
    print "sendresult=Message Sent!";
    where sendresult is the name of the dynamic text field's
    variable.
    The strange thing is that the code works fine if the
    sendresult dynamic text field is inserted into the main flash
    document. It's only when I put the sendresult field into the movie
    clip that holds the flash mail form (including the button with the
    loadvariablesnum command), that the text won't update at all. I've
    tried:
    print "_root.enquirypage.sendresult=Data Sent!"
    and
    print "enquirypage.sendresult=Data Sent!", but neither of
    those make any difference.
    Any suggestions? Anybody know what's causing this problem?
    Any help would be very very appreciated - I know I could probably
    get around this by just setting the visibility of the dynamic text
    field on & off when necessary and keeping it in the main flash
    doc, but I'll be using this feature quite a lot and I'd really like
    a proper/versatile solution. In case it's necessary, the
    actionscript that sends the message off to the php is just:
    loadVariablesNum ("form.php", 0, "POST");
    Many thanks in advance gang,
    - Jay

    Your code loadVariablesNum ("form.php", 0, "POST"); will load
    your variable sendresult in level 0 - the main timeline. If you put
    the text field inside a movie clip it expects a local variable in
    that movie clip.
    Use _level0.sendresult or _root.sendresult as the dynamic
    field's variable.
    Or, instead of loadVariablesNum you could use loadVariables,
    like this:
    _root.enquirypage.loadVariables("form.php", "POST");
    or, if you make the call from a button inside the movie clip:
    this.loadVariables("form.php", "POST");
    /uamg

  • Dynamic text not loading

    Hello,
    I have a flash movie(cs4) that has dynamic text. I pulled the .swf into Dreamweaver cs4 and uploaded to the server but when the site is up and running it will not load (also some of the buttons won't work either). They are in the same file as the .swf so I'm not sure that the file locations are the issue. Does anyone know why they may not be loading. They load fine when testing in flash. Thanks you.
    Alicia

    The site isnt complete. There is a lot of templates from when I was in school and partial images- just for the sake of testing. www.atomlindesign.com
    I also need to fix other sizing issues and such. I am using Flash and DW CS4 the action script is 2.0 and my txt files, swf, and html files are in the same folder. I tried to publish my flash file into html file and upload to my server without using DW but it didnt work. So, I just pulled the swf into DW so I could have an html file to upload to server. I hope this makes sense. Thank you all for your help.

  • Dynamic text won't display

    I don't know if this is a bug. I have a movie that contains a
    dynamic text. When I run it, the text displays fine. But when the
    said movie is run through another movie clip (using loadMovie), the
    dynamic text won't display. Any ideas why? Thank you.

    dongzky wrote:
    > Actually, there was no code involved. The dynamic text,
    with borders around it,
    > I tried to put a value for testing. It works fine when
    run. But when called
    > by another movie clip, although the movie with the
    dynamic text still loads,
    > the text won't display anymore. Even the borders were
    gone.
    Than again, it's a bug on your end :)
    Dynamic text is a text container, it's to be use with
    dynamically given data, from
    source file or variable string on timeline. It's not meant to
    be for regular text
    display. You need to use Static text. The fact that you can
    see it it's just flash
    being tolerant but it only lasts for as long as the movie is
    getting more complex.
    You can get away with somethings even tho you should not be
    using them, does not
    mean they will work all the way. Dynamic text, as said above
    is for text that comes
    to flash from outside source and this is when it works best.
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Dynamic text property

    i have a dynamic text box with the name 'prodName'
    in the actions layer I have set prodName.text = "something";
    prodName.textColor = 0x000000
    When I test it, the color code works fine, but the dynamic
    text doesnt. I have tried htmlText on and off. Tried embedding and
    not embedding. Cant figure out why this wont work. I have done this
    before, what am I missing this time?
    chers
    mm66

    Well it turns out it was the embedding after all. Turning off
    ALL embeded fonts fixes it. So what happens with end users who do
    not have the fonts? I recall seeing some posts about that now
    cheers for the replys
    mm66

  • How can I load a .TXT file into a dynamic text box?

    I am sure that many people know how to load a .txt file into
    a dynamic text box. But I do not. I want to be able to reference a
    txt file from the server into the text box. So that when I change
    the text file it changes in the flash movie without even editing
    the flash file itself. Thank you.

    http://www.oman3d.com/tutorials/flash/loading_external_text_bc/
    I think this is the simplest way to go :)

  • Linking a class to a dynamic text field to load XML data.

    Hi,
    I'm quite new to ActionScript and would be grateful for any help here.
    I want to load text into a dynamic text field (called 'about_tab') using  a class depending on the language selected (by clicking on a flag icon)  by the user.
    I managed to get this to work when the ActionScript was written directly  in the timeline, but am having problems with doing the same thing via a  class.
    This is my class file:
    package
    import flash.display.SimpleButton;
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    import flash.net.URLRequest;
    import flash.net.URLLoader;
    import flash.events.Event;
    public class ChangeLang extends SimpleButton
    public function ChangeLang()
    addEventListener(MouseEvent.CLICK, switchLang);
    trace("ChangeLang class working");
    public function switchLang(event:MouseEvent):void
    var lang = event.target.name;
    var req:URLRequest = new  URLRequest("languages/"+lang+".xml");
    var loader:URLLoader = new URLLoader();
    var substance:XML;
    function xmlLoaded(event:Event):void
    trace("function xmlLoaded is running");
    substance = new XML(loader.data);
    about_tab.text =  substance.about_lbl;
    loader.addEventListener(Event.COMPLETE, xmlLoaded);
    loader.load(req);
    Here's one of my XML files (the other is the same except "About" is  written in German):
    <substance>
    <about_lbl>About</about_lbl>
    </substance>
    When I run it, it returns my trace statements that the class ChangeLang  and the function xmlLoaded are running, but no text appears in the  dynamic text field (I should/want to see the word 'About'). I get this  error message:
    1120: Access of undefined property about_tab
    The problem, I'm guessing, is in the part in red in my code. I think I need to target the text field in the display list by creating a  reference to it. If so, could someonw point out how I do this, or perhaps a tutorial that would help. I've tried adding the word stage (i.e.,stage.about_tab.text =  substance.about_lbl; ) but it still doesn't connect. I guess there's something really simple I'm missing, so I  apologize if this comes across as a stupid question
    Thanks for any help.

    Hello flashrocket!
    I'm also new to AS3 and I've just started using external classes and I think I know what you should do to put your code to work.
    Instead of using the text field you created inside your flash file, why don't you use the "TextField" class to create an instance of this object? It's the exact same thing as when you create and instantiate a new text field inside Flash.
    First, import flash.text.*; (includes classes like TextField, TextFieldAutoSize, TextFormat, TextFormatAlign, etc)
    Than you just have to create a var like
    public var about_tab : TextField;
    or
    public var about_tab : TextField = new TextField();
    then, to adjust the properties of this tab you use dotsyntax as if it where on your stage like:
    about_tab.x = 50; about_tab.alpha = .5; etc...
    you can even create a function to "config your textField"
              private function createAndConfigTextField() : void {
                   about_tab = new TextField(); //you only need this line if you
              // only typed something like "public var about_tab:TextField;
              // if instead you used "public var about_tab:TextField = new TextField(); outside
              // this function, just skip this first line because you already have an instance of
              // text field named "about_tab"...
                            about_tab.autoSize = TextFieldAutoSize.CENTER;
                   about_tab.background = true;
                   about_tab.border = true;
                   var aboutTextFormat : TextFormat = new TextFormat();
                   format.font = "Arial";
                   format.color = 0x000000;
                   format.size = 11;
                   format.bold = true;
                   format.align = TextFormatAlign.CENTER;
                   about_tab.defaultTextFormat = aboutTextFormat;
                   addChild(about_tab);
    This is just an example of what you can do... I hope you get it... let me know if you have any doubt...

  • Load multiple parts of an XML file into one dynamic Text Field

    Hi I am trying to load text from an external XML file into a dynamic text box. I have so far managed to load single parts of the XML file into a dynamic text field. I now want to be able to load different parts of the XML file (something similar to a string with appendText) into the same text Field.
    I have so far managed to achive this using the String and append text properties, but would like to use XML file to do it instead.
    Any tips please?
    Thanks

    In essence you can just do:
    TextField.text = XML.node1 + XML.node2;

  • Load Multiple Dynamic Text Files in Different frames on Maintimeline

    Hello!
    I have managed to load an external text file in one place one the maintimeline. I would like to do the same thing on other frames. When I go to duplicate the same thing that I did on the first one I get a duplicate textReq request. Do I need to give the textReq a more specific name for each section? When I did this the movie wouldn't even recognize and of the code that was working before.
    Can anyone help me with this code? Thanks in advance
    I am attaching link so you can see sections I am talking about. Also you will notice that the swf file I loaded won't go away. That's another problem...ugh.
    Here is link:
    http://www.sandraschmitt.com/coclico/index100.html
    Here is code on maintimeline:
    stop();
    import fl.transitions.*;
    import fl.transitions.easing.*;
    import flash.net.URLRequest;
    import flash.display.Loader;
    import flash.events.Event;
    import flash.events.ProgressEvent;
    function startLoad() {
        var swfLoader:Loader = new Loader();
        var swfRequest:URLRequest = new URLRequest("endlessCoclico3.swf");
        swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
        swfLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);
        swfLoader.load(swfRequest);
    function onCompleteHandler(loadEvent:Event) {
        addChild(loadEvent.currentTarget.content);
    function onProgressHandler(swfProgress:ProgressEvent) {
        var percent:Number = swfProgress.bytesLoaded/swfProgress.bytesTotal;
        trace(percent);
    startLoad();
    //handle events for buttons...
    collections.addEventListener(MouseEvent.CLICK, clickSection);
    raison.addEventListener(MouseEvent.CLICK, clickSection);
    stores.addEventListener(MouseEvent.CLICK, clickSection);
    news.addEventListener(MouseEvent.CLICK, clickSection);
    contact.addEventListener(MouseEvent.CLICK, clickSection);
    home.addEventListener(MouseEvent.CLICK, clickSection);
    function clickSection(evtObj:MouseEvent) {
        //trace shows what's happening... in the output window
        trace("The "+evtObj.target.name+" button was clicked!");
        //go to the section clicked on...
        gotoAndStop(evtObj.target.name);
    Here is code on actual frame where the dynamic text is working:
    //Loaded exteranl text fields
    var textLoader:URLLoader = new URLLoader();
    var textReq:URLRequest = new URLRequest("text_philosophy.txt");
    function textLoaded(event:Event):void {
        philosophy_txt.text = textLoader.data;
    textLoader.load(textReq);
    textLoader.addEventListener(Event.COMPLETE, textLoaded);

    Textfields:  What I like to do, mainly for peace of mind, is to have a layer that I dedicate to actionscript that only has code in frame 1 but it extends the full length of the timeline so that this code is available to every frame on any other layer.  In this frame I put variables and functions that can get used/shared wherever they happen to be needed.  I usually create another separate layer for actions types of actionscript... stuff that happens at the local frame level, like stop();, or like assigning a variable a new value, etc... things local to being at that frame/location.  So with that in mind
    In frame 1 on my shared-by-everyone layer, I'd probably declare the variable....
    var textReq:URLRequest;
    And when I get to a particular frame where I want to load a new textfield with data, I assign that var its value on the local actions layer...
    textReq = new URLRequest("text_philosophy.txt");
    along with the rest of the local execution regarding loading the file, etc...
    SWF's:
    Yeah, pretty much, and it becomes an object that has a home on the timeline, so if you move away from that frame the swf doesn't follow.

  • Dynamic Text in Externally Loaded swf

    hi. i have a dynamic text field in an externally loaded swf. Its a digital clock so i want the numbers to update in the dynamic text field.
    this is not my exact code but it is very similar. i show below that i add the loader.swf, and once its loading is complete, i can work on its movieclips and add event listeners to its buttons, etc. but i cannot change the dynamic text field (its "classic text" set to "dynamic text"). after running this, the text just stays empty as it is in the external swf).
    here is the sample code:
    var loader:Loader = new Loader();
    loader.load(new URLRequest("loader.swf"));
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded);
    function loaded(event:Event):void{
         addChild(loader);
         var loader_mc:MovieClip = (loader.content as MovieClip)
         loader_mc.myMovieClip.gotoAndStop(2);//***this works
         loader_mc.myButton_btn.addEventListener(MouseEvent.CLICK, clickMe);//***this works
         loader_mc.myText_txt.text = "12";//***this doesn't work******
    please help. thanks!

    Did you embed the font in the textfield--it needs to be done in the loaded swf when you create it? One other thing to check is that the color for the textfield is not the same as the background it sits on.

  • Loading swf file with dynamic text

    For a website I'm creating I'm going to have a main swf file
    that loads individual swf files for each page. Each page's swf file
    loads in external text files through dynamic text boxes so i can
    edit the website easily. To load the swf files into the main swf
    file I'm using the loader component. Everything works fine except
    thedynamic text boxes of the swf files that are nestled in the main
    one do not load properly. Instead, in each text box i get a message
    similar to this:
    _level0.NewsLoader.contentHolder.News1
    NewsLoader is the instance of the loader component, and News1
    is a variable called in through a dynamic text field from the html
    document entitled News1.html. The individual news swf file loads
    the text properly, but when the news swf file is loaded into the
    main swf file the text is replaced with the message above.
    Any suggestions?

    the problem might be due to the changed references if you
    load the movie into another one.
    is NewsLoader a MovieClip instance inside the main movie or
    inside the mc that is loaded into the main movie?
    If it resides inside the exteranly loaded movie, you will
    either need to use the lockroot attribute or use a relative
    reference to the News1 variable.
    Since the _level0 always points to the _root timeline (the
    one of the outer most movieclip) _level0 used in the external mc is
    different once the external movieclip is loaded into another movie.
    I suggest only using relative references, makes live much
    easier.

Maybe you are looking for

  • Calling webservices in a method

    Hi, After import the WSDL, how i can invoke a webservice on my activity, do you can give a example?

  • How do I include a 'submit' button so that clients can submit my form online?

    Once I have created my form and attached it to my website, how does a client submit it back to me?

  • Changing an encoded project

    I finished my 50min iDVD project and burned it to a disk. When testing the disk, I realize the mention color/size/fonts I chose do not work well on a TV. So I changed the menu settings and asked to burn a new DVD. The second time round, the buring on

  • CA98 - Task List is still used in inspection lots

    Hi, I've problem with the CA98 related to task list (Q). I've check a record only in the MAPL. I've execute the CA98 with the following parameters: SAP shows the following message "Task list is still used in ispection lots": What can i do?

  • DB Password Management

    Setup: Primary database and a physical standby database (READ ONLY). Users need to use the physical standby database for reporting purposes, BUT with very strict password management requirements that their password must be changed every 2 or 3 days.