ActionScript 2.0 :: Change And Remove Rectangle Object And Use Mask For Scrolling In Movie?
Aug 30, 2007
[code]...
i just copied this code from the source and experiments, just want to ask for help on how can i change this so that the scrolling of the contents is much faster.. also how can i change and remove the rectangle object and use the mask for scrolling in my movie
i made two movies clip movie named (masK_mc) and the other named (over_mc) what i need to do i need when i start drag with (over_mc) and when i moved over the (mask_mc) i need the part of mask_m which moved over by (over_mc) removed and show the bacground of (mask_mc) i made the part of drag and over but i need to know how i can remove part of movie clib when i over by over_mc
Is there a way to mask a movie clip in a way that alters the width and height of the object? I have a child movie clip that is larger in width so I'm having issues manipulating the width, height and coordinates proportionally of the parent movie clip.
I'm attempting a neat little effect where I've got a fellow walking (already drawn and animated) and I'm using him as a mask over the top of a simple colored rectangle - the idea being, by changing the color of the rectangle, I can have a walking man with color effects happening. At this stage the square is just green, because the mask is not quite working correctly. The edges of the animated mask glitch up and don't work as expected
I have a button that when clicked is supposed to draw a rectangle behind my mask layer but when I try to run it I get this error: 1067: Implicit coercion of a value of type Class to an unrelated type flash.display:BitmapData.
Here is the related ActionScript Code: fabric_mc.phoenixFab.addEvenetListener(MouseEvent.CLICK, changeFabric); function changeFabric(event:MouseEvent):void{ this.graphics.beginBitmapFill(phoenixFabric); this.graphics.drawRect(181, 46, 319, 319); this.graphics.endFill }
I'm having a little difficulty getting to grips with the getBounds() Movie Clip function. I assumed the getbounds() method simply got the boundary coordinates for the movie Clip, that one could use to draw a rectangle. This is what I'm trying to do;I'm trying to get a movie clips coordinate bounds, and use the min and max values of x and y to draw rectangle around the object. Simple right? But in my case, I'm getting some unexpected results. I wonder does ther registration point of the object determine the coordinate values? Also are the coordinate values local to the clip instance or global to the stage?
I am attempting to use a "magnifying glass" effect to view a larger layer (e.g., 600x300 ) through a smaller layer (e.g., 200x75 ) by use of a mask layer. I have 4 layers to my code:
Is there a way to remove the yellow rectangle that appears on objects when the Tab key is pressed. This mostly applies to MovieClips that are Simple Buttons.
It's a flash banner with a simple image, and then I want an xml of quotes that get pulled into the banner a mask scrolls in and then when it scrolls out, the words have changed to another random quote?When I mean scroll I mean the quote remains in place but a mask appears (from right to left) that covers the words, once the 'mask has got to the left side of the quote all the letters are gone - the mask the reverses (right to left) to reveal a new quote."Random Quotes from XML mask swap in Flash" isn't getting the right results!
I built a quick and dirty site header banner, with text masking a scrolling background of several images. The text is the mask, so the images show up inside the text. Viewing it works in Flash CS3, but when I publish it, I see the images scrolling from right to left, but they are not masked.
Im making a scrollable mc. Easiest thing in the world.... but the damn scoller just will not stop when the movie clip it's scrolling ends. It stops....eventully... but not close enough. What actionscript do I need to use and where do I put it?
I have made a Actions Script 3 code that fetches an image, does an addchild do it and adding a mask to it aswell.
Everything works fine, except the mask I've made is an animated MovieClip, and this MovieClip hides some spots where 2 or more objects inside that MovieClip overlaps each others.I haven't found how to remove this effect, so the mask is valid on overlaping aswell.[code]...
I have a as3 class that loads a number of images from a given location, they are all loaded dynamically with imageloader. However I'm trying to make a Xray screen for all of them, so when I click and drag the Xray screen around, it will reveal the images loaded under each picture, creating a sort of Xray effect.I tried using masks, however since the images are all loaded dynamically they are its own class with its own layers, I'm trying to make a mask that will work for all of them (I load 2 picture for each image, example car.jpg and carb.jpg, b.jpg being the inside image).so I have my stage ---> [MyXray Box, and my Images
I am trying to learn AS3 and I am trying something very basic that I can't seem to get to work.
I have a square with a short text inside of it. The fill color of the square is green. I grouped these items and converted them to a symbol called "rectangle". Then I placed a checkbox on top of the movie clip and gave it an instance name of "check".
What I want to do is change the color of the rectangle from green to red whenever the checkbox is selected.
I think I know "how" to do it - if checkbox selected = true - then change color to red. I am looking for the syntax.
I have a normal rectangle shape in flash. Id like to change the fill color of it using code, so I can use flashvars and be able to change the color of the shape with a few HTML adjustments.All I need to know is how to change the fill color of the shape. I've got the flashvars sorted.
I realize this is a total newbie question, but it is driving me crazy. In Flash Professional I have a movie clip, say 1000px high and 50px wide. I have it contained within (under) a mask layer where the mask is 100px high and 50px wide. In my program I move the movie clip vertically and as expected it is masked such that I only see 100px vertically.
My question is: how do I remove the mask from my movie clip? When I debug inspect the movie clip in Flash Builder, its .mask property is null. But it is masked..
I'm trying to change the size of a rectanlge when it is clicked. At the moment, the rectangle increases in size from both the top AND the bottom. I want to have it so that when it is clicked, only the top of the rectangle increases.
how can I change or tween the color of a dynamic rectangle's borders ? (created with LineTo)I d'like the color to change when I hover the rectangle...Right now I 've always been to change the global color of the rectangle with it changes the color of the borders too.
I am a new user. How do I can add more thickness and change color of a rectange Sprite object on mouse over and on mouse out I want to make it normal again.
I have some unwanted extra space at the bottom of my scrolling text box. I have been trying for hours to remove it but I'm not sure what I'm doing wrong.[URL]
I currently have some Flash code that adds a rectangle movie clip from my Library ("MaskRectangle") to use as a mask:
private function makeMask(w:Number,h:Number,posX:Number, posY:Number):void { var msk:MaskRectangle = new MaskRectangle(); container.addChild(msk); msk.x=posX;
In AS3 is there an easy way for collisions to take place between a moving circle and a rectangle object. A moving circle has a direction and you need to know how it collides with an object rather than knowing it just hits. In .net you use a points test where you test several points around a circle to see what hits an object and then you can work out what direction it will bounce off.