Page 1 of 1

what is "DocArea"?

Posted: Fri Apr 04, 2014 3:37 pm
by AlionGuy
hi. new to print2flash. need some help...

in the following chunk of code, regarding the line "if (doc && doc.DocArea)", what exactly is "DocArea"?

public function checkLoaded(event:TimerEvent):void
{
var doc:MovieClip = getDoc();

if (doc && doc.DocArea)
{
doc.init(contentwidth,contentheight)
loadTimer.stop();
visible = true
dispatchEvent(new Event(ONLOADEVENT))
}
}

public function getDoc():MovieClip
{
return content as MovieClip;
}


thx.

Re: what is "DocArea"?

Posted: Fri Apr 18, 2014 3:24 am
by staff
DocArea is a reference to a standard ScrollPane component instance located inside the Print2Flash document. It is used to display the document in a scrollable area.