Solved

Actionscript 2 Scope

Posted on 2010-11-21
1
334 Views
Last Modified: 2013-11-11
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.XPathAPI in each scene I want to use XPath?
0
Comment
Question by:iSteven
1 Comment
 
LVL 37

Accepted Solution

by:
CyanBlue earned 500 total points
ID: 34184395
No, you only need to import a class once preferably in the beginning of your movie... and I believe apipath, time and times should be available in scene 2 as well...  
Did you try it and have some problem with it???  You might want to explain it further in that case...

CyanBlue
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now