tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/239-loading-xml-kills-stop-scripts-in-symbolRobotlegs: Discussion 2018-10-18T16:35:21Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/45803782011-01-05T18:20:28Z2011-01-05T18:20:31ZLoading XML kills stop() scripts in Symbol<div><p>Ok, here are some additional informations:<br>
In my model, in the onXMLloaded() function if I do this:<br>
dispatchEvent(new ModelEvent(ModelEvent.MODEL_READY));</p>
<p>the file does not work</p>
<p>but if I do:<br>
TweenMax.delayedCall(0, dispatchEvent, [new
ModelEvent(ModelEvent.MODEL_READY)]);</p>
<p>everything works great. Why is a zero time(have a look at the
'0') delay better than dispatching directly? Is the short time
TweenMax needs to setup the objects for a no-time call enough to
make a difference? Jezz I have no clue what is going on.</p></div>Mark A.tag:robotlegs.tenderapp.com,2009-10-18:Comment/45803782011-01-07T01:51:02Z2011-01-09T15:52:19ZLoading XML kills stop() scripts in Symbol<div><p>I think delayedCall waits one frame. But I am not really
sure.</p></div>Weyerttag:robotlegs.tenderapp.com,2009-10-18:Comment/45803782011-01-07T08:47:19Z2011-01-07T08:47:20ZLoading XML kills stop() scripts in Symbol<div><p>Fair enough - but isnt it also true that loading xml might also
need 1 frame - at least?</p></div>Mark A.tag:robotlegs.tenderapp.com,2009-10-18:Comment/45803782011-01-07T10:31:18Z2011-01-09T15:52:20ZLoading XML kills stop() scripts in Symbol<div><p>Good question, I always assumed it's a blocking method the
parsing of XML. I wouldn;t now.</p></div>Weyerttag:robotlegs.tenderapp.com,2009-10-18:Comment/45803782011-01-07T10:36:56Z2011-01-07T10:36:57ZLoading XML kills stop() scripts in Symbol<div><p>Parsing yes - but loading is asynchronous by nature, isn't it? I
tried it locally and on a server environment. If I trigger it after
loading & parsing xml it's no more working. I will stick with
my work around... feels wrong</p></div>Mark A.tag:robotlegs.tenderapp.com,2009-10-18:Comment/45803782011-01-07T12:35:13Z2011-01-09T15:52:20ZLoading XML kills stop() scripts in Symbol<div><p>Yes, better. Always some silly workaround in Flash projects!</p></div>Weyert