IDE :: Printing Movieclips With Filters Applied
Dec 16, 2008I 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 RepliesI 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 RepliesOk, so I have these white shapes that I am "painting" using filters. (import lash.filters.ColorMatrixFilter).I apply it to the shapes using:
ActionScript Code:
myRoot.shapesCreated[i].filters = [eval(this.currColour)];
The problem is this: It paints really nicely, but when I use print(), it just prints the shapes, without the applied color transformation.
Printing an MC is easy enough. But I am having trouble printing an MC which has multiple MCs inside of it. They just don't get printed.
I am trying to avoid printAsBitmap.
i've been trying to get to grips with OOP and have so far managed to comprehend the basics of classes, methods, properties, the constructor function and property inheritance, helped by a number of examples and tutorials from the web and Moock's Actioncript - The Definitive Guide (O'Reilly). however, i've reached a sticking point when i try to apply these principles to actual movieClips. i want to attach movies from the library and control their properties using OOP, but i cannot work out how to apply the custom properties i've created to them. for example, i have a constructor Ball, with a property move, and i want to create movie clips ball1, ball2, ball3... which have properties such as radius and speed.
View 3 RepliesHow Can i Add Filters to movie clips By using As3 Code?
View 2 RepliesI am building a map which has different layers on it, all on top of one another, all 700x700px and all movieclips. I have a print button (PrintUp) which sends the movieclips to be printed, however when I print, they don't sit on top of one another, they come out separately. How can I get them to print on top of each other like they are in the swf?
The two movieclips are "Background" and "Grass"
Both 700x700 and exactly the same X&Y.
Here is the code below:
PrintUp.addEventListener(MouseEvent.CLICK,Print);
function Print(e:MouseEvent):void{
var printJob:PrintJob = new PrintJob();
if (printJob.start()) {
if (Background.width>printJob.pageWidth) {
[Code] .....
I somehow am able to write bits of code but am still learning how to restructure code so that it is more efficient.I have 15 buttons. Each one, when rolled over, should change the color of 2 movieclips underneath it (and when rolled out, should change back). I have the below code so far but I don't think I have to re-write the functions each time. How do I "re-use" the function code (or, only write the function code once), but specify what movieclips the function should be applied to? These are just 2 of the buttons of the 15:
Code:
menu_mc.invis1.addEventListener(MouseEvent.MOUSE_OVER, changeColor);
menu_mc.invis1.addEventListener(MouseEvent.MOUSE_OUT, changeBack);
function changeColor(event:MouseEvent):void[code].................
How can I use the Tween class to apply filters to movieClips?
i want to apply a DropShadow through a tween so that it applys smoothly. Actually i want it to apply on rollover and remove itself on rollout.
I have a XML file with the following content:
Code:
<?xml version="1.0"?>
<schedule>
<class>
<name>AAA</name>
<time>9h30</time>
[Code] .....
Happens that it actually assumes the correct number of XML elements (2 classes), however, I can only print data on the first container (only the time and name from the first class).
So I've recently started working with ActionScript 2.0 at my internship. I am now working on a game, that already had all its graphic interface designed and I am doing all the programming. Basically what I have to do is get some movie clips (randomly) from a different scene and print them on another scene in a designated area (but also randomly). I am not sure the best way to explain my problem, so I made a sketch of how the scene should look. [URL] So basically I want to print the movie clips on the black space, as if they were the red squares. But the movie clips are stored in a different scene in the same project. So I want to know two things: how do I get the movie clips from the different scene? And how do I print those movie clips on the specific area?
View 1 RepliesI have a sprite that has a scrollbar that uses the scrollrect feature. The sprite has several bitmaps and textfields. When I print the outer sprite (The one with the scrollrect) all of the textfields outside the scrollrect are cut after the first line. In case anyone else is having problems with printing sprites with scrollrects using the bitmap printing option fixes and prints most of the stuff in the sprite. Excluding all textfields outside of the scrollrect. This however can be fixed partially by embedding your fonts.
So now the only problem left is printing multiline textfields that are outside the scrollrect. P.S. Imho the scrollrect should have nothing to do with the printed area of the sprite because the printJob.addPage has a printarea parameter.
I have a short TEXT that I turned into a symbol, it is a MovieClip on the stage. I applied a preset motion of blur fly in to it and it does fly in but does not blur. I tried to use the motion editor to increase a blur to 255 but even when I add it on the initial keyframe, there is NO blur.
View 10 RepliesI'm not quite sure why the external CSS is not being applied to the text field. Does my cssLoaded function need to be triggered elsewhereFirst, the CSS:
Code:
p {
font-family: Arial;
[code]....
my CSS is not getting applied why?
Code:
var myLV_lv:LoadVars = new LoadVars();
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
cssStyles.load("styles/cssStyles.css");
[code]....
Now the text is succefully being loaded into the dynamic text field and also in the trace statement i get "success loading css" so it looks like the css is loading as well...Also the font Verdana has been embedded in the movie(so shudnt be a problem in that respect)..and the button render as html is pressed!!So why is the class not being applied to the word "Education"?
[code]Now the text is succefully being loaded into the dynamic text field and also in the trace statement i get "success loading css" so it looks like the css is loading as well..Also the font Verdana has been embedded in the movie(so shudnt be a problem in that respect)..and the button render as html is pressed.So why is the class not being applied to the word "Education"?
View 2 RepliesI'm having a problem with a tutorial i have been following to create a website. I followed the whole tutoril through until i get a problem at the final steps.Here is the tutorialQuote:49. after you have typed everything you wanted on the diffrent squares now its time to make it all work. what you need to do is to click on the blue square ontop of the �home button� dont double click it just select it. afte you have it selected press (F9) this will bring up the the actionscript window type the following
on(press){
gotoAndStop(�home�);
}
[code]....
I've got an AS3 loader making a Get URLRequest on the local machine (not browser based). The URL being reported back has this:[url]explain why [[DYNAMIC]]/3 is being appended to the URL at runtime? No encryption has been applied to the swf file. What does [[DYNAMIC]] mean?
View 5 RepliesHow do I change the CSS rules for a TextField that already has style associated with it ?
This TextField is inside a RichTextEditor.
Here's the code I'm trying:
_rSts: StyleSheet = new StyleSheet();
_rSts.parseCSS('font {font-family:Verdana; font-size:12;}');
_rTextField.styleSheet = _rSts;
but when I assign the new StyleSheet to the TextField it throws an exception stating that I cannot assign a style to an element already containing a style.
I have a mc that contains dynamic text field... My mc is animated in the main timeline..Now I load text from xml and then asign to textbox and I apply stylesheet to it.But when stylesheet is applied my mc that contains that text cant be animated..
View 2 RepliesThere 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.
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 RepliesWhen 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 RepliesDoes 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.
I am in flash 8. I am working on a simple button symbol and the actions panel is showing "Current selection cannot have actions applied to it" and the options are unavailable".
View 21 RepliesI have narrowed my issue to this. If you create a sprite add a square and a startDrag on press to that sprite. then add that sprite as a child to a container sprite. Create a button on the same level as the container sprite and add a mouse click listener that causes container sprite to rotate using rotationY or X. Now run it, first you will notice you can drag the square no prob. Once you hit the button and rotate your container using rotationY or X the drag does not work. Other properties such as x, y , alpha can still be set but startDrag or stopDrag. I think this is a bug as I have found several people reporting on this but not solution.
View 2 RepliesI have instances of a button and I cant seem to add any actions to them! I just get the message in the topic title. I have another flash file that has buttons with actions applied to them, but this one wont let me!
View 1 RepliesHow do I clear a filter after having applied it to an object. In particular, I'm bluring an object while animating it but want to clear the blur once it's hit the destination mark.[code]
View 3 RepliesI've got something like this:
Tweener.addTween(captions.getChildByName("captionLine_"+i),{x:0,time:5 ,transition:"linear,onComplete:ready})
function ready():void{
trace("Ready!")
}
How do I have to alter this, so that I can trace the name of sprite on which the tween has been applied to?
I'm creating simple buttons (as I've done numerous times in earlier versions of flash) and need to apply an action to the hit phase - however keep getting the above message in the action script window. I just installed flash CS4 a few weeks ago.
View 4 RepliesI'm using a class which applies a visual reflection-effect to defined movieclips.I use a reflection-class from here:link to source.It works like a charm except when I apply a rotation to the movieclip.In my case the reflection is still visible but only a part of it.What am I doing wrong? How could I pass/include the rotation to the Reflection-Class?[code]
View 2 Replies