Solved

My QUIZ is not executing

Posted on 2004-09-18
3
196 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
[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
3 Comments
 
LVL 4

Accepted Solution

by:
mrdilliard earned 125 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

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…
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…
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.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

628 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