?
Solved

Actionscript 2 Scope

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
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…
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 how to load their YouTube profile onto Flash Media Live Encoder.
Suggested Courses

777 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