Solved

My QUIZ is not executing

Posted on 2004-09-18
3
159 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 125 total points
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
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…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now