Solved

Actionscript 2 Scope

Posted on 2010-11-21
1
345 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to how to record live broadcast.

688 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