-
Senior Member
Which script are you using?
- The right of the People to create Flash movies shall not be infringed. -
-
Last edited by terptown; 10-31-2005 at 04:23 PM.
-
Senior Member
From what I see there is no difference to the script in my tutorial except for centering the window. I checked on my site and I can drag the window.
- The right of the People to create Flash movies shall not be infringed. -
-
ya i know thats whats driving me crazy...i had it working correctly now it closes when u try to drag it...funny
-
Senior Member
Download the version from the tutorial and start with that.
- The right of the People to create Flash movies shall not be infringed. -
-
Hi,
I just want to ask another question about popup windows and accessing variables. Basically, I create a window, having a swf file as content, and want to assign variables to that swf file.
Perhaps an example would help more:
PHP Code:
function popup(wName:Object,wText:String, wContent:String, xSiz:Number, ySiz:Number)
{
yPos=275;
this[wName]= mx.managers.PopUpManager.createPopUp(this, mx.containers.Window, false, {closeButton:true});
this[wName].title = wText;
this[wName].setSize(xSiz, ySiz);
this[wName].contentPath = wContent;
var xvalue:Number=Math.floor(Number(w)/2)-xSiz/2;
this[wName].move(xvalue, yPos - ySiz / 2);
var handleCloseObject:Object = new Object();
handleCloseObject.click = function(evt:Object)
{
evt.target.deletePopUp();
};
this[wName].addEventListener("click", handleCloseObject);
}
I call this function to create the popup (named 'tw') like e.g.
PHP Code:
_root.popup("tw","Title", "movie1.swf",400, 200);
So far so good.
Now in the movie1.swf, I have an variable named 'myvar'.
How can I assign a value to 'myvar'?
I've tried
PHP Code:
_root.tw.myvar="123";
but nothing happens.
Also I am confused about the depth/level of these popups. Do I consider them to be like moveclips?
help appreciated
Patrick
-
Senior Member
Please start a new thread.
- The right of the People to create Flash movies shall not be infringed. -
-
closing window in flash 8
hello guys, i having problem in closing browser window i tried this one getURL('javascript:self.close()'); but it wont work in firefox IE only? anyone could help me
Last edited by shendel101; 10-09-2007 at 07:08 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|