How do I ActionScript a pop-up?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • skinnypuppy
    New Member
    • Aug 2007
    • 3

    How do I ActionScript a pop-up?

    I am new to flash and am trying to ActionScript a Pop-up. I have read other posts and threads with similar questions and have tried to use the code that was given in some of the replies but I just cant figure it out.
    I am working with Flash CS3 (but I also have Flash MX and MX 2004) and any of the three versions of ActionScripting can be used from what I understand. Also, the Internet will not be used for the project if that makes a difference, only Flash. All the pictures will be on a disc with the Flash Movie. I want the pop up to not have any tool bars or scrollbars. Just a specificly sized frame to show a picture. I am a total newb to flash and would appreciate the code or answer being as "Flash for Dummies" as possible. I appreciate everyone's help. Thank you all very much.
  • crabpot8
    New Member
    • Aug 2007
    • 40

    #2
    have you tried using getURL(). look up that actionscript function and its parameters

    Comment

    • xNephilimx
      Recognized Expert New Member
      • Jun 2007
      • 213

      #3
      You can use the getURL to call the window.open javascript method.
      with that method you can open a popup window of any size you want and hide any toolbars and stuff.
      Here's a reference to the method http://www.w3schools.com/htmldom/met_win_open.asp

      It's pretty simple JavaScript.

      Kind regards,
      The_Nephilim

      Originally posted by skinnypuppy
      I am new to flash and am trying to ActionScript a Pop-up. I have read other posts and threads with similar questions and have tried to use the code that was given in some of the replies but I just cant figure it out.
      I am working with Flash CS3 (but I also have Flash MX and MX 2004) and any of the three versions of ActionScripting can be used from what I understand. Also, the Internet will not be used for the project if that makes a difference, only Flash. All the pictures will be on a disc with the Flash Movie. I want the pop up to not have any tool bars or scrollbars. Just a specificly sized frame to show a picture. I am a total newb to flash and would appreciate the code or answer being as "Flash for Dummies" as possible. I appreciate everyone's help. Thank you all very much.

      Comment

      • skinnypuppy
        New Member
        • Aug 2007
        • 3

        #4
        I really appreciate your replies but all the code that I have found include HTML. I know even less about this. The entire project is being completed in Flash only so that when the viewer inserts the disc a Flash player (Published as a projector (.exe)) will auto-run the presentation. Any ideas? Thanks again in advance for any help you can give me.

        Comment

        • xNephilimx
          Recognized Expert New Member
          • Jun 2007
          • 213

          #5
          I'm sorry to tell you that I'm 99% sure that it won't work. I knew it won't, anyway I tried any other possible way, just to arrive to the same result. Any javascript code works only if your movie is already open in a browser (like any flash site). When you compile it to a projector it doesn't executes javascript, because javascript is interpreted by the browser, and if there's no browser, javascript can't be interpreted, thus, can't be executed.
          My default browser is Firefox -using the getURL Firefox opens by default-, so I didn't try what happens with IE or others (I also have Safari for windows beta and Opera). Maybe other borwsers react different.
          But I don't think so.
          Firefox try to open the url passed from flash -javascript:wind ow.open (...); stuff- and it fails because it is not a proper url, ir returns null. Maybe some other browser will open that url the same way and then launch the popup, but still will the fist browser window open, and that's far from ok.

          If I find a way to do what you want I'll post it here. But uptill now, I didn't a way.

          Kind regards,
          The_Nephilim

          Originally posted by skinnypuppy
          I really appreciate your replies but all the code that I have found include HTML. I know even less about this. The entire project is being completed in Flash only so that when the viewer inserts the disc a Flash player (Published as a projector (.exe)) will auto-run the presentation. Any ideas? Thanks again in advance for any help you can give me.

          Comment

          • skinnypuppy
            New Member
            • Aug 2007
            • 3

            #6
            Thank You very much Nephilim. Bummer. I really appreciate the time you spent on this problem though. I guess its time I learn so HTML also. =) Please let me know if I may PM you with a question I may have when I attempt some of this stuff in Dreamweaver. That is, if you are familiar with the program. I have Dreamweaver MX. Thanks again!

            Comment

            • xNephilimx
              Recognized Expert New Member
              • Jun 2007
              • 213

              #7
              You are welcome!
              And yes, it's very convenient to learn html and javascript as a good base to start to dip your toes in the web development world.
              Any question you may have, if there's a forum for it, post it there, then PM me if you want to notice it and I'll try to help, so any other people having the same issue can benefit. I don't mean to sound preachy but, that's why this is a forum ^_^. But feel free to PM me if you feel that the question doesn't belong to this forums.
              I am familiar with Dreamweaver, I'm currently using CS3, but not a lot has changed since Dreamweaver 8, but don't know if there was a major change since the MX version, it's kind of old, though.
              Anyway, I use dreamweaver just because it's rather usefull to organize sites and has color and completition for code. I don't let it code for me.
              I mean, I don't really need it, since I know (X)HTML, JavaScript, PHP and stuff on my own. Sometimes I use Notepad++ to make changes to some files, because it's lighter.

              Best regards,
              The_Nephilim

              Originally posted by skinnypuppy
              Thank You very much Nephilim. Bummer. I really appreciate the time you spent on this problem though. I guess its time I learn so HTML also. =) Please let me know if I may PM you with a question I may have when I attempt some of this stuff in Dreamweaver. That is, if you are familiar with the program. I have Dreamweaver MX. Thanks again!

              Comment

              Working...