A Flash Developer Resource Site

Page 3 of 3 FirstFirst 123
Results 41 to 48 of 48

Thread: Flash 8's window component

  1. #41
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Which script are you using?
    - The right of the People to create Flash movies shall not be infringed. -

  2. #42
    Junior Member
    Join Date
    Nov 2001
    Posts
    23
    Last edited by terptown; 10-31-2005 at 04:23 PM.

  3. #43
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    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. -

  4. #44
    Junior Member
    Join Date
    Nov 2001
    Posts
    23
    ya i know thats whats driving me crazy...i had it working correctly now it closes when u try to drag it...funny

  5. #45
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Download the version from the tutorial and start with that.
    - The right of the People to create Flash movies shall not be infringed. -

  6. #46
    Senior Member
    Join Date
    Jul 2002
    Posts
    176
    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:StringwContent:StringxSiz:NumberySiz:Number)
    {
    yPos=275;
    this[wName]= mx.managers.PopUpManager.createPopUp(thismx.containers.Windowfalse, {closeButton:true});
    this[wName].title wText;
    this[wName].setSize(xSizySiz);
    this[wName].contentPath wContent;
    var 
    xvalue:Number=Math.floor(Number(w)/2)-xSiz/2;
    this[wName].move(xvalueyPos 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",400200); 
    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

  7. #47
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Please start a new thread.
    - The right of the People to create Flash movies shall not be infringed. -

  8. #48
    Member
    Join Date
    Sep 2006
    Posts
    44

    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center