Duplicate scene without instancing

  • Mvespa
  • Newbie
  • Newbie
  • Mvespa
  • Posts: 14

Post 3+ Months Ago

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

Post 3+ Months Ago

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

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
  • Mvespa
  • Newbie
  • Newbie
  • Mvespa
  • Posts: 14

Post 3+ Months Ago

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 13 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.