A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Button in MC will not work!! Help!

  1. #1
    Enter the Flash Dragon Prototype3X's Avatar
    Join Date
    Jul 2002
    Location
    In my Mind
    Posts
    1,107

    Button in MC will not work!! Help!

    I have a close window button in a MC but I can not put the actionscript in to make it work. If I put it on the main timeline it works. I am on F-MX

    Any advice, code examples or tutorial would sure be appreciated!

  2. #2
    The world goes - hm.. TheCaramella's Avatar
    Join Date
    Dec 2001
    Location
    Second door on the right, next to the ice bear
    Posts
    642
    I think this (or something very similar) was discussed here yesterday or so. I'll take a look... Found it, twice:
    http://www.flashkit.com/board/showth...ht=open+window
    and
    http://www.flashkit.com/board/showth...hreadid=406446
    The first one is best. That's on how to OPEN a window with javascript.
    I think it's enough putting code for closing the window like this (in the URL-line, in normal mode):
    Code:
    javascript:windowName.close()
    (it's been a long time since I've been doing plain javascript)
    Maybe you'll have to use
    Code:
    javascript:_parent.windowName.close()
    instead.
    Last edited by TheCaramella; 12-26-2002 at 04:59 PM.

  3. #3
    Enter the Flash Dragon Prototype3X's Avatar
    Join Date
    Jul 2002
    Location
    In my Mind
    Posts
    1,107
    I know how to put java script:windowName.close() on a button! But I have a MC with a button in it, and when I try to go in the actions panel to get the url it is disabled there for I can not put the java script:windowName.close() in

    When I check Movie Explorer in scene1: The botton is not there. But in symbol definition: my MC there is the botton.

  4. #4
    Enter the Flash Dragon Prototype3X's Avatar
    Join Date
    Jul 2002
    Location
    In my Mind
    Posts
    1,107
    Can anyone help me on this??

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