Solved

Actionscript 2 Scope

Posted on 2010-11-21
1
337 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

914 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