[COLOR=black][FONT=Arial]I would greatly appreciate some help here, guys. This forum seems brimming with knowledgable people so I’ve decided to stop pulling hair out about this strange problem.[/FONT][/COLOR]
[COLOR=black][FONT=Arial]The code is small…[/FONT][/COLOR]
[COLOR=black][FONT=Arial]if (prnt.orientation == "landscape") {[/FONT][/COLOR]
[COLOR=black][FONT=Arial] _root.createEmptyMovieClip("prntTemp", -16384); // load clip on bottom most depth[/FONT][/COLOR]
[COLOR=black][FONT=Arial] loadMovie("print.swf", _root.prntTemp); // send print.swf to stage[/FONT][/COLOR]
[COLOR=black][FONT=Arial] var exePrint:Function = function()[/FONT][/COLOR]
[COLOR=black][FONT=Arial] { trace ("exePrint() running.");[/FONT][/COLOR]
[COLOR=black][FONT=Arial] if ( _root.prntTemp.scopeVar != undefined )[/FONT][/COLOR]
[COLOR=black][FONT=Arial] {[/FONT][/COLOR]
[COLOR=black][FONT=Arial] trace("Print temp frame: " + _root.prntTemp._currentframe + " Print temp frame SCOPE var: " + _root.prntTemp.scopeVar);[/FONT][/COLOR]
[COLOR=black][FONT=Arial] prnt.addPage( -16384, {xMin:0, xMax:792, yMin:0, yMax:612}, {printAsBitmap:false}, _root._currentframe ); prnt.send();[/FONT][/COLOR]
[COLOR=black][FONT=Arial] clearInterval(ID);[/FONT][/COLOR]
[COLOR=black][FONT=Arial] }[/FONT][/COLOR]
[COLOR=black][FONT=Arial] }[/FONT][/COLOR]
[COLOR=black][FONT=Arial] if ( template == true ) { trace("Template condition cleared."); clearInterval(ID); ID = setInterval(exePrint, 256); }[/FONT][/COLOR]
[COLOR=black][FONT=Arial]// Here, I call setInterval because loadMovie takes some time[/FONT][/COLOR]
[COLOR=black][FONT=Arial]// once the loadMovie clip enters the first frame, it initializes the variable scopeVar, which passes the interval functions first and only condition[/FONT][/COLOR]
[COLOR=black][FONT=Arial]I authored a template that I would like to print out on user request. So, the main flash movie loads it to depth -16384, waits for the first frame (of the template movie) to be played, traces some variables from the template’s first frame, then runs addPage() with proper parameters to print the level the template was loaded on.[/FONT][/COLOR]
[COLOR=black][FONT=Arial]What the hell is wrong with me? Am I crazy, or should this be working. I’ve tried several variations.[/FONT][/COLOR]
[COLOR=black][FONT=Arial]Thanks in advance, guys! I look forward to being an active member here and helping out when I can.[/FONT][/COLOR]
[COLOR=black][FONT=Arial]Edit: Copy and paste the code into notepad. My lines go a little horizontal.[/FONT][/COLOR]
[COLOR=black][FONT=Arial]Edit: Just a snippet. The rest of the code is not pertinent to this situation[/FONT][/COLOR]
[COLOR=black][FONT=Arial]Josh[/FONT][/COLOR]