Duplicate scene without instancing

  • Mvespa
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Nov 04, 2004
  • Posts: 14
  • Status: Offline

Post November 22nd, 2004, 12:10 pm

Hello! I'm duplicating a scene, wich have some actionscript to read XML.

I want to duplicate it, to put the second scene reading another XML file, but after the duplication I correct the code on the second scene and it also change the code on the first scene.

How can I make this without instancing the first scene, being both scenes independent :?:
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 22nd, 2004, 12:10 pm

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 1254
  • Loc: Ro
  • Status: Offline

Post November 23rd, 2004, 6:35 am

why dont you make only one function for reading the xml
and call it with a parameter ?
i.e. :
function ReadXML(fileName)
{
// do the xml reading from fileName
}

and when u call it :
ReadXML("file1.xml"); //or whatever xml u want to read
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”
  • Mvespa
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Nov 04, 2004
  • Posts: 14
  • Status: Offline

Post December 2nd, 2004, 7:21 am

Hi ice.
Yap, it's a good idea, I'll implemente the solution that you sugest, it possible increase the processing speed.

Thanks for the tip! :)

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 50 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.