HELP!!! Ripping hair situation!!

  • com_craze
  • Born
  • Born
  • com_craze
  • Posts: 4

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Tchuki
  • Mastermind
  • Mastermind
  • Tchuki
  • Posts: 1774
  • Loc: Edinburgh

Post 3+ Months Ago

http://www.kirupa.com/developer/mx/mult ... ictext.htm
  • com_craze
  • Born
  • Born
  • com_craze
  • Posts: 4

Post 3+ Months Ago

i tried that one it doesn't seem to work on external swf files
  • Tchuki
  • Mastermind
  • Mastermind
  • Tchuki
  • Posts: 1774
  • Loc: Edinburgh

Post 3+ Months Ago

In what way is it not working ?

How are you loading and wher are you loading your external swf ?
  • com_craze
  • Born
  • Born
  • com_craze
  • Posts: 4

Post 3+ Months Ago

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
  • Tchuki
  • Posts: 1774
  • Loc: Edinburgh

Post 3+ Months Ago

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 14 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.