Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Actionscript 2 Scope

Posted on 2010-11-21
1
Medium Priority
?
348 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 2000 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
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 how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses

604 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