ActionScript 2.0 :: When Publish A Projector .EXE File For Windows, Then, The Width Is Still Correct, But The Height Is Higher Than 62?

Nov 17, 2003

My Stage size is 126*62. (it's a small animation).- When I publish the .SWF, no problem.- When I publish a projector .EXE file for windows, then, the width is still correct, but the height is higher than 62 : I got two small white bands beside top and bottom of my stage,see ?I don't understand why there's such a difference between publishing a SWF or EXE. And I'm afraid this also happens whatever the Stage size is (small or big, I mean) : you always get these blank bands on the top and the bottom, don't you ?

View 1 Replies


Similar Posts:


ActionScript 3 :: CreationComplete Event Does Not Show Correct Height / Width

Apr 27, 2011

I have an issue where using MXML, the height and width properties of myBox is correctly acquired but using ActionScript the correct height and width acquired is not correct.

my:Tab extends NavigatorContent (This is NOT the tab in a Tab Bar)
com:myBox extends BorderContainer.
<mx:ViewStack id="viewstack_main" width="100%" height="100%" creationPolicy="all">
<my:Tab label="My Tab">
<s:Scroller height="100%" width="100%">
[Code] .....

In the constructor of myBox I set the percentWidth and percentHeight to both 100. In the creationComplete event of the same myBox, I need to access the height and width. This works all ok with the MXML. However using ActionScript I need to add another tab.

var navContainer:Tab = new Tab();
viewstack_main.addElement(navContainer);
var scroller:Scroller = new Scroller();
scroller.percentHeight = 100;
scroller.percentWidth = 100;
[Code] .....

But unfortunately, in the creationComplete event of box, the height and width properties are NOT what is expected (the height & width after setting 100%). It is 112. Why this works with MXML but NOT ActionScript?

View 2 Replies

ActionScript 3 :: Setting Windows Initial Width And Height?

Jan 18, 2012

I am working on a Flex mobile application and I want to set initial windows width and height in as3. When my app runs on Desktop, I want to detect screen resolution and set it to windows bounds, something like that
this.width = Capabilities.screenresolutionX
this.height = Capabilities.screenresolutionY

View 1 Replies

ActionScript 2.0 :: Change Widht, Height And Width/height Ration In An Flv Video File?

Mar 25, 2011

I would like to use a movieclip to load a flv video. The problem I have is that I want to change the video dimensions. I've tried several software to change the video dimensions but as far as it seems all of them keep the same height-width ratio than in the original video. Is there any software that would allow me to change the height and width without keeping the same height/width ratio as in the original video file?

View 3 Replies

Possible To Open A Directory From A Windows Projector File?

Oct 9, 2009

The powers that be have decided a project I'm working on shouldn't go on a website after all, but needs to be on a CD for Windows users instead and of course I only have a couple of days to made the "relevant tweaks" as they call them.It needs to run directly from the CD so I presume AIR isn't a good option.I've got all of it working by publishing to a Windows Projector executable. The bit I'm stuck with is allowing users to click buttons to open various directories which will be on the CD. These are source files for following tutorials from the main part of the CD. I've tried playing around with the various options in the FileReference class (namely browse() and download()), but they seem to be set up for use online only.

View 2 Replies

ActionScript 2.0 :: Load Swf In A Windows Projector File?

Oct 28, 2009

I`ve been trying to load a swf file in a windows projector file. However, when I preview the project in the swf format it works perfectly, but if I preview it as a windows projector file, nothign happens. It doens`t load the external swf file.[code]...

View 0 Replies

[CS4] AS3 :: Get A Based Flash File To Run Full Screen In A Windows Projector?

Jan 23, 2009

I'm currently trying to get an AS3 based flash file to run full screen in a windows projector, but no matter what I try codewise I cannot get the function correctly working,I've tried

fscommand("fullscreen","true");

which works, but I'm also told to avoid it, as it's buggy : - I also tried

fscommand("trapallkeys","true");
fscommand("fullscreen","true");
fscommand("showmenu","false");[code]....

but this doesn't work either, in swf or standalone .exe.

View 2 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

ActionScript 3.0 :: Flash Referencing Stage.width/height References Mc.width/height?

Jul 29, 2010

I am trying to reference to top level (stage) width and height of the main stage for the placement of something located inside a movieclip on the stage.

My code is:
Code:
my_loader.x = (stage.stageWidth - my_loader.width)/2;
my_loader.y = (stage.stageHeight - my_loader.height)/2;

But this seems to just relate to the width/height of the mc that my_loader is nested in...

I have tried the following and had no luck:

stage.stage.stageWidth
root.stage.stageWidth
parent.stage.stageWidth
MovieClip(root).stage.stageWidth

View 8 Replies

ActionScript 1/2 :: Load External Image Of Different Height & Width Into Same Height And Width

Jun 12, 2009

i want to load external images of different height and width into same height and width.

View 3 Replies

ActionScript 2.0 :: Load External Image Of Different Height & Width Into Same Height And Width?

Feb 24, 2010

i want to load external images of different height and width into same height and width.

View 0 Replies

Windows :: Create A Windows Projector .exe From Flex Application Using A Mac

Feb 6, 2012

I have a flex application (.swf) and want to create a projector file. When I choose File-> create projector I get the .app file because I work on a Mac. I know I can create both projector formats for windows and mac using the export feature in Flash Professional. But this is not an option since it's Flex.Is there any other way rather than switching to windows to create the file?

View 1 Replies

Actionscript 2.0 :: Change Width - Height And Width / Height Ration In Flv?

Mar 25, 2011

I would like to use a movieclip to load a flv video. The problem I have is that I want to change the video dimensions. I've tried several software to change the video dimensions but as far as it seems all of them keep the same height-width ratio than in the original video. Is there any software that would allow me to change the height and width without keeping the same height/width ratio as in the original video file?

View 1 Replies

ActionScript 3.0 :: Setup The Dimensions Of The File As In Terms Of Height And Width Of The File Without Getting It Cropped

Aug 20, 2009

The template is built under Flash and has .swf, .fla and html files and was setup on an html background. To make things look nice I decided to use an XML web template as a background to his template. The problem starts from there.The XML web template allows us to add our own SWF files, so I decided to add the swf file of my friend's template.

The swf file was set to "noscale" and when I imported it into the web template it didn't fit properly. So I took the "noscale" off from the actionscript and imported it again. Even then the scaling of the swf file was not correct.As soon as you load the file, it scales towards the left and not center.My question is how can I write a code within the fla file so that when the swf file is loaded it automatically centers itself?2nd question is how can I setup the dimensions of the file as in terms of height and width of the file without getting it cropped. I tried to set it up from 840x610 to 650x430 however the swf content got chopped off (even with noscale off).

View 2 Replies

Flash :: Movieclip.width Returns Higher Value Than Movieclip Stage On Width?

Mar 8, 2010

I have a Movieclip on stage with nested movieclips inside. All referenced at 0,0. None of the child movieclips load any dynamic content, animate or have Masked Layers. It does have an input textfield in one of the child MCs. The parent MC shows 280 px width, while it returns 313 px with a .width trace. There is no code that alters the .width value of the parent MC at run-time. And the ParentMC on stage is not scaled (it is at 100% width/height)

View 1 Replies

Professional :: Increase Swf File Height And Width?

Jul 8, 2010

I am trying to increase a swf file height and width so it can fit better in my screen. I don't want to rework on everything again in my fla file because it's big hassle. (changing background size makes every symbol off). Are there anyway to do it?

View 3 Replies

HTML :: Flash - Height And Width Of SWF File

Apr 18, 2011

In the following code Only the button image has been embeded into the flex code. But in the html object or embed tag why the height and width has to be specified. Even though for this is a normal button if we do not specify the height and width there seems to be some error

HTML
<div align="center"><br />
<div style="display:block;width:100px;height:100px;" id="audio"
class="testsound" align="center"/>
<p class="clickable">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="100" id="myMovieName">
[Code] .....

View 3 Replies

ActionScript 2.0 :: Find Width And Height Of SWF File?

Aug 18, 2010

I have a small issue in ActionScript 2.0. I want to know the stage width and height for external SWF file. I used the following code:

var loader:MovieClip = _root.createEmptyMovieClip('loader', 1);
var obj:Object = new Object();
var mcl:MovieClipLoader = new MovieClipLoader();

[code].......

View 3 Replies

ActionScript 3.0 :: Cannot Work Out How To Edit Width / Height In AS File

Nov 1, 2009

URL...I'm onto the next step on the AS code (see attached zip file on this thread if you need it - file Untitled-3.fla), trying to get the AS to fill an 800*600px window with the dots when the FLA is run.I have tried a range of things, like this (i.e. adding in the hard coded 800 and 600 into the code:[code]But it doesn't do any good!I can't see any other parts in the AS code where the width and height are defined.

View 1 Replies

ActionScript 3.0 :: How To Detect Height And Width Of SWF File In Loader

Dec 19, 2009

I am loading an external swf file using the following code:
//add close button
var reqButton:URLRequest = new URLRequest(btn_close);
var loader2:Loader = new Loader();
loader2.load(reqButton);
addChild(loader2);
[Code] .....

Once the loader loads my image, and I click on it, nothing is happening. Am I supposed to be adding the EventListener to the loader or something else? How can I detect the height and width of the swf file in the loader?

View 1 Replies

Professional :: Find Stage Width And Height Of SWF File?

Aug 18, 2010

I have a small issue in ActionScript 2.0. I want to know the  stage width and height for external SWF file. I used the following code:
 
var loader:MovieClip = _root.createEmptyMovieClip('loader', 1);var obj:Object = new Object();var mcl:MovieClipLoader = new MovieClipLoader();mcl.loadClip("external.swf",loader);mcl.addListener(obj);
obj.onLoadInit = function(mc){    trace(mc._width);    trace(mc._height);};
 
It's showing the whole animation's width and height but I want only stage width & height?

View 3 Replies

Flash :: Specify Width And Height When Loading External Swf File?

Jul 14, 2010

I am trying to load an external swf file. The swf width and height is small and I want to enlarge it when loading it. (My scene has large width and height). My current code could load the file but I am not sure how to enlarge the swf width and height.

var request:URLRequest = new URLRequest("index.swf");
var loader:Loader = new Loader()
loader.load(request);
addChild(loader);

View 1 Replies

Flash :: Original Width And Height Of A Swf File With Java?

Feb 17, 2011

Is there a way to know the original width and height of an swf file with java ?

int width, height;

// my stream contains an image or a swf file
InputStream stream = file.getInputStream();
// mediaType has been set with the help of file extension
switch (mediaType)

[Code]...

View 2 Replies

Flex :: Check The Width And Height Of The Selected Image File?

Aug 9, 2010

I use a fileReference.browse() to select an image file from the harddrive.

How can I check the Width and Height of the selected image file?

View 3 Replies

Professional :: SimpleButton.width Doesn't Change - Width And Height Remain 0

Jun 1, 2010

I am looking at the SimpleButton entirely wrong. Here's what I'm doing (inside of a MovieClip):

[Code]...

the close_btn.width and height remain 0. Am I supposed to just rely on the DisplayObject members of the SimpleButton completely and ignore width/height/x/y or what?

View 2 Replies

Actionscript 3 :: Publish A Flash Projector That Will Run On A PowerPC Mac?

Feb 7, 2012

I'm using AS3 to author my project. I tried to publish as Flash Player 9 and this didn't work. I can't go down to Flash Player 8 because that predates AS3.

View 1 Replies

ActionScript 3.0 :: Flex Project - How To Publish To Mac / Flash Projector

Sep 27, 2009

I recently made a flash app in flex that is to be deployed on a memory stick as a flash projector but it also needs to include an app folder so it can be run on Mac's. In flash I know I can just publish to mac as well as flash projector, would I have to remake my little project in flash or is there a sneaky tricky way to make it work?

View 1 Replies

ActionScript 3.0 :: Checking CSV To Display Correct Advert - Projector Crashing

Nov 9, 2011

This is my code currently it checks a csv document to display correct advert. Projector keeps on crashing

ActionScript Code:
//import controls
import flash.events.Event;
import fl.containers.UILoader;
import flash.net.URLLoader;
import flash.net.URLRequest;
[Code] .....

Need to refine code, I thought maybe using a Loader instead of the UILoader so that I could use the unloadAndStop command to release memory leaks.

View 6 Replies

Professional :: Flash Cs4 Windows Projector?

Jan 26, 2010

Ever since I`ve changed to flash cs4, every windows projector publish I make takes a really long time to open and play an animation.I`ts just very slow. When I created stuff on flash cs3, I had no problems running published projects.
 
Can anyone help me here? It`s just that I searched for a lot of forum questions just like mine on other web sites and none could . Since your the developers os this product I would like to see what you`ve got to say about this.

View 3 Replies







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