I 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??)
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.
How can I add a Squeeze transition effect between frames using the transition manager class on a simple slideshow using the goBack and goForward functions in ActionScript3? Below is the code I have so far:
stop(); function goBack(event:MouseEvent):void {[code].....
I 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
I've been away from Flash as3 for a while, but today I need to write a map link application using it and i'm pulling my hair out with an annoying problem!
I just want an overlay to appear when a map movieclip is clicked and fade out when somebody then clicks the map. The fade in works fine, but the fade out doesn't do anything!?[code]...
I was just out and about looking for a tween class to rotate an image and I came across "Transition manage"
[Code]....
trouble is, the transitionManager doesn't work... flash just asks me "what is transition manage!? - I'm assuming I followed a bizarre walk through because I've never heard of transition manager? Also "rotation" or .rotate isn't a property for the tween class to be able to change? What am I doing wrong?
TransitionManager.start(babyPreloader,{type:Fade, direction:Transition.OUT, duration:0.5, easing:Regular.easeOut}); var tempPreloader:DisplayObject = babyPreloader as DisplayObject; this.removeChild(tempPreloader);
But since this does not wait for the transition to complete. I cannot see the transition happening. Is there a way to have a even listener for transition complete?
Got 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?
if 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?
I'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.
Is 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.
I 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?
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 am trying to do the background images for a website, but I want them transitioning. So what I done is import each image onto its own layer (four images in total), and I turned them all into a movieclip. I am then trying to add some code to make them transition between each other. I am attempting something like
var myTM:TransitionManager = new TransitionManager(my_mc); var myTM1:TransitionManager = new TransitionManager(my_mc1); var myTM2:TransitionManager = new TransitionManager(my_mc1); myTM.startTransition({type:Fly, direction:Transition.IN, duration: 3, easing:Back.easeOut}) myTM.addEventListener("allTransitionsInDone", doneTrans); function doneTrans(e:Event):void{ [Code] .....
Is there a more logical way to do this? Each image is a movie clip and I basically want them like a background slideshow?
I am doing a small transiction using TransitionManager.start() function. how can i call a method after finishing the animation? i mean how to add event handler for this?
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 ?
I'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
i 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.
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]...
I'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);
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?
I'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:
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.