Set Stage To 12,00 Pixels?
Feb 18, 2011I need to cretae a flash banner for a footbal marquee that is over 12,000 pixels wide.how do I make the stage that big? when I try it says I can only make the stage 8,000 pixels wide
View 4 RepliesI need to cretae a flash banner for a footbal marquee that is over 12,000 pixels wide.how do I make the stage that big? when I try it says I can only make the stage 8,000 pixels wide
View 4 Replieswas wondering if someone could tell me how to modify this code so i can export the stage at its dimensions in pixels. Right now the script saves the stage without bounds, unconstrained. I need it to draw the stage at its default 1280x720 stage size and whatever is within the stage bounds, not whats off the stage bounds
function createJPG(m:MovieClip, q:Number, fileName:String)
{
var jpgSource:BitmapData = new BitmapData (m.width, m.height);
jpgSource.draw(m);
[Code]....
I am trying to set masks and other component positions in relation to Stage size.AS3 CS5I trace stage.stageWidth on a 800x600 pixel stage and I get - 100My stage will scale within a Director piece.Is this a bug? Modal condition? Releated to scaling??
View 7 Repliesso instead of the pixels being dissolved, the pixels being added? :
ActionScript Code:
var Anim:TransitionManager = new TransitionManager(blackbox);
Anim.startTransition({type:PixelDissolve, direction:Transition.OUT, duration:1, easing:None.easeOut, xSections:35, ySections:35});
basically what i would like is the end point to be the start point and the start point the end point.
I have been using the evt.updateAfterEvent() whenever a mouse is clicked.Is it possible to call an update on the entire stage to remove any pixels.which are no longer being used?
View 2 RepliesI have a swf file that loads into my main movie, and within that swf there is a masked image that i would like to scale using zoom in and out buttons and also by using a slider bar.However i cant find any tutorials that will allow me to combine the two.I have used the following code for the buttons. Which seems to work ok but i would like it to be a little smoother. (using speed or some sort of easing??)
ActionScript Code:
zoomPlus.onRelease = function(zoomIn) {
if (test_shirt.shirt._xscale == 400 && test_shirt.shirt._yscale == 400) {[code]....
but for this code it keeps shrinking my initial object down to 10 pixels by 10 pixels..
I have a movie clip called column1_mc. when I click a button I need to move the movie clip in incremental moves consisting of 30 pixels.
column1_mc._y = 30;
Does not work because that is giving a _y coordinate.For example.I need to make the movie clip jump to _y 300 but make 10x30 pixel incremental jumps. Moving 10 times 30 pixel jumps.
I want to be able to snap the guides to pixels the way you can in Photoshop by holding Shift. Is it possible?
View 2 RepliesGot a question from a fellow designer about the use of Tracking Pixels in Flash. Does anyone use tracking pixels in their Flash creatives? If so, how/where do you embed them?
View 2 Repliesif I set the stage to be 800 px X 800 px, it does not appear square, neither does holding shift + drawing a rectangle. However, drawing an oval and holding shift seems to create a circle(though it could be I can't notice it because it's too small). Is there some way to make these appear square?
View 6 RepliesI'm trying to get my program to detect when certain pixels (not shapes) have been hit but don't know what sort of code to use for "reading" pixels. I read about the getPixel method, but it seems that's only for bitmap images?If it helps, I'm trying to put it into use with hitTest, with specific pixels rather than shapes in general.
View 0 RepliesIs there any way of forcing Flash 8 to use full pixels like photoshop?for instance. I want a button on X: -140 & Y: -30. This is the way I'm used to in photoshop but in Flash you can use (X: -140.5). It takes so much time to remove all these half pixels.
View 2 RepliesI imported and .png (bitmap) and converted it to symbol however when I place it on stage and look at it the corners (marker with red, edit: basically all the corners are somewhat incorrect) appear somewhat ugly, however when I zoom in to 200% I see that everything is correct. I'm also sure that when importing the .png image the pixels were correct. Why is it so and how to fix it?
View 2 Repliesi'm using the following code to ease mc's
PHP Code:
MovieClip.prototype.easingY = function(toY){ this.onEnterFrame = function(){ this._y -= (this._y-toY)/3; if(this._y > toY-4 && this._y < toY+4){ this._y = toY; delete this.onEnterFrame } } }
now i have to provide a Y position to move to...is it possible to change this code so that instead of providing a Y position i give it a amount of pixels to move (up/down)? ex. move 100 pixels UP from current y or move 222 pixels down..
I have a square grid with 100 grid squares in it.I want the cursor to display its grid position.Does Flash plot the position based on pixels - ie would my grid square have to be 100x100px or a multiple of that eg 200x200px? Or could it calculate the position no matter what size the square was? eg 186x186px ?
View 1 RepliesI'm in the process of making a website, but when I upload it the browser scrollbar acts strange. The website is [URL] and as you can probably see, the browser scrollbar is always there, but never scrolls more than a few pixels up and down
View 3 Repliesi know i should probably be more specific here, but what my problem is that i want to make something were when mouse is button is pressed a pixzel is created. now i assume you use bitmap data setPixel function. but i don't know how to set it up so you can zoom in as well.me. i'm trying to set it up this way because i want to be able to save it as an image.because i tried it once before but after i had done all this i windedup not being able to save the image properly. it turned out having anti-aliasing around all the pixels.
View 3 RepliesI have a math issue that I have some problems solving.
screen1
screen2
I need to calulate the pixels inside the squares and put them inside an array:
The main square rotates(see screen2) and i have the angle.
Something like attached code.
I have the following values:
- x/y of the main square. ( reference point )
- Width/height of the main square
- Width/height of all the squares
- Angle of main square..
I actually try to do the following: I have loaded an external image in a bitmapdata object and create a bitmap from it which i attach it to a sprite/MovieClip in order to have mouse events on it. Now under the previous logic i loaded two images (let's say circles) of the same size one that has a particular color and is covered by its black foreground circle. When i press left mouse button and hold it down i want while the mouse is moved to erase the foreground circle's pixels and so the background image starting to appear.[code]...
View 1 RepliesI'm populating a dropDownList with arrayCollection of strings. I want the width of the drop down list control to match with the size (in pixels) of the longest string in the array collection. The problem I'm facing is: the font width of the strings in the collection are different e.g. 'W' looks wider than 'l'. So I estimated the width of a character to be 8 pixels but that's not pretty neat. If a string that has many 'W' and 'M' is encountered the estimation is wrong. So I want precise pixel width of strings. How can i get the exact length of a string in pixels??
My solution that estimates all character to be 8 pixels wide is given below:
public function populateDropDownList():void{
var array:Array = new Array("o","two","three four five six seven eight wwww");
var sampleArrayCollection:ArrayCollection = new ArrayCollection(array);
[Code].....
I have a Flash object that I need to embed in a page, and I've got it in a wrapper div that is styled to the exact width of the object: 323px. The problem I have is that when I zoom the whole page in the browser (for example, by using ctrl+mouse wheel, or ctrl++ or ctrl+-, the wrapper div zooms, while the flash object does not. Is there a way that I can specify a width in physical screen pixels, so when I zoom in or out, the wrapper div stays the size of the Flash object?
View 1 RepliesI'm looking for a way to get all of the black pixels from an image that I load in. This is in order to make all of those black pixels transparent.
View 4 RepliesI've got some lines of code to scroll a content-movieclip inside a mask:
ActionScript Code:
ratio:Number = (content_mc.height-mask_mc.height)/mask_mc.height;
var deltaScroll:Number = (this.thumb.y-oldPos)*ratio;
content_mc.y -= deltaScroll;
oldPos = thumb.y;
Now is the problem that at the bottom some pixels are getting lost. The content-movieclip isn't placed high enough so that the bottom pixels are not inside the mask (and therefore invisible). I think this is because ratio got a lot of decimals, and they are getting cut off in deltaScroll.
I have a MC, called CurBtn, and I want its position to round by 70s on the X axis, and 80s on the Y when it's dropped. Here's the code I'm using, that isn't working very well:
[Code]....
Coming from java I could manipulate the background pixel by pixel as well as read color values of a certain pixel at coordinates (x,y).Now in flash I seem to be able to load a bitmap image. But I need to change the background color and also be able to read the color value of pixels.
My flash movie size is 800x600, sometimes bigger.I am trying to do simulations (biology) of a moving object leaving a trail (changed background color?) Then other moving objects can detect that trail (read background color) and increase or decrease the color value.
I'm trying to create a BitmapData object from a movie clip, but I need to also get the pixel data in a layer that has been set as a mask in the authoring environment. All I'm getting is the masked in pixels, but I also need the mask itself, and I'm can't seem to find a way to do it.
View 2 RepliesI got one bitmap with a (almost) one color background. i need to change all of this with pixels at same x,y from another bitmap.
I know i need to run it through a double for loop and then into an if sentence.
like this:
If (color at x,y is > redvalue && color at x,y is > greenvalue && color at x,y is > bluevalue)then exchange with pixel from the other bitmap.
Ive got an object called "heart" and I have another object called "k". The heart follows the mouse and when the heart hits the k I want the k to move upwards by 10 pixels. Can anyone give me the AS on how to do this?
View 1 Repliesdoes any one know if it is possible to pick out individual pixel values from a loaded image using actionscript.I am looking to to some sort of image to sound type of project. Where colours may effect the volume of different sound streams
View 5 RepliesWondering if there is a way or a formula for converting pixels to centimetres. Im doin a Pythagorass theorem widget flash thing.
View 7 Replies