Adobe Animate CC WebGL翻转状态

时间:2016-06-18 16:40:43

标签: flash onmousemove animate-cc

我正在创建一个WebGL画布,我正在尝试使用onmousemove片段为movieclip按钮创建翻转。

首先,我将按钮的翻转状态设置为不可见,如下所示:

// Regular callback:
var App = {
  method : function (value, callback) {
    if (typeof callback === 'function') {
      callback();
    } 
  } 
} 

App.method('Hey there', function(){
  console.log(
    'A regular callback was executed!',
    'And its context is Window:', 
    this === window
  );
});


// Context modified callback:
var App = {
  method : function (value, callback) { 
    if (typeof callback === 'function') {
      callback.call( this );
    } 
  } 
} 

App.method('Hey there', function(){
  console.log(
    'A context modified callback was executed!',
    'And its context is App:', 
    this === App
  );
});

然后我使用onmousemove函数使它在按钮上方变为可见,如下所示:

this.YesHOT.setVisible(false);

这样可行,但翻转状态仍然可见,不会关闭。如何让它关闭?

1 个答案:

答案 0 :(得分:0)

您实际上从未进行package main import ( "container/list" "fmt" ) type A struct { B int } func main() { l := list.New() for i := 0; i < 5; i++ { c := A{i} l.PushFront(c) } for e := l.Front(); e != nil; e = e.Next() { v := e.Value.(A) fmt.Println(v.B) } } 来电。如果我理解你的意图,那么代码应该是这样的:

this.YesHOT.setVisible(false)