开发者

Actionscript 2 Scope

开发者 https://www.devze.com 2023-01-25 22:58 出处:网络
Scene 1 - Layer 1 import mx.xpath.XPathAPI; fscommand2(\"SetQuality\", \"high\"); var apipath = \'http://www.example.net/api/xml\';

Scene 1 - Layer 1

import mx.xpath.XPathAPI;
fscommand2("SetQuality", "high");
var apipath = 'http://www.example.net/api/xml';
var time;
var times = new Array();

What will be available/set in Scene 2 - Layer 1? Do I need to import mx.xpath.XPathA开发者_C百科PI in each scene I want to use XPath?


if you are writing this on the timeline, you will to use the import statement on each keyframe that references your class. so, forget scenes, you have to add your imports to each required keyframe :)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号