Skip to content

How can I use gestouch in starling2 and normal swf file with together ? #104

@yooni126

Description

@yooni126

I used gestouch in a normal swf file.
also I used gestoch in my starling 2 app with these codes:

Gestouch.inputAdapter = new NativeInputAdapter(stage); _starling2TouchHitTester = new Starling2TouchHitTester(); Gestouch.addTouchHitTester(_starling2TouchHitTester, -1); Gestouch.addDisplayListAdapter(DisplayObject, new StarlingDisplayListAdapter());

Now I want to load my swf file with nativeOverlay in starling2 with this code:

_mLoader = new Loader(); var mRequest:URLRequest = new URLRequest("drawer.swf" + "?nf=" + getTimer()); _mLoader.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, onCompleteHandler); _mLoader.load(mRequest); private function onCompleteHandler(loadEvent:flash.events.Event):void { var _designMain:object = loadEvent.target.loader.content; }

but when i load it , I have this error:

ReferenceError: Error #1065: Variable NativeDisplayListAdapter is not defined.
at org.gestouch.core::Gestouch$/org.gestouch.core::gestouch_internal::createGestureTargetAdapter()
at org.gestouch.gestures::Gesture/set target()
at org.gestouch.gestures::Gesture()
at org.gestouch.gestures::AbstractContinuousGesture()
at org.gestouch.gestures::TransformGesture()
at Main()[E:\Flash\Drawer_Mobile\Main.as:277]

Now this is my question : How can I use gestouch in starling and normal swf file with together ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions