what is "DocArea"?

Publishing Flash documents by embedding them in Flash movies
Post Reply
AlionGuy
Posts: 1
Joined: Fri Apr 04, 2014 3:24 pm

what is "DocArea"?

Post by AlionGuy » Fri Apr 04, 2014 3:37 pm

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.

staff
Posts: 281
Joined: Sat Dec 15, 2007 4:48 pm

Re: what is "DocArea"?

Post by staff » Fri Apr 18, 2014 3:24 am

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.

Post Reply