ActionScript 2.0 :: Make A SWF Self Aware Of It's Own Size?

Jan 23, 2007

I was working on something or other today and a question came to me. Would it be possible to make a swf know how big it is, weather embedded into an HTML page, or running in flash player.

So pretty much, I want it to, if it's playing in the stand-alone flash payer, if you stretch out the window vertically, it would know

The first thing I thought of was keeping track of _root._xscale or _root._width, but they didn't work.

View 1 Replies


Similar Posts:


Flex :: Make A Value-aware Combo Box?

Mar 31, 2011

Combo boxes in Flex are really awkward to use if you have objects in them addressed by properties, in my experience. In Flex 3.5 we had a working extension to the combo box that would populate a selectedValue property (and allow changing the selectedIndex by same).

Here's a quick example of what using one of these looks like:

<c:ValueComboBox valueField="country_code">
<mx:Script>
<![CDATA[
public function get selectedCountry(): String {

[code]...

However, this has stopped working in Flex 4. What's happening is that our existing component drove its changes by overriding the set selectedIndex() function, which is no longer called when the combo box's selected index changes (wtf?).Is there a working value-aware combobox implementation for Flex 4? [URL]

View 1 Replies

Actionscript 3.0 :: Make Non-document-class Classes Aware Of Stage Comp?

Dec 2, 2010

I am working on text adventure game which will have at least a few components (a text area for narrative and text input for user input) on the stage at all times. Therefore, I have created those components statically through Flash's WYSIWYG design environment. I gave them instance names "myTA" and "myTI" respectively. I was able to get my main class (the document class for the stage) to interact with them (dynamically adding text one character at a time like a typewriter at runtime), but other classes in the same package don't seem able to recognize the stage components. Below is the relevant code:

Case A, in which everything happens within the Main class:
Code: Select allpackage {
public class Main extends MovieClip {

[code].....

View 1 Replies

Actionscript 3 :: Make Non-document-class Classes 'aware' Of Stage Components In Flash?

Dec 2, 2010

I am working on a text adventure game which will have at least a few components (a text area for narrative and text input for user input) on the stage at all times. Therefore, I have created those components statically through Flash's WYSIWYG design environment. I gave them instance names "myTA" and "myTI" respectively. I was able to get my main class (the document class for the stage) to interact with them (dynamically adding text one character at a time like a typewriter at runtime), but other classes in the same package don't seem able to recognize the stage components. Below is the relevant [code]...

View 5 Replies

Flash :: Make Size (width And Height) Full Size In The Browser?

Sep 15, 2011

I would like to know how to make flash size (width and height) full size in the browser? the real size of flash is w:955px h:600px I tried to make w:100% and h:100%, it makes pictures pixelate.

View 6 Replies

Actionscript 3.0 :: Making Instances Of A Class Aware Of Each Other?

Sep 17, 2009

I am just making the move to AS3, and in particular - moving my code to classes and packages. And right now, the penny hasnt dropped. I understand that packages group a group of related classes, but my brain just hasnt seemed to grasp a few concepts.

As a start, i thought i would port a dropdown i built in as2, to as3. The problem i am having specifically is making instances of the dropdown aware of each other. For example, I have a Dropdown Class that adds my dropdown to the stage. This class is responsible for building the dropdown, and adding the items to it.

But lets say i make another instance of this class. This brings up several issues that i dont fully understand. For example: - when one dropdown instance is open, it is the current_selected. When I open another dropdown, i want to send an event to the other instances that says "hey, if you are open you need to close" - a reset all function. Which would work similar to above. It would send an event all all instances of the dropdown class and trigger their internal "reset()" method

In as2, i would simply create some variables to keep track of these things. As far as i am aware, you can't add package level variables that instances can all see?

So, Do i need to add a customised version of the event dispatcher? and if so, how do i tie all these instances into a group of sorts.

View 7 Replies

ActionScript 3.0 :: Flash Preloader That's Aware Of Multiple External File Sizes?

Aug 14, 2010

I have an AS3 .fla that loads an external XML file of image names, and then iteratively loads the images into the .fla. All this works great. What I want is to create a preloader that is aware of the size of all these external images. As far as I can tell there's no way to do this, but I'm hoping someone here is smarter than I am.

I tried Lee Brimelow's method of having a separate SWF whose only job is to load another SWF in its place. This doesn't work because the preloader's call to .bytesTotal only reads the bytes of the main SWF, not of the external XML or JPGs that are dynamically loaded into it. So the result is the preloader reaches 100% when the main SWF is loaded, but that happens really quickly and the bulk of the load time comes after the 100% mark, when the main SWF starts loading in images.

The more I think about this, the more it seems that you can never access the .bytesTotal property until you've already instantiated the loader and called the .load() method. Am I wrong? Is there a way to fetch just the SIZE of an external file without actually initiating the act of loading the file into memory?

View 4 Replies

ActionScript 1/2 :: Movieclips Aware Of What Frame Open Another Movieclip To The Same Frame?

Jan 4, 2011

I was having trouble even knowing quite what to search for so I figured asking a question in a forum would be the best way to go. Currently I am making an application where I have multiple movieclips of equal duration on multiple frames. For example, movieclip_1 is on frame 1 and is 40 frames long. There is currently a scrub bar that scrubs through the 40 frames of movieclip_1. On frame 1 of the Scene there are also buttons with the actions to gotoAndStop on frame 2, frame 3, and frame 4. Frame 2 contains movieclip_2, frame 3 contains movieclip_3, and so on. The functionality of this is that it shows medical conditions progressing from different angles and when a button is clicked the display shows a close up of just that one angle. As expected, without any actions on the movieclips navigating from one frame to the next brings up the proper new movieclip but they always begin at frame 1. What I would like to be able to do is somehow have my movieclips know what frame they are on so when a button is clicked the application would go to that frame and open that movie clip to the same frame as the previous one that was just navigated from.

View 3 Replies

How To Make File Size Lower

Aug 24, 2010

I normally work with print design but am designing some flash banners for a client. Just have some questions about file size.My current banner is 125kb but they want it under 25kb. Is that practical for a flash banner?Also, I have done tests with import options and it looks like if I import my artwork as an .ai file and convert to symbol then it gives a lower file size than importing as a png or jpg.How can I make my file size lower? I know it's hard to answer without seeing the file but is there an option similar to 'save for web' in photoshop where I can adjust the quality to reduce file size?

View 1 Replies

ActionScript 3.0 :: Make A Pop-up Window With A Set Size?

Dec 9, 2009

I want to make a pop-up window which pop up when a button is pushed. And I need to set the size of the pop up window to 900 x 700... I found a tutorial on the net on how to do it but it dosen't work,

function jspopupWindow(event:MouseEvent):void {
var desiredURL:URLRequest = new URLRequest("javascript:NewWindow=window.open('page.html','newWin','wi

[code].....

View 5 Replies

ActionScript 3.0 :: Can't Make Text The Right Size

Jun 20, 2011

I'm having a frustrating problem. I'm trying to get the text announcing the levels in my game to be the right size when it's online. It works fine offline, but when I put the swf up online the text looks like it's about 2.4 instead of 24 like I am trying to get it. Here's the code in the start game method:

[Code]...

View 2 Replies

ActionScript 3.0 :: Make A Text Box The Same Size As An Image?

Jan 15, 2011

I already have an image that gets resized. Is there an easy way to add a text box on the bottom of it so that it behaves the same way as the picture?

View 1 Replies

Professional :: Reduce SWF File Size - Make In 3DX Max

Dec 9, 2011

I have swf file product animation the file make a 53 MB, i want that file put in website. How can i reduce file size:

1) file is make in 3DX Max,

2) Then import to render image in adobe aftereffect & done special effect & make a SWF file

View 3 Replies

Make Flash Swf Fit To Image Size Dynamically?

Mar 15, 2010

How can I create a player in flash cs4 so that it resizes dynamically to fit the size of the images am trying to add in the 'slideshow'?

View 2 Replies

ActionScript 3.0 :: Make Randomize At Any Browser Size?

Jan 21, 2009

I have a code for randomized stars. My problem is how do I make it randomize at any browser size? It's a full flash site that I am making. Actionscript nub here. Heres what I have for the size of the randomization.

ActionScript Code:
var areaWidth = 500;
var areaHeight = 500;

View 7 Replies

ActionScript 3.0 :: Make Resize To Fit With Any Monitor Size?

May 19, 2010

I'm building a portfolio full flash site, trying to make a resize to fit with any monitor size. I have two swfs. One main.swf and page.swf as a child which loads within main one.

My problem is when I resize my browser or directly from Flash: main.swf file and resizing with my mouse. The page.swf keeps loading over and over again. I want it loads once and when resize it will fit with size of any browser dimension.[code]...Make resize to fit with any monitor size?

View 0 Replies

ActionScript 2.0 :: Make An External Swf File Exact Size?

Jan 13, 2010

I have a script that calls for an external swf file. It can import the file no problem but it is always the same size. The problem is that I made the swf file with smaller dimensions and it is still to larger in my window.[code]...

View 1 Replies

Make Web Banner That Could Expand To A Bigger Size When I Roll Over It?

Jun 1, 2010

How would i make a web banner that maybe could expand to a bigger size when i roll over it?
i see people doing these over the internet but do not know how.sometimes the web page changes to accommodate for the bigger web banner once the user rolls over with their mouse.

View 1 Replies

ActionScript 2.0 :: Load External SWF's And Make Them Fit To Movieclip Size?

Oct 28, 2010

I've got some swf's that I want to be able to load in to an mc and for the swf's to fit to the size of the mc. This works with jpeg's but not swf's, maybe to do with the way they've been set up, but I can't change these swf sizes.The code I have, (that's from another thread) will load a jpeg and make this fit, but not an swf is:

Code:
// container movieClip x and y positions
var container_x = 116.45;

[code].....

View 2 Replies

Change Brush Size - Make The Eyedropper Tool ?

Aug 27, 2009

1. How can I change the size of the brush tool? It's all greyed out on every project I start, stuck at the very smallest size (0.10). I'm trying to trace over a photo at the moment, and it's taking FOREVER with the tiny little brush. It only un-greys itself after I draw a line, but I can only change the size of the line I've just drawn. As soon as I go to draw a new line, it goes straight back to size 0.10.I'd use the pencil tool, because I can change that, but...

2. How do you make the eyedropper tool put your chosen colour into the pencil colour box as opposed to the brush box? Every time I use it, it forces me to use the brush. Which, because of the above problem, is ridiculously inconvenient to draw with in just about every situation.

View 1 Replies

Flex :: Make Bubble Size Relative To Chart?

Jan 12, 2011

I'm wondering if there is any way to make the bubble sizes scale or resize when the size of the chart resizes. If the bubbles are set to a specific pixel size, it seems as though the size is set and that's it. So, if your chart is large, the bubble is size X and if the chart is small the bubble is still size X. [code]...

View 1 Replies

ActionScript 2.0 :: Make Stage Size Of Expanded Part?

Aug 26, 2009

I have a question, not necessarily about coding, but about setting up a file. I want to create an expandable ad, but I don't know how they work. Do I make the stage the size of the expanded part? How do I only have the unexpanded part act as though it is a different, smaller size.

View 2 Replies

ActionScript 3.0 :: Make Any Size Of DisplayObject Fit A Thumbnail Container?

Jul 8, 2010

I am going to have a situation where i have all sorts of different sizes of graphical data coming at me from XML. The only thing that all of these assets have in common is that they will be sharing a 100px by 100px thumbnail and they are SWFs.My question is, how can i make an object fit into the thumbnail so that:1) Theres no cropping of the item2) Items smaller than 100x100 must be enlarged3) Items larger than 100x100 must be shrunk

View 7 Replies

ActionScript 3.0 :: Size - Make A Stage With 100% Width And Height

Jan 15, 2011

when i create stage and make its width and height in pixels Web Browsers show it with pixels too. so i want to make a stage which width and height would be 100% in web browsers. i just want to place buttons and some stuffs on the top and right of the web browser.

View 2 Replies

ActionScript 2.0 :: Make Sure That The Text Label Stays The Same Size?

Jun 24, 2005

I have a movieclip which is scaled depending on xml data. However, I have a problem in that this results in a text label within it also being shrunk or stretched. Is there any way to make sure that the text label stays the same size?

View 7 Replies

Publish Settings And Quality Changes Don't Make File Size Smaller

Aug 24, 2006

My swf file is rather large, so I tried changing the quality settings and the publish settings, but nothing I do seems to change the size of the final swf.

View 2 Replies

ActionScript 3.0 :: Make A Swf Play At It's Stage Dimension Size Without Using Html?

Sep 29, 2010

My swf file opens automatically in my web browser when I double click it. It takes up the entire browser window space. Is there any way I can make it play at the proper dimensions without using html? I want to send this file to other people and I don't want them to have to view it in a web page but when it scales up it doesn't look so good. What can I do?

View 4 Replies

Flash :: Make Webpage Displayed Same Size On Any Screen Resolution?

Nov 19, 2010

How can I make my flash Webpage displayed same size on any screen resolution of my computer? Whether it is 1024 X 768 or 1280 X 960 screen resolution, the size of Webpage (Flash Webpage) should always be same so that user don't need to use horizantal scroll bar to view all the content.

And secondly, how can I scroll my webpage vertical on moving with my mouse like in the following link: The below link also shows that it's webpage size is always same on any screen resolution.[url]...

View 1 Replies

Professional :: Make Use Of A Bitmap Picture, Size 1920 X 1080?

Feb 23, 2011

I make use of a bitmap picture, size 1920 x 1080, as my stage background.  That image never moves ... well I may add mask to it later on, I'm not sure yet.

Nonetheless, since it is static, is it a good idea to cache it as bitmap? is it only for vector artworks?

View 1 Replies

Media Server :: Unable To Make Raw Format Segment Size?

May 26, 2011

In raw format stream data are divided into many files named "segments". How can I configure the size of this files? I want to make them twice smaller.

View 1 Replies







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