Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

My QUIZ is not executing

Posted on 2004-09-18
3
Medium Priority
?
207 Views
Last Modified: 2010-04-03
I Created a  Quiz similar to one of the flash templates, It works perferctly when I use it as a stand alone file (when I lunch it seperatly) , but when I link it to other swf files using these lines , it loads but does not function at all

on(release) {
  loadMovie("Quiz.swf",this);
}

please help
0
Comment
Question by:nawrs
3 Comments
 
LVL 4

Accepted Solution

by:
mrdilliard earned 500 total points
ID: 12092969
inside Quiz.swf, you might be pointing to _root a lot, which is going to cause problems. Whenever you load a movie inside of another movie, Flash thinks that the movie that loaded the other one is the _root, so any pointers to _root from the loaded movie will be wrong.

There's two ways to fix this, the first way being easiest:

1. Put this._lockroot = true; on your first frame of Quiz.swf, and any references to _root will point to the _root of Quiz.swf

2. You could also make a global variable on the first frame, like so:
_global.quiz = this;

That way, you can change anywhere where you say _root to quiz, and it should work, if that's the problem.


Definitely try solution #1 first, since it doesn't require nearly as much code.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to how to record live broadcast.
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.
Suggested Courses

972 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