Solved

My QUIZ is not executing

Posted on 2004-09-18
3
192 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
YouTube Link 10 372
Can't play a movie website which used to be playable 4 703
Accessing Live Dynamic Stream 6 212
Running Mp4 or Flash Video 1 148
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…
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 live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…

734 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