ActionScript 3.0 :: Image Fuzzy When On Masked Layer
Jan 25, 2011The image I'm referencing below looks fine when it's not on a masked layer, but fuzzy when on a masked layer. [code]...
View 4 RepliesThe image I'm referencing below looks fine when it's not on a masked layer, but fuzzy when on a masked layer. [code]...
View 4 RepliesSay I have a flash project, with 3 layers (a, b, c). Layer C is the background, and A has a couple of shapes that masks B. Now I'm just wondering if there's a way to add my objects (MovieClips) to the stage using AS3 and still maintain the masks coming from A, seeing as merely putting my code in Layer B doesn't do the trick
View 3 RepliesI am using loadMovie to load a JPG to a MC. The MC is one of 3 layers under a mask. The mask is not a tween. The image fails to load in the MC. When I move the layer with the MC out from the mask, the JPG loads.
View 6 RepliesI'm having some problems setting _x and _y positions of a movie clip attached (into a clip on a masked layer) using attachMovie. The code should position the clips icon1-8 on the y axis (100 pixels Ipart). The destination movie clip (the one with the actions) resides in a masked layer, I remember reading that there were some problems with masked layers in version 5. (i'm using flash MX). The movie clip is _root.openwindow.files
onClipEvent (load) {
for (var counter=1; counter<9; ++counter) {
this.attachMovie("icon", "icon"+counter, counter);
this["icon"+counter]._x= 37;
this["icon"+counter]._y=counter*100;
}}
I am pretty sure there is nothing wrong with the code.. as it works outside the masked layer..
I tried a search, but only seemed to find this problem with text... I've got two swf's that appear un-sharp and fuzzy but when i open the main files in Flash, they look sharp and fine, with no reason to assume that they would turn out all blurry...anybody encountered this before?
View 1 RepliesI have two movie clip on the stage. The movieclip mc1 has a masked layer in it self that the movieclip seen like a ring ( like it has a hole in it ) and the movieclip2 is simple square movieclip that is under the movclip1 on the stage. So movieclip2 is seen from within the hole of the movieclip1 but it doesn't catch events when i click mc2 (the movieclip under) from within the hole of the mc1.[code]...
View 5 RepliesI want to mask a movie clip with another one, the mask is a dynamic square which expands to the whole scene.Anyway, I wanted to now what is the relation between the layer of the masked movie and the mask itself,(should they be at the same level or not?) I use the above script:
_root.createEmptyMovieClip("mask", 22);
_root.createEmptyMovieClip("masked", 21);
masked.attachMovie("home_btn", "masky", 0);
_root.masked.masky.setMask("mask");
[code].....
can a input field work if it has a masked layer above it?
View 4 RepliesThis is something I tried to do once long ago with Flash MX, and it did not work for me, and now with CS3, I find that the same concept is not working. What I am trying to do is make an animation where the text appears via a masked layer, but I would like the mask's gradient to be revealed in the animation. Here is what I have: And here is how it is being displayed during the animation:
View 8 RepliesI am trying to take a snapshot of the masked region of an image... so, I load my image then perform the following functions:
private function manageLoadedImage(e:Event):void
{
_bitdata = e.currentTarget.content; // get the bitmap
_bithold.addChild( _bitdata ); // add the bitmap to a sprite on the stage
[Code]....
I have a movie, inside that movie I have a thumbnail editor name ThumbEdit.
ThumbEdit has a movieclip on its stage called "holder1". In the document class of ThumbEdit I create a sprite "_bithold" and place it on the stage at holder1.x and holder1.y. When the image loads, I add the image to _bithold and then mask _bithold with a shape. So, I want to grab a snapshot of the masked region of _bithold but I'm not sure how I should go about doing that.
Try to mask a dinamicaly loaded img and not work, is a limitation from Flash MX or I make a mistake in my code?
View 5 Replieschange the following php/AS3 to make it save the dynamically created masked image to the server instead of offering it for download? You have to pass it variables from the as3 AT THE BOTTOM OF THIS POST...
PHP -
<?php
if(isset($_FILES['Filedata'])) { // basically if file data exists to actually upload.
[Code]......
I would like to have an image that is wider than the viewing area be viewed by dragging a slider left or right, it's basically just a custom scrollbar. My first inclination is to make a mask and put the image behind it, and then I assume I would have to connect the slider to the image somehow so when user clicks and drags slider left or right, the image slides with it to show the part so it that are obscured.
View 5 RepliesI'm trying to write some ActionScript which will accept a mask and an image, then mask the image and put a border around the result (assuming that the mask is always 100% opaque).
For example, if my mask is a poorly drawn star, and my image is a bunch of flowers, I want the result to be a poorly drawn star with flowers inside it and a border around it. Something like this:
I'm creating a shape in code based on some random points and then using it as a mask for an image. What I'm hoping to do is have the mask fade the image to transparent around the edges. I know I can do this using a gradient mask, the issue is how do I create a gradient on a shape that just fades out around the edges? The shape is not regular, so a radial or linear fill just won't cut it.
View 2 RepliesAlright, is there some way to keep a clip with masked content from reacting to the mouse?'ve got a button clip with a masked image inside (so the image that goes beyond the button's bounds can't be seen), but, when the mouse rolls over the masked-off image area, the button still reacts. I've been looking for a few days now, and I can absolutely not figure out what to do!
View 3 RepliesI am building a sliding image movie. It takes two photos and compares them by using "startDrag" to slide a "setMask" MC horizontally to reveal one photo under another. The idea here is to compare two photos taken 50 years apart.
[Code]....
As you can see I have two MCs here one is a mask and the other is a handle of sort. They work fine separately but I would like to have the two function in unison or as one MC. The handle MC is just that a handle that appears on the left edge of the masked image. So when user drags the handle the masked image moves as well. (or vice versa)
I have a Movie Clip object with a timeline, and it has 3 layers: a layer to stop the timeline at the last frame, a layer with regular drawing with mask attribute and a layer containing a target movieclip with the instance named 'target', that is masked by the layer above.
The drawing is very simple, not even a movieclip, just vector drawing. It's supposed to show the target movieclip only on regions where the mask layer has some drawing, right?
So, I created the method to load an image, listen to the complete loaded event and add the image to the target masked movieclip, but it disappears after the first frame! If i delete the layer with the mask drawing, works fine.
Here's a smaller version of the code.
package
{
import flash.display.*
import flash.events.Event;
[Code].....
Don't know if the flash layer on the view stack contain only the compiled flash swf file
View 1 RepliesI have a Flash movie that I've created but when I export the movie the text appears very fuzzy. I have the alias text set and also I set it at the highest quality jpeg on export.
View 8 RepliesNeedless to say, I have a case of fuzzy text. I have attempted to self-medicate by embedding the font, which now shows itself as one of my library items. I have made sure to use whole numbers for X and Y positions as well as the text fields width and height.
View 1 RepliesI have a simple gallery in my flash website. The gallery is a separate swf which is loaded into the main swf. When I view the gallery swf on its own, the images are crystal clear - but when it's loaded in the main swf, whether on my local drive or on the server, they come up all fuzzy. [URL]...
View 3 Repliesif i delete the preloader code/mc the image of the building displays shape but if i keep the proloader code in the movie and publish the building is fussy
View 1 RepliesI need a simple way to load an external image referenced in an XML file, into a layer (named "avatar") in my flash project..
By default I want it to load this image as soon as the flash widget is opened.
I have just taken over a Flash website for a friend (like two days ago!) He needs me to add a picture to a movie in his website. He likes how the previous designer has the images fading in and out not a slide show, i 10 layers with actions on each) so I figured I could duplicate/copy an existing layer & paste it into a new one... but here is my problem, when I change out the image on the new layer it also changes the image from the copied layer. What am I doing wrong?
View 1 RepliesI'm loading an image in a UILoader Component (created during runtime).
var lb:UILoader = new UILoader();
addChild(lb);
Now when I load any image into this then it loads on top of everything.I know this is because it goes over the top of stack. But is there any solution by which i can move it downwards or even at the bottommost layer. I've tried setChildIndex(lb, 0) though but it didn't work.
I downloaded an image from the web and brought it into Flash. I then created a new layer and began tracing over the image with the pen tool. When all was said and done, I went to use the paint bucket tool to fill in the sections of the paths I created. My only problem is I can't fill the image. I click and click and no color is being filled. I tried converting the selection to both movie clip and graphic symbols and I still can't fill it in.
View 6 RepliesI make my fla file and then want to move an image on the stage slightly without recording the movement!
I have tried many ways and cannot - I even set up guides as I end up deleting layer and resetting.
I've created two layers: 'actions' and 'msk';'msk' containes gradient transparent rectangle. 'msk' layer is hidden in flash IDE'actions' layer containes code, drawing rectangle of other color;
View 3 Repliesim trying to make a website based on flash.and im trying to link flash to XML.And here is my problem.I have a layer called "Pages", and im working in one of the pages.I made a timeline, which also had few more pages (5 to be exact).I want to load 1 linked image (as in you click on the image and then load something) on each of the 5 layer based on XML File, and when its clicked it loads on a new page in the "MAIN" site. If thats possible. How would I make that happen?
View 3 Replies