ActionScript 3.0 :: MC Dimensions Excluding Masker?
Mar 10, 2010
Clip A masks clip B. I desperatly need to know C dimensions, without taking in account the masker. In other words, If I check for example C.height, I should retrieve 2 different values before and after applying the mask to B. In other, other words, I'm looking for a way to retrieve the Rectangle of C's viewable area. getBounds/Rect() don't work for this
In AS3, I have a Sprite that has a Z axis rotation applied.How do I calculate that Sprite's dimensions (it's original size) from Sprite.rotationZ and Sprite.getRect(...)?
What do I have to write to keep the movieclip not to change dimensions if the user starts playing with the dimensions of his screen ? I remember it was a line of as3 written at the beginning.
I have a preloader at the beginning of my flash movie that looks like this.[code]Which works perfectly. However as the movie contains a fairly large number of bitmaps I wanted to know how to preload the main flash movie and for the bitmaps (which are movie clips) to preloaded separately. I cant quite get my head around how this might be done.
is there any way to exclude some classes from a swf file.As you can imagine, I need to create kind of "dll" swf files (that is i want to avoid any duplication of my classes)I'd like to be able to exclude superclasses as well. Generally, most components will extend the same superclasses. I don't want to include the superclasses in my swf file.
I have a code library that I have built. It relies on 2 other (third party) libraries. At the moment, when I compile the library into a swc, both third party libraries are included. I am looking for a way to compile my code library against the third party libraries, but without including them in the compiled swc.
This would obviously mean that anyone using my library would need both libraries as well, but I would prefer it this way. I am not using Flex/Flashbuilder which I know allows you to choose the classes to include in a swc.
So, 8 weeks ago I started with my GameDevelopment branch of the MediaTechnology tree at my school, and I am currently in my 1st week of the 2d Semester (or Period, as we call it here), and AS3 is introduced this time (last Period were GameMaker and XNA). There's a problem though.. I have to work with Arrays now, and last time I worked with Arrays was during PHP last year; almost half a year ago >_<"
Here's what we have to do for the 1st Assignment: Make a sort of lottery system for Christmass; Make sure names aren't drawn more than once, and that someone can't draw him/herself.
Im trying to translate a string from a textbox by shifting each letter (excluding vowels) up a character. For example, B changes to C, C changes to D, D changes to E, etc.[code].....
I have a flash app for web which is 971x570. I am planning to make it into iOS app and was wondering if I can do it with 971x570 dimensions or will have to use 480x320 px dimension as provided in the iOS template in Flash CS5 and thus modify my content.
I have two swf files. I want to place one within the other. Is there anyway I can set the dimensions of the swf I place within the other one? I would have published it a smaller size, but it dont allow me to change the size in the settings of a swf, just the html version.
When I change the dimensions on a document, and for example make it taller, the background becomes taller in the direction DOWN. But.. how do I make it go up, if you know what I mean? When I make the dimensions taller, why cant it increase up?
the banner i just created was the size of my browser when i opened it on the internet, how do i get the banner to act within its dimensions (468 px by 100 px)
I want to load an image using loadMovie,.. and then dynamically draw a border arround it... but i need to get the dimensions of the pic... I dont know why bt using _root.container.img.pic._width isn't working... I mean it is drawing the border but very small and not even close to the dimensions of the pic. What can I do ?
(Maybe i'm trying to get the dimensions before it's loaded ??...)
I have a long log in a simple TextField, simply adding new lines of text when needed. I wanted to make some of the lines different color but while adding new line (simply as myTextField.text += '' + log; ) all the previous text formatting is erased. There is a tiny note in the doc:Notice that any text inserted manually by the user, or replaced by means of the replaceSelectedText() method, receives the text field's default formatting for new text, and not the formatting specified for the text insertion point.If I get it right the I want to load an image using loadMovie,.. and then dynamically draw a border arround it... but i need to get the dimensions of the pic...I dont know why btusing_root.container.img.pic._width isn't working... I mean it is drawing the border but very small and not even close to the dimensions of the pic.
I have about 50 QuickTime movies that are different dimensions. I need to export them to be FLV's and I need them to all be the same dimension. I want to put them in a queue so I don't have to do each one manually. Is there a software that I can use to do this?
hello everybody. I have a very weird problem. Recently my Flash IDE started to mess up dimensions. I mean when I create a new document or a rectangle for example, even if I set the height and width to the same value the height is always bigger than the width... I tried re-installing Flash CS4 again but that didn't solve the problem...
I have a bttn in my swf (which is embedded into my html page) and i want to be able to control the parameters of the pop up window the bttn generates. I have found a code generator at- this generator works when i input all my parameters and URL and test it, but when i place the code it provides onto the bttn in flash it fails to produce the same result me
on (release) {getURL ("javascript:NewWindow=window.open('https://secure.bellerockgaming.com/webchat/go_Max_New.asp?siteID=14&qu eueID=29&folder=BRE','Live
My movie is 500 by 200 px. However i am loading display object much larger than that and have just a portion of them show. How do i programatically get the visible dimesions? root.stage.width gives me the extended value.
for the sake of good programing practices i dont want to hardcore the values.
I have a collection of .swf files and they all have different dimensions. How can I create screenshots of these flash movies automatically? Would be very handy, because otherwise I will have to make screenshots manually for a few hundred flash movies.
I'm making an application that gets images from a web site and displays them on a screen for the user.How do I call getSize() on that data? I've been told I can use XML functionality in AS3 to achieve this as well, any idea how someone might accomplish the task?
Right now, my loaded swf works fine and is loading in the correct spot, but it is too large so i need to set the dimensions. I am loading it in through a movie clip also.[code]...
I've created an empty movieclip in _root and loaded an image into it but whenever I do trace(_root.newMC._width) I get a 0! I've had this problem in the past but never really looked into it!
I have the following code: Code: with _root { createEmptyMovieClip("file", 0).loadMovie("someimg.jpg"); ["file"]._x = (Stage.width - ["file"]._width) / 2; ["file"]._y = (Stage.height - ["file"]._height) / 2; lineStyle(3, 000000, 100); [Code] .....
The problem I'm having with this is that when it looks for Stage.width it's actually trying to find _root.Stage.width. How do I get around that without breaking out of the 'with'?
How do I programatically get the pixel dimensions of my SWF. I tried using stage.width and stage.height, but this seems to be a tight bounding box on all the objects in the video, not the actual viewing area. I also want these pixel dimensions to be accurate as javascript dynamically resizes this SWF.
I want to load an external jpg,Is it possible to get the dimensions of the file loaded after? It seems straight forward enough and easy to do - but I don't ever remember seeing such a functionality in Flash before.
I've just finished working on an extensive HD intro for my website, which is in 1280x720 resolution.
At the moment, my site has a splash page with 3 buttons on it: B1) opens the site in fullscreen mode B2) opens the site in normal window mode B3) opens a new browser window linking to my intro
Here's the AS code I'm using for my intro button: Actionscript Code: intro_btn.onRelease = function() { getURL("[URL]", "_blank");};
I'm wondering if there is a way to somehow specify in that code segment what dimensions I'd like the new window to have? I know this can be accomplished in JavaScript with something like this: Actionscript Code: <a href="javascript:void(0)"onclick="window.open('[URL]','height=1280, width=720,scrollbars=no')">intro</a>
I've already tried putting the intro on it's own separate HTML page, but because of resolution and other background contrast issues, I've found that it undoubtedly looks best in a window that is resized to its specific dimensions, rather than having extra space around the edges, top, and bottom.