Jump to content


Photo

help


  • Please log in to reply
3 replies to this topic

#1 Spy

Spy

    Young Padawan

  • Members
  • Pip
  • 83 posts

Posted 24 July 2005 - 07:09 AM

hey. I'm trying to add news box into my flash site with code:


System.useCodepage = true;
content.html = true;
myLoadVar = new LoadVars();
myLoadVar . load("content/homecontent.txt");
myLoadVar . onLoad = function(success){
if (success == true){
content.htmlText = myLoadVar.content;
}
};

and when i'm testing my movie, i see

_level0.content

btw. i made that homecontent.txt file

#2 dEcade

dEcade

    P2L Staff

  • P2L Staff
  • PipPipPipPip
  • 1,850 posts
  • Gender:Male
  • Location:Saskatoon, Saskatchewan
  • Interests:Guitar, Programming, Storm Chasing, Games (Designing and playing), Hockey, Photography

Posted 24 July 2005 - 10:04 AM

This is action script... shouldn't it go into the flash forum?

dEcade

#3 funkysoul

funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 24 July 2005 - 10:13 AM

This should be moved to flash forum :lol:
and that error happens, because you didn't assigned a variable name to your textbox :D

#4 Spy

Spy

    Young Padawan

  • Members
  • Pip
  • 83 posts

Posted 24 July 2005 - 04:12 PM

ok, thanks. Now i have another problem :s. My buttons're not working. When i click "Info" button it do... nothing :S. here's code:

on(release)  {
	unloadMovie(_root.content);
	loadMovie("info.swf", _root.content);
}



edit:

OK, fixed :D

Edited by Spy, 24 July 2005 - 05:01 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users