Home Tutorials Forums Articles Blogs Movies Library Employment Press
Prev Previous Post   Next Post Next
Old 10-05-2004, 08:33 PM   #1
Work In Progress
Join Date: Aug 2004
Posts: 36
Send a message via AIM to nytyme Send a message via Yahoo to nytyme
Default Window class & passing variables.

I'm using the Window component to load a SWF into popup window.

import mx.managers.PopUpManager;
import mx.containers.Window;
var myWin:MovieClip;
function initiateWindow(wWdw,wTitle,wPath,wHeight,wWidth,wX,wY)
	wWdw = PopUpManager.createPopUp(_root, Window, true, {closeButton:true, title: wTitle, _height: wHeight, _width: wWidth, _x: wX, _y: wY,contentPath:wPath});
	var twListener:Object = new Object();
	twListener.click = function(evt:Object){
	wWdw.addEventListener("click", twListener);
	wWdw._root.myText.text = "hello";
	wWdw._lockroot = true;
	return wWdw;
// button code:
	aTW = initiateWindow(_root.myWin,"PopUp", _root.FLASHPATH + "DragDropTree.swf" ,450,600,100,0);
this is working, probably not the best setup though. However, I am trying to figure out how to pass variables to the loaded SWF. I tried making the button code this:
aTW = initiateWindow(_root.myWin,"PopUp", _root.FLASHPATH + "DragDropTree.swf?MYVAR=Hello" ,450,600,100,0);

but i am told it can't find "DragDropTree.swf?MYVAR=Hello"
without the querystring, it works.

can anyone help me out?

I'd really like to continue using createPopUp because of the X button and modal abilities.
nytyme is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 02:18 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.