ActionScript 2.0 :: Filters On Large Objects
Feb 5, 2011
I've been working on an old flash project from a few years back and ran into a little trouble with filters.My program requires the ability to zoom in to any zoom level, which works perfectly fine. And now I've made it so the selected object would glow with the use of Flash's Glow Filter.The problem which has arisen, however is that I get a warning message: "Warning: Filter will not render. The DisplayObject's filtered dimensions (4154, 4154) are too large to be drawn."Now obviously I understand why this would occur, however I'm wondering if there is a way around it. My first guess was setting up a screen size mask, obviously way lower than the max resolution hoping that cull the movie clip to the size of the screen, but that was unsuccessful.
Is there a way to dynamically clip objects and if so would that work? As surely if I could clip the object in run time to the bounds of the screen, the resolution would never exceed that of the screen. If not, any other ideas as to how I can make a large object glow?URL...Also there's dl.dropbox.com/u/956557/Glow/GlowTest.fla if you want to take a gander at the source for that.
View 5 Replies
Similar Posts:
Oct 12, 2010
I am preparing a navigation (using panning) movie in Flash. There is very big (6000x4000) image (area photo from top) on the stage and it's position moves once user moves his mouse. Thus, user can navigate on the area.But flash really drives me insane while working on this movie. It usually suddenly stops and quits with error.I'd like to ask what can i do? should i use a different method???It seems, Adobe becomes stupid on large files and there are bugs in somewhere Flash. For example; how can i use a method like Google Maps (it loads an another image when you move another position. Not loads all images together and doesnt consumpt large amount of resources.)?
View 1 Replies
Oct 12, 2010
Part of a larger presentation I've made, there is some background music. What happens is an XML file is read to get a file to play. It plays. When it finishes, it reads the XML again to get the new file. It can also stop when a video plays elsewhere in the presentation then I pick it up where it left off and start the process again. Trouble is, the presentation randomly stops. The music stops and the slides in the presentation stop. The music and slides come from a single XML file. There's also a third part of the presentation (a text crawler) that never stops.
This comes from a totally separate XML file. I never get an error, the presentation just stops on a slide and no more music plays, but the crawler keeps crawling. I've removed all the code for the music and it runs perfectly so it's obviously related to how the music is managed. So, finally, my question is how do I manage sound objects? If I need to create new objects for each sound I load and play, I'll need to do manage the sound from a single function, right? Something like:
Code:
function whatever():void {
if song is not loaded {
read xml, load and play song;
} else if video is playing {
pause the song;
} else if video has stopped playing {
resume song;
}}
View 4 Replies
Jun 10, 2009
I'm building my first Flex custom component, in Flex 3. It is a data table based on the 'Grid' container class, with a simple text Label in each cell. (DataGrid and AdvancedDataGrid were not appropriate starting points for my needs.) The component works quite well using smallish tables, but I tried stress-testing it using a larger table, and have been disappointed by the results.
The component creation process has some slow spots, but those are in my power to optimize and aren't my primary concern. What worry me more are what appear to be limitations in the Flex framework itself.
This 'large' sample table has a bit over 7000 cells in it. This is largish, but still 1-2 orders of magnitude less than the biggest I need to accommodate. In standard Grid structure, the main portion of the component consists of a Grid with 400 GridRows of 16 GridItems each, plus a few other smaller ancillary Grids.
Once the table renders, I find the following:
Mouse-related events are slow to fire. Specifically, I have rollOver/rollOut event handlers registered on each table cell, to let me highlight the cell under the pointer. On a small table, I could move the mouse over the table very quickly, and the highlighting would follow the pointer in real-time. With the larger table, the highlighting is very jerky, changing only about twice per second, skipping over many cells.If I place the mouse cursor over the component and leave it there, my CPU is pegged (one processor core, anyway), and stays that way until I move off of the component, when it drops to idle. My component isn't doing anything at all at this point.
It feels like Flex simply cannot scale to support component trees that are this large. I shudder to imagine how it would behave with 100,000 cells. Perhaps I'm pushing the Grid beyond its intended use, but having an object per table cell doesn't seem like an unreasonable model, and ~14,000 objects in the tree (a GridItem and a Label per cell) seems pretty modest.
View 5 Replies
Aug 22, 2010
I have a large movieclip that I am adding to the stage (large in dimension, not filesize). Once it is there I plan to manipulate it's X position by clicking different parts of the movieclip. Unfortunately, where I am moving the clip to is based on stage.stageWidth, which changes as soon as you add this movieclip to the stage. So I can't make any accurate tweens or anything like that. Is there a way I can set objects to not affect the screen width when they are loaded? Or still access the property of the actual window's width?
View 3 Replies
Mar 5, 2010
I'm trying to think of the best way to add event listeners(mouse events) to an invisible object which is quite large. A straight forward way I can think of is probably setting the object's alphy property to 0. However since that object is very large, it will probably have a huge impact in performance. Setting invisible to flash however, will stop it listening to events.
e.g. I have a massive area 4000x4000, but I only want the 2000x2000 area to listen to events.
Other methods I can think of is to have the smaller area in the layer below the big area, covering it from view, though I'm not sure if the lower layer can pick up events? another way is maybe just have the big area listen to events, but in the handler I'll write some code to check if its within the boundary of the smaller area.
View 6 Replies
Nov 7, 2009
I am working on a project where I need an interactive matrix of 500x500 clickable lements. I thought this would be an easy task in actionscript3 but boy was I wrong. was able to create a matrix where each element was a Sprite object with attached Mouse click event. But here the performance problems begin. FlashPlayer10 can handle up to 100x100 matrix, but when I increase my matrix I start getting script timeout in browser player... Here is how my "unfinished" matrix looks like.
So how should I approach this problem? I was hoping flash will be able to handle so many elements, but I guess I was wrong. I want to have a pan control to pan around for objects off screen and of course zoom in/out control.It's true I'm not very professional in Flahs and actionscript but a friend who is told me this would be no problem implementing in AS3? I need this in flash as the thing needs to be hosted on website (unless there is a better tool for doing something like this...).
View 12 Replies
Jan 11, 2011
I'm devloping some library classes for flocking/steering behaviours on large numbers of objects (2000+). I'm finding that at < 500 instances, performance is reasonable. As the numbers increase, framerate bogs down.
I've seen remarkable performance with libraries such as Flint or Box2D with ridiculous #'s of particles / objects, so it should be possible to optimize / refactor my code to be a bit better.
I'm aware of the basic optimizations, such as bitwise operations and optimized for loops. Are there any more fundamental approaches I should be considering? For example, currently each instance is a vector-based MovieClip. Would working with BitmapData be more efficient?
View 1 Replies
Jun 28, 2009
There is the following bug in the gallery:Once you open up the gallery you see a container with all small thumbnails.If you start mouse over the main container you can see the following happen:
- shadow filter change
- quality of the thumbs change
There is a rotationY and rotationX on the main container. As soon as i remove that there is no bug and the shadow and quality of images is perfect.So what does flash do to children and their filters inside a container when using transform propertys before a MouseEvent happen to that maincontainer.You should use F5 a few times before you excaly can see it.
View 9 Replies
Jul 25, 2008
I've run into a bug where text (static or dynamic) is cut off when filters are applied. For example, I can create a static text object on the stage with a common font (Arial) and put some text into it, and it displays just fine. I'm putting a tween on it to gently fade it in from invisible (alpha=0%) to full (alpha=100%) and back to invisible. At this point, the text looks just fine. The trouble starts when I add a filter, like drop shadow for example. Once the filter is applied, the last character is cut off. For example, if the last word ends with an 'e', the 'e' character is lopped off vertically so only the left two thirds of the 'e' displays and the rightmost remaining third is not visible. I've tried quite a bit of adjusting things to fix this... adding multiple extra spaces at the end, increasing the size of the text box, several different fonts... nothing works except taking the filter back off. This is on the Mac version of Flash, by the way.
View 4 Replies
Dec 18, 2009
When selecting a movieclip or text box, the "Graphic Effects: Filters" dropdown is NOT available in the "Properties" window. It's not grayed out....
View 13 Replies
Nov 23, 2009
Does anyone know a way to generate a print job that doesn't lose the movie clip filters (drop shadow, glow, etc.)
It seems to drop them regardless of whether printAsBitmap is true or false.
View 7 Replies
Oct 19, 2010
How Can i Add Filters to movie clips By using As3 Code?
View 2 Replies
Apr 27, 2009
I'm making a picture gallery. I have a thumbnail container, which contains a mask and a dynamically generated mc called "thumbnail_mc". Thumbnail_mc contains all the sprites of the thumbnails.When I click on a thumbnail, the thumbnail get's a glow filter added to it. Now, I want to remove all filters on all the other sprites before I apply that filter to the Sprite.
This is what I'm trying to do:
Code:
thumbnail_mc.children.filters = [];
How do I do that?
View 3 Replies
Oct 26, 2009
Im using this filter to blur a movieclip on a click event.
var filter:BlurFilter=new BlurFilter(4,4,BitmapFilterQuality.HIGH);
var filters_array:Array=new Array();
filters_array.push(filter);
mainCradle.filters = filters_array;
This runs fine when I go to control -> test But when published it doesn't apply the filter well it does but you caunt see it on screen.I created a dynamic text box and sent mainCradle.filters to it and it would appear that a filter is attached. Its just not using it.
View 4 Replies
Aug 3, 2011
Basically, the effect I'm going for is, you click on a button that calls an mc to the stage and blurs everything below it. When you click another button (that was also called), that mc (and button) is removed, as well as the blur filter.This is the code I have. (Also, just ignore my stupid function names. I pretty much just name them after the next word I hear in the song I'm listening to :)
Code:
hint.addEventListener(MouseEvent.CLICK,manipulation);
function manipulation(event:MouseEvent){
this.addChild(newHint);[code].........
and I don't have any compiler errors, the stuff just simply won't unblur.
View 6 Replies
Jun 7, 2009
According to flash documentation Filters are in PROPERTIES panal.But Filter are not available.
View 9 Replies
Aug 30, 2009
i have on the timeline a movie clip symbol with a blur on it. its tweened keyframed.in the stage i can see the effect. when i apple enter to do a quick .swf of my video, it doesnt show up.the image is crisp and not blurry...so i then tried to render out a .mov of the project (because thats going to be my final file type).when i exported a quicktime, there was still no blur filter
View 1 Replies
Nov 26, 2009
I have a TextField object and i want to apply the bevelFilter object with some settings to a part of the textfield and with other settings to the other part of the textfield, like the textField.setTextFormat() does it.
View 1 Replies
Sep 16, 2010
I am starting to learn how to style components in Flash/AS3.
One of the things I unable to figure out is whether or not I can apply a filter/effect on the label of a component rather than on its skin.For example I want to have a button with a drop shadow applied on the text.
View 1 Replies
Jan 19, 2012
how to apply filters in graphics? I'm curious cuz of this video here. It seems like the very same filters people use for text tool. How did the he use the filters in graphics?
View 3 Replies
Oct 12, 2011
I'm wondering if there is some library (or maybe tutorial?) which can produce Instagram-like color tweaks for Bitmap/BitmapData objects in AS3. Color Matrix/ColorMatrixFilter will not be probably able to achieve such as results or yes?
View 1 Replies
Jan 28, 2008
I figured out why my external, embedded player wouldn't link back to my site: I was using _self rather than _blank, which I'm sure many of you knew.
However, my next stumbling block is that any subsequent link now needs to be authorized if you are using a browser with a pop-up blocker (IE7, Firefox, etc.). What I've noticed is that YouTube has somehow completely bypassed this, and I need to figure out how.
First, check out this site for an example of my player and YouTube's player on the same page: [URL]
Note in the lower-right the YouTube clip. Click that first. Notice how the pop-up blocker doesn't ask for permission? Then, beneath that is my "Comic Wonder" player. If you click on any links, it'll work, but only if you allow your pop-up blocker to allow it.
how YouTube has bypassed that?
View 9 Replies
Apr 15, 2011
I am creating an interactive canvas where a user can click on items (movie clips) in the canvas and the movie zooms in and displays the item.
The problem is when I add filters to these items some of them disappear in a minute or so.
here is the code:
public function setEffects(){
var BackValue = MovieClip(root).BackZ;
var halfChange = BackValue / 2;
[Code]....
View 1 Replies
Jun 10, 2010
if my code is
Code: Select allvar mcFilters:Array = new Array();
mcFilters = mc.filters;
mcFilters.push(new GlowFilter());
[code]....
View 4 Replies
Dec 16, 2008
I am trying to print a movieclip that has a colorMatrixFilter applied to it, but when I print, it comes out without the filter applied.
View 3 Replies
Mar 11, 2009
i just ran into something i've never thought about.I want create a bitmap from a movieclip. Nothing special by now,but when this movieclip has some filters added, then they will be ignored, and thats what i dont want.I tried to copy the movieclip into another movieclip and then make a bitmap from its parent, but no luck there either (or i made something wrong), still no filters visible.
View 2 Replies
Apr 14, 2009
i have a series of MCs with glow filters applied to them that grow in size when moused over. however when they are "moused over"/as the mouse crosses the "borders" of the shapes to gain focus the "growing" animation is not smooth, it like jerks around a bit as the mouse crosses the borders before the animation actually happens. i set all of the MC's to mouseChildren=false so i know it has something to do with the effect. it seems that happens with most of the effects i've tried.
does anyone know how to make the mouse NOT interact with the effect/filter?
View 4 Replies
Apr 15, 2009
I have an MC that I'm using TweenMax to manipulate filters on. I want to alpha the clip to 0 but have the outerglow remain, almost like a stroke, how this can be done, inside the mc is a PNG, so really I'm trying to create a dynamic stroke around the non - transparent portion of the PNG.
View 1 Replies
May 21, 2009
I drew a logo and made it a movie clip but I can't get the filter in the property inspector to work correctly. The logo is blue and the shadow shows up blue and the bevel won't work.
View 1 Replies