The attached piece of code produces strange results. When first run we get this result -- why does the first trace output include the XML elements, and the second only the text?
I'm having trouble getting any of my adobe software to produce a drop shadow without pixelating the image. I'm working with FL but I've tried PS and IL and everytime it ends up looking like an 8 bit graphic. It happens with all the preset effects. The laptop I'm using has a 4 gigs of RAM and a core duo with a 512 MB graphics card How can I set my software to produce the highest quality effects?
I looked at the following example in the AS3 Reference: [URL] It is unclear to me looking at the package example how to apply this in standard ActionScript 3 without packages to a Movie Clip resident in my Library that gets called at RunTime. how I would push the DropShadow filter onto my Movie Clip at RunTime?
To achieve a zoom effect in our 2D flash game, we make the background of the game much bigger than the visible stage. This becomes a problem when the background is complex or when we apply a grayscale filter to the background. Is there a better way to do zoom? Or, is there a way to apply the filter to only a specific area of a movieclip?
I have a SWF that I am running on a kiosk and the Actionscript is calling a PHP script residing on an internal IP address. As everyone always says, it runs great with the IDE, however when I publish this file and run it, I get nothing. I cannot even output errors and such into a textfield. I'm totally baffled as to how I can debug this.
Code: //set up request and loader var request:URLRequest = new URLRequest("http://10.25.241.11/custom/test.php"); var loader:URLLoader = new URLLoader();
I use C# to read a string (BinaryReader.ReadString()) from the socket stream. But the problem is that flex doesn't writes the string in suitable format, so C# will be able to read that. C# reads a 7 bit encoded integer which indicates the length of the string, and just then reads the string. But flex doesn't writes a string in this format (I use socket.WriteUTF(), and even socket.WriteUTFBytes() didn't work), so C# can't read the string. Here's a little information of how C# reads/writes a string from a socket stream: [URL]
I am having memory problems when adding & removing children. Here is a brief overview of what I'm doing:I'm ading children to a VBox component:the structure of the children is:
Code: <mx:Canvas> <mx:Image/> <mx:Text/>
[code]....
All remove the children, BUT I am getting memory leaking, especially using the second method! If I don't add the TextField child to the UIComponent I don't seem to experience any memory problems!
I try to write an xml object via AIR with FileStream.writeObjectI'm doing like this:
var _file:File = File.applicationDirectory.resolvePath("test.xml"); var _xml:XML = new XML("<data><name>Testname</name><email>test@test.de</email><time>1331290186848</time></data>");
This code works fine if the timeline is moving forward through the .flv file. However, the going in reverse produces choppy results. The choppyness seems uniform, as in, it's always choppy and always the same intensity. [code]...
I have a main movie that contains a series of buttons that load different swf files into a loader component.
Each of the secondary movies contains a series of buttons that when clicked load a movie clip with information specific to that button.
Nothing earth shattering, right...
When I preview the secondary movie it runs as I would expect.
When I bring it into the main movie via the loader component and click any of the buttons to load the secondary movie's movie clip I receive the following errors[code]...
I have a flex app and I am adding a callback method like this:
private function init():void { ExternalInterface.addCallback( "playVideo", playVideo ); }
[code].....
However if I uncomment and run the alert first. I get no error and it works perfectly.My first thought was that the alert was buying time until the script could execute, so i tried to run the script inside a setTimeout() but did not work.
For some reason, the same code works now, without any problem at all. I don't know what happened, or why, but I no longer have this problem Here's the original post: To put simply, I created a MovieClip, put it with addChild() to stage, and when I tried to call this piece of code:
getUser was already in UserService.java. I just created getUser2 and it's identical to getUser. When I try to call getUser2, i get the "Cannot invoke method" error. question: Do I need to specify getUser2 in some other file? like in some configuration file? if so, which one and how do I do it.
I have a filter applied programmatically to a screen-size movie clip (a displacement map filter). However, I can't seem to place anything above it unaffected. Even textfields defined in the .fla are affected...
I have imported a JPG in to my library, converted it to a button, and then I animate the button in from frames 1-30. I then stop() the animation.If I hover over the button in the preview, the cursor changes to the hand as you might expect.Now, if I double click on the instance of the button, I get to the "edit in place" screen, with the 4 frames - Up, Over, Down Hit.I'm unable to apply any filters to this button. It says the "button" is a "bitmap" in the properties.How can it be both? And what is the recommended way of doing this.It seems I can create a new instance of the button on the "up" frame and the "over" frame etc, but this seems wrong plus they all need different names so that makes no sense.
When I rotate an external loaded image it gets a different filter than the other embedded images. Like this: What can I do to change the filter from "squares"/gitter to bi-linear?
I needed to convert a simple graphic symbol into a movie because I wanted to give it depth using the (gradient bevel) filter effect. The movie has to appear at different sizes in my animation but the filter effect does not scale with the symbol. Is there a way to make this filter effect (gradient bevel) scale when I scale the symbol it is applied to?
I've created an interactive map with filters for the map points using if/else visible statements.
The problem is that some of the points belong to more than one filter (i.e., health, education related, etc.). So the filters act properly when selected and deselected one at a time but don't show the proper map points if more than one filter is selected.
here's a painfully easy one I bet -- I'm aware of how to use EX4 to filter most pieces of the xml I need however how can I filter an XML list such as the one below to check say --- if a dog is a beagle? preferably as a Boolean.
ive attached a drop shadow filter to a mc.... but when i roll out of it i want to remove the filter effect.. ive searched livedocs and found document.removeFilter(), but i dont really understand how it works =( so here�s my code:
import flash.filters.DropShadowFilter; var myDropFilterropShadowFilter = new DropShadowFilter(35, 90, 0x9A9A9A, 5, 30, 30, 1, 50, false, false, false);
This function is added to several MC:S with a loop the result that it slows down everything
When i roll over it several times it just adds one more drop shadow object to the instance, but i suppose i can control that with some function, i will look into that next..
I was wondering if there is a simple way to control the "Adjust Color: hue" - filter of a MovieClip?. Is it possible to adjust it with a single variable(with AS2)?
I drew my log in flash and made it a movie clip but when I try to use the filter in properties panel the shadow comes out the color of the logo and the bevels don't seem to work
I have a flash project that involves using glow filters on several mcs all over the site, the problem is, the current way I'm doing it requires me to declare and assign the filter on every MC's container.
Is there a way where I can just declare the glow filter once on the maintime line, and then simply apply the filter on the MCs where needed?
this is what I use for every MC, and it's really tedious and hard to keep track of/change.
Code: var Glow1:GlowFilter = new GlowFilter(); Glow1.color = 0xFFFFFF; Glow1.inner = false;
I created a movie with the blur filter applied via Actionscript which works great. If I try and load that movie into another movie via loadMovie, the filter is lost. Can a parent movie load a child movie and apply a filter to it? My test case is pretty simply, the child movie contains a text movie clip with no actions or filters. My parent movie loads the child movie and applies the blur filter to the child movie (and fails). If I use the Actionscript to apply the blur filter from the parent movie in the child movie by itself it works fine.
This is the simplified version of the code I use to apply the filter which works when I use it directly on the child movie:
Trying to create a profanity filter for an AS2 application. Working with code found on this site on another post that doesn't seem to work. Anyone see the issue here?
test.onPress=function (){ badWords = ["this", "wont", "work"]; var lc_content = formContent.toLowerCase(); for (j=0; j<badWords.length; j++){
[Code].....
The form field is called "formContent". This returns both traces no matter the input so it must be a problem with the structure but I can't see it.