Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,507 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,695 people online right now. Registration is fast and FREE... Join Now!




Swf linking problem

 
Reply to this topicStart new topic

Swf linking problem

Jonson
10 Aug, 2008 - 08:25 PM
Post #1

New D.I.C Head
*

Joined: 17 Apr, 2008
Posts: 40

i am using this code when i press the Create Button:
var swf:URLRequest =new URLRequest("GameCreate.swf");
loader1.load(swf);
addChild(loader1);
loader1.x = 255;
loader1.y = 200;

This is when i start:
IPB Image

This is after i press Create Button:

IPB Image

This is after i press OK:(i purposely set the position to show u that i am using the method above which i dont know is it correct)

IPB Image

Now, I going to press the quit button, How am i gona to remove the child when THIS child is on the previous FLA file? or should i just navigateToURL?



User is offlineProfile CardPM
+Quote Post

Jonson
RE: Swf Linking Problem
11 Aug, 2008 - 08:17 PM
Post #2

New D.I.C Head
*

Joined: 17 Apr, 2008
Posts: 40

Hello, anyone there? need reply asap. thx.
User is offlineProfile CardPM
+Quote Post

BetaWar
RE: Swf Linking Problem
11 Aug, 2008 - 08:29 PM
Post #3

#include <soul.h>
Group Icon

Joined: 7 Sep, 2006
Posts: 2,026



Thanked: 81 times
Dream Kudos: 1175
My Contributions
Well, it looks like you are creating a new movieclip over the standard thing that hols the game in it (correct?). If that is the case when you want to exit the game just delete the movieclip and when you want to open a new game just create a new movieclip to attach it to.

Hopefully that is what you are looking for. If no tpost again and I'll try to help out more.
User is offlineProfile CardPM
+Quote Post

Jonson
RE: Swf Linking Problem
12 Aug, 2008 - 05:57 PM
Post #4

New D.I.C Head
*

Joined: 17 Apr, 2008
Posts: 40

i cant remove the movieclip because all of them are in 3 different fla files. For example, the 1st fla file load the 2nd fla file, Then i press button IN the 2nd fla file to load the 3rd fla file. So , i am adding child in 1st fla and 2nd, how am i going to remove the movieclip when there is no child in 3rd fla file? Hope u understand what i mean.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 08:41PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month