HELP!!! Ripping hair situation!!

  • com_craze
  • Born
  • Born
  • No Avatar
  • Joined: May 17, 2005
  • Posts: 4
  • Status: Offline

Post May 17th, 2005, 4:36 pm

hi,

i'm really stuck here. how do you load a .txt file into an
externally loaded swf file. i tried using this code for a button:

on (release) {
loadText = new loadVars();
loadText.load("text1.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
newsBox.html = true;
newsBox.htmlText = this.myNews;
}
};
}

where i start my text with myNews= followed by my text. when i
publish my file however, i get these errors in my output box:

**Warning** Symbol=content_home, layer=text, frame=1:Line 2: The
identifier 'loadVars' will not resolve to built-in object 'LoadVars'
at runtime.
loadText = new loadVars();

**Warning** Symbol=content_home, layer=text, frame=1:Line 2: The
identifier 'loadVars' will not resolve to built-in object 'LoadVars'
at runtime.
loadText = new loadVars();

**Warning** Symbol=content_home, layer=text, frame=1:Line 2: The
identifier 'loadVars' will not resolve to built-in object 'LoadVars'
at runtime.
loadText = new loadVars();

Total ActionScript Errors: 3 Reported Errors: 3

i tried to change loadVars to LoadVars but either way i get nothing.
how do i solve this issue?? i need to know how as soon as possible

cheers :?: :?: :?:
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 17th, 2005, 4:36 pm

  • Tchuki
  • Mastermind
  • Mastermind
  • No Avatar
  • Joined: Sep 30, 2004
  • Posts: 1774
  • Loc: Edinburgh
  • Status: Offline

Post May 18th, 2005, 12:49 am

http://www.kirupa.com/developer/mx/mult ... ictext.htm
  • com_craze
  • Born
  • Born
  • No Avatar
  • Joined: May 17, 2005
  • Posts: 4
  • Status: Offline

Post May 18th, 2005, 1:34 am

i tried that one it doesn't seem to work on external swf files
  • Tchuki
  • Mastermind
  • Mastermind
  • No Avatar
  • Joined: Sep 30, 2004
  • Posts: 1774
  • Loc: Edinburgh
  • Status: Offline

Post May 18th, 2005, 6:51 am

In what way is it not working ?

How are you loading and wher are you loading your external swf ?
  • com_craze
  • Born
  • Born
  • No Avatar
  • Joined: May 17, 2005
  • Posts: 4
  • Status: Offline

Post May 18th, 2005, 5:55 pm

hi,

i get nothing when i test it. and they said in the output box:

Target not found: Target="undefined" Base="_level0.instance4".

i am loading the swf file into my main movie using:

on (release)
{
if (_root.load == Number(_root.load))
{
loadMovieNum("desalination.swf", _root.load);
}
else
{
_root.load.loadMovie("desalination.swf");
} // end if
}
  • Tchuki
  • Mastermind
  • Mastermind
  • No Avatar
  • Joined: Sep 30, 2004
  • Posts: 1774
  • Loc: Edinburgh
  • Status: Offline

Post May 18th, 2005, 11:27 pm

Target="undefined"

Have you identified your mc you use to load in your swf and the dynamic text box that loades the text correctly ?


Your IF statement appears to be doing the same process two ways.

loadMovieNum("desalination.swf", _root.load);
_root.load.loadMovie("desalination.swf");

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 49 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.