【问题标题】:AR With Printed Buttons带有印刷按钮的 AR
【发布时间】:2011-10-02 04:13:00
【问题描述】:
【问题讨论】:
标签:
augmented-reality
flartoolkit
【解决方案1】:
你只需要听什么时候以及什么标记组合是活跃的,并做出如下陈述:
private function onEnterFrame (evt:Event) :void
{
if (this.activeMarker_1 && this.activeMarker_2)
{
trace("no button is being pressed");
}
else if (this.activeMarker_1 && this.activeMarker_2 == null)
{
trace("answer: no");
}
else if (this.activeMarker_1 == null && this.activeMarker_2)
{
trace("answer: yes");
}
else if (this.activeMarker_1 == null && this.activeMarker_2 == null)
{
trace("both buttons are being pressed");
}
}