is it possible to give a shape...a bevel?.....I would like to have a shape tween with a filter...lets say i had a circle turn into a square...is there a way to have a filter on it the whole time?
I have a question about shapes (i mean the flash.display.Shape class). Is it possible to import Shapes directly from the library as Shapes and not as Sprites/MovieClips? Shapes are supposed to be faster than MovieClips/Sprites, right? So why is it only possible to import MCs/Sprites from the library? I understand that generally shapes could be created solely by actionscript, but in my case the shape comprises of many points and is curved - so it's quite infeasible.
Is there maybe some sort of plugin to generate code that would draw the desired shape from a drawn shape in CS4? And a last one: Are there any benchmarks out there for performance comparison between sprites/mcs/shapes? How much performance do i loose by using a sprite instead of a shape?
Does a Flash CMS site give you the best of both worlds? I want asite but I need it to be searchable. Does a Flash CMS site rank well enough to do the job? If it does not rank well, is it because the Flash portions would get no SEO but the HTML portions would?OR is it something inherently missing in the software that will keep it low on the rankings, no matter what the ratio of Flash versus HTML there is on that site? Would an HTML site with Flash plugins hurt my rankings much? Could I solve my problem best by having an HTML based landing page that gives access to 2 sites, one strictly HTML and one either Flash or Flash CMS based? Assuming the landing page and HTML portions are optimized properly, is the content that is on the HTML landing page and HTML site going to give me good SEO results, even though one of the options to choose is a Flash site?
I have a project where a big part of the UI a notebook, where the user enters text in a number of fields, for which it uses a series of TextInput components.Once the notebook is filled in the user switches to a screen where the inputs are disabled and they compare what they wrote to a 'model answer'.The problem is that the last TextInput to have focus at the time of disabling retains it - it appears disabled (greyed out etc) but if you type the letters appear in the field.I have tried variations on Selection.setFocus(null), and it seems that Selection.getFocus() returns null/undefined, but can still type into it. I can't select any of the other textfields, and clicking on other interactive elements - bottons etc doesn't seem to want to remove focus either.
UPDATE - Just to make sure there wasn't something crazy happening particular to this project, if I make a nude flash movie with a textInput and a button, then make the button set theTextInput.enabled = false, I can still type into the field. I can't see any way that's a feature.
I have a flash movie that I want to play in my site, however whenever I select the link to play it, it comes up with this error:
Adobe Flash Player has stopped a potentially unsafe operation. The following local application on your computer or network: Y:FILE ADDRESSSLADesignMovie.swf
is trying to communicate with this INternet-enabled location" Y:FILE ADDRESSworldmap.html
To let this application communicate with the Internet, click Settings. You m ust restart the application after changing your settings. I have several .swfs files in my site. Not one of them gives me this error. When I try it locally on another machine, I also get the same message. I need to avoid this so site visitors won't be discouraged and leave.
The other weird thing is the audio begins playing when this popup comes up. Then when I click ok, it picks up in the video wherever it should be as if it has been playing the whole time.
Ive been using adobe flash cs4 for a while now and have had little trouble giving things instance names. Now though, whenever I double click on something like i normally do to give it an instance name, the blue box no longer comes around it, I click on properties, and change the instance name. I now get a dashed line along the lines of the picture. And when I go to properties, it just says shape, and I cant edit the instance name. Just position and size, then the fill and stroke. What is going on?
I am trying to retrieve the users MAC address to implement an authorization process on a AIR application. I have read that this is possible with the latest version of the AIR SDK (2.0).I am developing in Flash Builder and have discovered that it does not ship with the latest AIR SDK. Therefore I have tried two seperate solutions:
1) Following these instructions for overlaying the latest AIR SDK onto the current Flex SDK.URL...
2) Downloading the latest Flex SDK (4.1) and using that.
In both of these cases Flash Builder then recognises the NetworkInterface and NetworkInfo classes implying that the overlaying of the AIR SDK has been successfully. However when I then run the app the debugger throws an error on the following line:[code]I am not sure what steps to take next. I haven't found much about this online. The following adobe forum page is high on the google search results but when you click through it says I am unauthorized despite being logged in:URL...
So I have a method that takes in a String and then is suppose to set the dynamic textbox on a button to said String.
public function setText(caption:String) { this.btext.text = caption; }
I really don't understand why this method is producing a 1119 error. Access of a possibly undefined property btext through a reference with static type Button.as The instance name of the Dynamic Textbox is btext and I have tried deleting the textbox and making a new one however this still produces a 1119 error. I also read on another stack question that trying this['btext'].text = caption; which gave me plenty of runtime errors.
ERROR 1046: Type was not found or was not compile-time constant:textline. I have nested my animation into a movie clip and have tried to use a pre-loader on it. The nested movie clip opening screen as a button on and the second screen as back and forward buttons. The movie clip works fine no problem until adding it to the pre-loader. The code for the pre-loader is (below) on frame 1 frame 2 to is tells it to stop and also were my nested movie clip is
function loadProgress(my_content:ProgressEvent):void { var percent:Number = Math.floor( (my_content.bytesLoaded*100)/my_content.bytesTotal); myLoadText.text = percent + "%"; } function loadComplete(e:Event):void { currentFrame + 1; } loaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress); loaderInfo.addEventListener(Event.COMPLETE, loadComplete);
I've written a little video game in Flex that runs in a browser. The player moves by pushing the arrow buttons on the keyboard, so I need to capture those keystrokes. In fact, the game action starts when the player presses one of those keys.In order to capture the keystrokes, the Flash/Flex application, not just the browser, needs to have the focus.How can I ensure that the application has the focus? I've implemented a bit of a hack: A "Begin" button you must click to start the game. The only point of this button is to ensure that the app has the focus.
I have a folder full of SWF files. Each SWF is its own animation. I have several people submitting their animations for this project. I would like to embed all these SWF's into my project and use .play() .stop() and other movieclip related commands on them as a whole. By this I mean, the artist sends me the SWF, my AS3 script embeds it, then I can access it with say animation_1.stop(); without the artist ever having to enter a instance name, or export for ActionScript name.
I plan to create a shell script which will take all the swf's in a folder and create a AS3 file with all the embed statements. The instance name that will be given to each one by the shell script will be the file name. Is this possible to embed a SWF and access it without giving any movie clips instance names or exporting for Actionscript? UPDATE: @annonymously answer below helped a lot. Here are some other resources that helped me: Great Resource - [URL]
I have a flash website template, Fla File as well as all the source files etc, I have some questions if anyone would be kind enough to help. I am new to Fla files so not sure what to do.
There is some text I managed to edit ok, but others I could not, it appears as if they started as text and have been broken apart and made into a shape? when i click you can only highlight each letter, but not change them. There are two of these, one flies in from left, the other from right.
One thing that seems particularly easy to do in the Flash IDE but difficult to do with code is to outline an organic shape. In the IDE you can just use the inkbucket tool to draw a stroke around something. Using nothing but code it seems much trickier. One method I've seen is to add a glow filter to the shape in question and just mess with the strength. But what if i want to only show the outline?What I'd like to do is to collect all of the points that make up the edge of the shape and then just connect the dots. I've actually gotten so far as to collect all of the points with a quick and dirty edge detection script that I wrote. So now I have a Vector of all the points that makeup my shape. How do I connect them in the proper sequence so it actually looks like the original object?[code]
I am new in Graphics and Multimedia Programming and I use Adobe Flash CS5 Professional V11.0 to edit and create some short flash movies.I have an old flash movie which is created by older version of Flash (Macromedia Flash 10 or 8). This falsh movie needs modification because it has some typing errors.
I had a rendered Flash movie (.swf) that I converted to its original format (.fla) with its associated resources like Action - Button - Font - Frame - Image - Shape - Sprite using a Flash decompiler software.
I have edited the shapes which includes the errors by my flash software and save it using the available formats which are CS5 or CS4 which are only allowed in saving options.
I took copies of the old edited shapes and replaced them with new correct ones but when I publish the file to be in *.swf format or expert it to flash it did not work as they are not there at all.it may be a type mismatch but I downloaded and installed old flash software version (Macromedia Flash 8.0) to read and publish them but it gives file reading error and was unable to read or manipulate them at all.
I tried a program that replaces specific shape or all flash shapes but it did not see that also and it is used only with *.swf format.Is there any way to convert or treat shapes in flash as text ?
I searched the web for that but most results coming talks about Shape tweening and I did not find what I want.How I can change the mistakes in these flash shapes and leaving the other things as they are like the action script and the timeline used as I only want to replace these wrong shapes ?
I need to calculate the intersection between two shapes in flash / action script. The problem is I can't access the shape's nodes and segments, and their coordinates, so there's no way I can calculate this. Do you know a way?
edit: further explanation: I imported irregular polygons from an EPS file to a movieclip with shapes in it.The mathematical solution to the problem is trivial, but to do that, I need to access by AS code to the coordinates of the nodes that make up the polygons, which I tried with no success. That is what I'm trying to accomplish.
edit2: dismiss this question. It's not possible. The workaround I'm applying is to save the polygons in SVG and parse them to get a list of nodes. then will feed that list to flash to calculate the intersection and areas on runtime.
Here's my basic issue: I have a movieclip, with several hundred shapes inside of it that I drew with the brush tool.
I want to convert each one of those shapes to a movieclip. I could individually select each one by hand, convert it to movieclip, and then have a massive library. That would be a hassle to do, and really difficult to manage going forward and making changes.
I'd rather do something like
Code: for each (var curShape:Shape in myMC) { var newMC:MovieClip = new MovieClip
[Code]...
and then I could access them as MCs henceforth (for collision detection, mainly). That code does not work though!
how to convert every individual shape inside a MovieClip into a MovieClip using AS3?
I haven't used Flash for sometime. Trying to get back into it using version CS5. When creating any animation, don't you always save your shapes as symbols? I was trying to do a simple shape tween but it won't let me if I convert my shapes to graphic symbols. I'm assuming then that this isn't the case?
One other thing... In earlier versions the animation options appeared in the Properties window. This doesn't seem to be the case, any tweens I select I've had to go to Insert...
Flash CS5 is the first version I've used since 8 Pro, so I'm new to the IK tool and adding bones to clips/shapes. I'm experiencing problems when saving/loading files that have armatures in them. I have made several characters now with bones attached to their limbs, which are shapes (not symbols) each on their own layer. At first the animations seem to work fine, and I can export a test SWF with no trouble showing the animation as it should be.
However, returning to the FLA after saving and closing it produces some unusual effects. For example, the shapes will disappear from the stage/clip and the only way I've found to get them to reappear is to select them via the timeline or their (barely visible) pivot point, then deselect them, then undo these actions and for some reason they appear again! More worryingly, sometimes the armatures will take on shapes from different layers, meaning, for example, I end up having figures with two right arms, even though the limbs and their corresponding shapes/armatures are on completely different layers. I have not found a way to undo this, so I have to start some of the limbs from scratch, then make sure I've published/exported all the necessary files before I need to close! m experiencing problems when saving/loading files that have armatures in them. I have made several characters now with bones attached to their limbs, which are shapes (not symbols) each on their own layer. At first the animations seem to work fine, and I can export a test SWF with no trouble showing the animation as it should be.
However, returning to the FLA after saving and closing it produces some unusual effects. For example, the shapes will disappear from the stage/clip and the only way I
When you use Graphics object to draw very large shape(that does not fit in 10000x10000 pixels) stroke width may become much wider than value specified in lineStyle function.For now I have only two options:
1. When drawing line you can split it into several lines. However this trick does work only for drawing lines, polylines and polygons. There is no way to apply this to drawing circles and ellipses. Well, we can approximate circles via bezier curves, but this approach seems to be very inefficient.
2. Perform manual cliping. But this require manual implementation of different cliping techiniques, and I think ActionScript does not suit well for this sort of task. And again there is need to approximate visible parts of large circles.
how can I select same color shapes in adobe flash program ? for example we assume 10 rectangle shapes. 3 of them are red others are green. I want to use only one click or method to select 3 of them.
Here in Flash CS4 Explorer, I have shapes. It's intuitive that I be able to right-click on Scene1, and be able to Insert Shape. Can't. I go to the frame. Can't. I right-click everywhere. I see 'Create Shape', but everywhere I see it, it's grayed out - won't let me.
How do I create new shapes in the graphics folder in the library of a flash cs4 project?
I'm building an activity for young kids where they click on a colour in a palette (mouse cursor will be a paint brush) then click on various shapes that I'll layer to create a picture.
depending on the colour they select they should be able to fill the shapes with that colour. Change colors half way through change their mind etc.