ActionScript 3.0 :: Opening Windows Of A Specific Size From Flash?

Jul 11, 2009

I'm just learning actionscript, and was wondering how to have the new window opened be a specific size. I've searched around, but only really found instructions for AS2.

Here's the code I am using:

stop();
var pharURL:URLRequest = new URLRequest ("http://link.com");
function pharClick(myevent:MouseEvent):void {
navigateToURL(pharURL);
}
phar_btn.addEventListener(MouseEvent.CLICK, pharClick);

View 5 Replies


Similar Posts:


Flash :: Crashing While Opening In Windows

Dec 19, 2011

Just started using Flash pro and 1st few times it worked fine, now it get to 'intializing tools' then after a few seconds it errors out then shuts down.

View 1 Replies

Professional :: Prevent Opening Windows From Flash Show?

Jul 29, 2010

I have a chat on webpage made by flash, Is there a way to disable opeing windows from flash,like adding something to the embed code.

View 1 Replies

ActionScript 3.0 :: Specific PC, Windows 7 Won't Run Flash EXE

Apr 5, 2011

I'm trying to avoid using AIR or running the SWF through the standalone Flash Player, but Windows 7 on a few specific PCs won't run the Flash .EXE projector - The projector does load files (jpg/xml) from an assets folder, but the Document Class constructor isn't even executing. This only happens on a few specific computers. Does anyone know if it could be a Windows 7 security setting?

View 2 Replies

Flash :: Wrap It In A Windows App That Forces A Specific Screen Resolution?

Jan 17, 2010

Can someone recommend a good solution for a Windows based wrapper around a Flash application(or even IE, in which I can call Flash), that would launch as an executable and force the screen to a specific resolution and then render the Flash in that (full screen) window?

View 2 Replies

ActionScript 2.0 :: Opening Windows In IE7 & IE8?

Aug 26, 2010

I have a big issue opening an URL using AS2 in the new versions of Internet Explorer. The web is:h t t p (click on Booking)This is the script I'm using and it works perfect in Firefox and Safari:

ActionScript Code:
btnReservas.hitArea_mc.onRelease = function() {
getURL("javascript:void(window.open('URL','DCO-Reservas','top=0,left=0,

[code]......

View 3 Replies

Professional :: Links Opening In New Windows?

Jan 16, 2011

I'm relatively new and I've made a script on my banner for buttons to link internally to different pages on my webpage. The problem I'm having is every time I click on a link it directs me into a new window, it will redirect in the same window and new tabs wont keep poping up? The website is [URL] if you want to see the problem I'm having.
 
stop() 
road.addEventListener(MouseEvent.ROLL_OVER,play1);
function play1(event:MouseEvent):void{    gotoAndStop("specroad");

[Code]....

I've tried a few things but I can't get anything to work. I shouldn't have any trouble fixing the rest of the script!

View 1 Replies

ActionScript 2.0 :: Opening Html Windows?

Jul 11, 2002

how can I open a window without menu or a chromless from a fullscreen swf ..flash movie.I can call javascript from swf embeded in html but its long now couldn't open a html or movie inside full screen flash

View 1 Replies

Actionscript 3.0 :: Opening Up Folder (Windows Explorer)?

Mar 29, 2010

I was wondering if there was a way in AS3 top opening up a folder in windows explorer? Currently I'm using this code:

[Code]...

But the folder Resources opens up in my default web browser instead. I've tried googling extensively without much luck.

View 2 Replies

ActionScript 2.0 :: Opening Browser Windows From A Flash Movie With Browser?

Jan 17, 2006

I have a PHP mailer form on my site which needs to be published in action script2 to work, but I also have a script set up to open browser windows of a certain size & location which needs actionscript 1 to work? The PHP mailer form has a "Name" field, "Email" field & "Message" field, theses can all be reset with a button. The button clears off any text in the 3 boxes to wipe them clean. The script on the reset button is:

on(release) {
_root.myForm.formNameField.txt = ""
_root.myForm.formEmailField.txt = ""[code].....

This works fine with section script 2 but not with as1. Does anyone know of a script that resets the .text field on as1 Alternatively is there any way of opening browser windows from a flash movie with browser win controls, eg. centre win, no scrollbars.

View 2 Replies

Flash :: Professional - Reduce File Size Of Opening Page In A Site

Sep 27, 2011

I'm using the Flash CS4 IDE, and the first page of my site takes a lot longer to load than I want it to.  So I wanted to go through the varied images / symbols / movie clips / sounds and so on to see where all the memory is being chewed up. When I go into my library, however, I can see the Name, LInkage, usecound and Type of my elements, but no mention of file size and I can't seem to find any right click menu that lets me add file size to the list of details being displayed. Is there a way to make it show file size?  Or some workaround? And are there any best practices to reduce file size aside from using symbols for anything that's used more than once and reducing image and sound quality?

View 4 Replies

ActionScript 1/2 :: Windows Projector Quits Fullscreen When Opening Pdf File?

Aug 16, 2011

I'm working in CS5, using AS2 on a Mac.I've built a presentation that requires the need to open pdf files in Acrobat Reader... as I have been building this on a Mac I simply used the geturl code which has been working a treat... today when I tested it on a PC it opened the file in a browser window!
 
I'm not really a coder and have to rely on finding bits online that I can tweak... after many hours I have fixed the pdf opening problem by using the fscommand method, but unfortunately when the pdf file is closed, my presentation (that was running fullscreen) has minimised itself to a window 100% to the original stage size!

View 2 Replies

Professional :: Windows Projector Quits Fullscreen When Opening Pdf File

Aug 16, 2011

I've built a presentation that requires the need to open pdf files in Acrobat Reader... as I have been building this on a Mac I simply used the geturl code which has been working a treat... today when I tested it on a PC it opened the file in a browser window!
 
I'm not really a coder and have to rely on finding bits online that I can tweak... after many hours I have fixed the pdf opening problem by using the fscommand method, but unfortunately when the pdf file is closed, my presentation (that was running fullscreen) has minimised itself to a window 100% to the original stage size!

View 2 Replies

Professional :: Opening A Specific File

Jul 22, 2010

I have Flash CS4.I'm having problems opening a specific file.Its about 239,000 KB.Sometimes it opens partially, I can open movie clips and scrub through the time line and see my keyframes. The problem is that it wont display my movie clip keyframes in the viewing window.The flash dialog giving you options to open previous files is there instead.My friend can open the exact same file on his computer in Flash just fine.Also, I have hardware acceleration settings turned to 'NONE'.?

View 1 Replies

ActionScript 3.0 :: Opening New Page To A Specific Frame

Sep 1, 2008

I am still learning Action Script but I have a problem with writing the full script for combing navigate to new URL and gotoAndPlay. More specifically what I want to do is use a button which when clicked will open a new page and then start playing my Flash movie at a certain frame on the Timeline. I have used buttons to navigate to a new URL and used the gotoAndPlay ( ) ; command to play a certain frame, both have been successful but when I combine the two I run into trouble. What happens is the new page loads correctly and goes to the specific frame but then opens the browser in a new window with the movie playing from the beginning. The correct sequence within the correct Webpage is playing but only if I close the current page, in other words what I am trying to achieve is running but in the background.

View 8 Replies

Professional :: Getting Error On Opening Specific FLA File

Feb 8, 2010

I have Flash CS3 on OSX. Everytime I open a specific FLA file, I immediately get the following error message:
"Error creating Flash Movie. Be sure the destination file is not locked or on a locked drive. Also, check to make sure the name is not too long."
Dismissing the alert box results in the same alert box instantaneously popping back, completely blocking any attempt to act upon the file. The file name is 7 characters long (extension included) and is located in a folder which contains other FLAs I have no problem publishing.

I have sent back the file in question to its creator and she had no problem opening it in CS3. She has done a "Save as..." and sent me the result, but it did not work. A collegue of mine opened it successfully in CS4. I have taken the opportunity to verify the Publish settings there (not that it should matter as I can't do anything with the file, let alone publishing it) and it is set to publish only a SWF file next to its FLA. Saving it as a CS4 file then back to CS3 has not produced a file which I can use with any success. It seems very unlikely that the file is corrupt. So is my Flash CS3 installation corrupt?

View 13 Replies

ActionScript 2.0 :: Opening A New Window With Specific Dimensions?

Oct 22, 2005

i have used the function before where you can have a new window open up from your flash file on release of a button, and have the new window set to certain dimensions and minus the toolbar. I have had to remake my site and lost how i did it and now cannot find a good tutorial for this.

View 1 Replies

ActionScript 2.0 :: Opening A New Window With A Certain Size?

Mar 18, 2002

I want to open a new window with let's say height 500 and width 600 could i use this in flash so i can open such an window with an html -file in it, i have made a javascript to do this, but could i use this in my actionscript or do I have to work with getURL somehow.

View 3 Replies

ActionScript 2.0 :: Opening A Swf Window The Size Of Movie?

Feb 17, 2008

I'm working on my portfolio at the moment and trying to make my examples of work open in new windows that are the size of the original swf movie. I've read the Flash 5 tutorial on here about making a borderless window but I can't make it ork.

View 3 Replies

Actionscript 3.0 :: Opening New Window, Exact Size With A Button

Oct 14, 2010

I'm looking for code which will use my buttons instance name and when the button is clicked a new window will open up a new web page at the exact size referred to in the code. I tried playing around with this code but it comes up with errors.

test_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);
function mouseDownHandler1(event:MouseEvent):void {
navigateToURL("hhtp://www.website.com/onlinesurvey.html","_self";
var jscommand:String = "window.open('http://www.website.com

[Code]....

View 2 Replies

ActionScript 2.0 :: Opening A Browser Window At A Fixed Size?

Jul 13, 2006

Im trying to make a button to open a link, in a new window, at a fixed size and without toolbars etc.

Ive searched these forums and looked for variuos guides, but to no avail. I cant get them to work =(. I found a guide(which I cant find again o0) on Kirupa but it didnt work either.

heres what I came up with:

code1:
Code:
on (release) {
getURL("http://img519.imageshack.us/img519/5747/screenie8ya.jpg", "_blank");

[Code]....

how to get these to work? or a guide on one that works? or simply a script that will work?

View 1 Replies

Actionscript :: Flex - Change The Application Windows Size?

Jan 6, 2010

I am embedding the swf into a c# winform, now what I want to do is when I click a button inside the swf, the swf's size is changed. I have tried to use the stage class but failed, the system said the width/height property is not implemented:

protected function button1_clickHandler(event:MouseEvent):void
{
stage.width = 100;

[code].....

View 1 Replies

Embed Flash Games Into Windows Forms Application.net Compact Framework Under Windows Mobile 6?

Feb 5, 2010

I want develop an application on windows mobile.In this app, i need to show some Flash games to the end user.ow should I do?embed an Flash ActiveX Control (in Windows mobile Form application) ?embed an IE control?BTW (because i do not have a windows mobile device now)Can I views flash in IE of the windows mobile device?for play flash, Macromedia Flash Player 7 for Pocket PC should be installed on your windows mobile emulator.DIT2:after practice i found following package should be installed before your windows mobile progr

Vista SP2
Visual Studio 2008 SP1
Windows Mobile Device Center

[code].....

View 2 Replies

Assign A Specific Window Size?

Aug 18, 2009

I applied the following action script to a button in a flash movie, the action script reads(address changed to protect the innocent):

on (release) {
getURL("http://www.webaddress.com/Product/Video.html", "_blank");
}

[code].....

View 1 Replies

ActionScript 3.0 :: Use Specific Font, Swf Size Too Big?

Oct 12, 2011

I have a pure AS3 project and I want to use a specific font. The problem is when I embed this font, my swf application is too big.I saw I can specify unicode range to embed just the characters I need. This seems to be usefull especially for asian fonts but it's a latin font and I need all the letters it contains.I saw I can load the font dynamically, but I need it everywhere in the application, from the home page,

View 4 Replies

Professional :: Dimensions - Specific Standard Size ?

Mar 23, 2011

For an e-learning presentation, what is the standard size the Flash stage should be set to nowadays? Is there a trend as to a specific standard size that everyone is using? This will be embedded / placed / inserted within a .ASP page.If standard interactive actionScript and animations, should I stick with SWF file format?

View 2 Replies

ActionScript 3.0 :: Open URL In Specific Size Window?

Dec 9, 2011

I am trying to open a url top 960 X 540. Here is my code:

GiftShop.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_17);
function fl_ClickToGoToWebPage_17(event:MouseEvent):void
{

[code]........

View 5 Replies

ActionScript 2.0 :: FMX - Loading An Image To Fit A Specific Size Using XML

Sep 29, 2004

Ive been searching high and low to find out how i can dynamically load an image into a container [i.e. im using the xml_photogallery tut. template] and setting it so that it scales to fit specific dimensions. At the moment Im having to resize images in photoshop so that it fits with in the container/webcontents dimensions. Otherwise different images with different sizes will bleed on main body of the site.

View 4 Replies

ActionScript 2.0 :: FMX - Loading An Image To Fit A Specific Size Using XML?

Sep 29, 2004

Ive been searching high and low to find out how i can dynamically load an image into a container [i.e. im using the xml_photogallery tut. template] and setting it so that it scales to fit specific dimensions. At the moment Im having to resize images in photoshop so that it fits with in the container/webcontents dimensions. Otherwise different images with different sizes will bleed on main body of the site

View 4 Replies

ActionScript 3.0 :: FileReference Load To Specific Size Within Stage?

Nov 12, 2010

I want to load a user's file to a specific size within the stage then after a user uploads their image and places stickers on it, I want them to be able to save their image including part of the artwork from the stage (ex. a framing element).

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved