Again you need to have your MovieClip inside the Library not on stage and contentPath takes only a String not a MovieClip.
so you have to do the following : myListingScroll.contentPath = "listingTextMC"; // this does the same as attachMovie but inside the ScrollPane var listingMC:MovieClip = myListingScroll.content; // make a reference of the movieClip you just added to the ScrollPane var myTextFld:TextField = listingMC.Listing_Text; // make a reference of the textField inside your movieClip var dataLV:LoadVars = new LoadVars(); dataLV.onLoad = function(success) { if (success) { myTextFld.text = dataLV.Listings; } }; dataLV.load("listing.txt"); Alain -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Abaffy Sent: 1 mars 2007 13:09 To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Adding Dynamic Text to Scroll Pane Hello, Thank you for the warm welcome, I am glad to be here. The problem unfortunately still exists. Here is the code I now have. Data = new LoadVars(); Data.load("/listing.txt"); Data.onLoad = function (success) { if (success) { ListingTextMC.Listing_Text = Data.Listings; MyListingScroll.contentPath = ListingTextMC; MyListingScroll.Refresh(); } } ListingTextMC is a movie clip and all that is in it is a dynamic textbox with the name Listing_Text And there is no content in the scroll pane. I added a dynamic text box to the same frame as the scrollpane and I can put the value of Data.Listing into it so I know that I am reading the file correctly. What I am I doing wrong here?? __________________________________________________ Hello Steve and welcome to flashcoders, the proper way to set content for a ScrollPane is as follow : MyScrollPane.contentPath = "myContent"; where myContent is a MC in your library with a linkage ID "myContent" So what you should do is create a MovieClip with your dynamic text in it and export it for ActionScript with linkage ID "myContent" Look up the ScrollPane methods in Flash help as well for other tips. Hope this helps Alain _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.5/706 - Release Date: 2007-02-28 16:09 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.5/706 - Release Date: 2007-02-28 16:09 _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com