开发者

Actionscript 2 Scope

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜