473,386 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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.
Aug 23 '07 #1
6 2265
have you tried using getURL(). look up that actionscript function and its parameters
Aug 23 '07 #2
xNephilimx
213 Expert 100+
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

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.
Aug 24 '07 #3
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.
Aug 24 '07 #4
xNephilimx
213 Expert 100+
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:window.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

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.
Aug 24 '07 #5
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!
Aug 24 '07 #6
xNephilimx
213 Expert 100+
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

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!
Aug 24 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Matt | last post by:
Hello, I am attempting to get a software prototype UI/demo built in Flash to talk with existing C++ (so I can exchange data and commands between the application-software already developed in the...
1
by: karin nguyen | last post by:
Hi, i am a new user for flash / actionscript. Now our lecturer asked us to do research for actionscript together with the flash file as example but I only can find the actionscript without flash...
1
by: itsthefocusman | last post by:
Hi everyone my name is Daniel, I would like some help. I am using Flash 8 to build a website. I have built the whole site within one flash movie by building the different sections of the site...
1
by: Adam Chapman | last post by:
Hello, I am trying to make an application with a flash interface which does calcultaions in the more powerful c++. Basically I want to be able to draw a shape in flash and do some structural...
1
by: Rocky86 | last post by:
hi ppl bascially I am require to pass my php coding to actionscript and the actionscript will seperate the code of my php how do I do it? Must I create a function for php to be pass into actionscript...
3
by: JuneNasch | last post by:
Hi. I'm a beginner in using Actionscript. Do you know what is the actionscript for a button to exit or quit my project? I'm using Flash 8 pro. I don't know which version of actionscript is used,...
0
by: gabrielk43 | last post by:
Hi I am new to Flex and I use Flex Builder 2 to make a web service client. So I have a web service in .NET(c#) with a simple web method that returns a string(no arguments). It works, I tested it...
2
by: mfsiddiq | last post by:
HI I am facing some problem with my as-js communication.I am passing a String expression to a javascript function using ExternalInterface.call function upon mouse click.My string expression is as...
1
by: cyra | last post by:
Hi guys, this is the first time I post in our forum, I would like to say thanks to whom reading this. I'm new to ASv3 and in stuck of dealing with a problem like this : I have some .fla file...
4
nathj
by: nathj | last post by:
Hi, Well the title of the thread is the question. I have tried searching for this and after several days of getting nowhere with it I decided I would ask. So here's the deal. I am using Flash...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.