AS3中的“Leftparen before dot”噩梦

时间:2017-05-14 07:11:48

标签: actionscript-3 flash flex adobe

尝试使用一些找到的源代码为Adobe Connect创建自定义窗格。

需要在大约同步连接器中添加几行,然后我得到的错误应该是“leftparen before dot”。

import com.adobe.sync.components.SyncConnector;
import com.adobe.sync.events.SyncSwfEvent;

//Define you SyncConnector
var connector:SyncConnector;

//Add an init function so the Flex wrapper can pass the connector
function init(c:SyncConnector):void
{
    connector = c;

}   

/* Drag and Drop
Makes the specified symbol instance moveable with drag and drop.
*/

Expo.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);

function fl_ClickToDrag(event:MouseEvent):void
{
    Expo.startDrag();
}

stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);

function fl_ReleaseToDrop(event:MouseEvent):void
{
    Expo.stopDrag();
}

function SyncConnector.dispatchSyncMessage(event:MouseEvent)
function SyncConnector.syncMessageReceived(event:MouseEvent)

0 个答案:

没有答案