ActionScript 3.0 :: Improving Workflow With The Drawing API?

Nov 12, 2009

I'm used to the drawing tools within CS3/CS4, but i tend to draw from with AS3 using the drawing API, this is because I tend to want to programmatically animate the drawing parameters.Is there some solution whereby you can use the drawing tools within flash CS3/4 but then 'capture' the drawing information so you could then draw the same line/curve/ shape from within AS3?So a pentool could then give a code output like:

lineStyle(..)
moveTo(...)
lineTo(...)

[code].....

View 4 Replies


Similar Posts:


Actionscript 3 : :Improving Slow Performance Of Drawing Application Using BitmapData.draw()?

May 27, 2011

I am using a custom Flex skin to create an active blur/frosted glass effect on the background of floating Panels, TitleWindows, and other containers (similar to http:url....). There is a background image in the Application skin, and potentially any number of other components above and below the active blur component. Here's some relevant code within the skin:

public static const BLUR_FILTER :BlurFilter = new BlurFilter(16, 16, BitmapFilterQuality.HIGH);
private var _bitmapFill :BitmapFill = new BitmapFill;
private var _matrix :Matrix = new Matrix;[code]....

Unfortunately, the performance of this when the component is being resized, and especially when moved, is poor. There is noticeable drag delay and overall slowdown, and this is with only one popped-up TitleWindow in the test application. There is especially poor performance when components inside the TitleWindow are changed (button hover states, etc.)I've attempted to optimized a little bit by avoiding reinstantiation of the blur filter, bitmap fill, and matrix, but this has had little or no effect. I removed the blur at one point, just drawing the Application to a bitmap, and the performance is still poor, so it's clear that it's mostly the BitmapData.draw() call.

I've read about using scrollRect and cacheAsBitmap, but I'm not sure where to apply these properties (or other optimizations I'm not aware of) within the Application or its components.

View 2 Replies

Improving Flash Slideshow?

Aug 12, 2009

So I have made a basic slideshow on flash for a website. Nice but simple, 3 images fading in and out. But I want to make a slideshow that moves either vertically or horizontally, but most likely at an angle. I also want some text to either fade in or move as well. So I have a few questions.1) What is the best way to get th pictures to move at an angle? I have read some xml options for editing in dreamweaver, can't seem to find one for moving the picture.I would imagine you have to edit it in flash? Yes I'm new to flash!2) I take it you edit the text in flash, could it be dynamic text and what is the best way to move it?

View 4 Replies

Flash And Flex Workflow Using A SWC?

Oct 13, 2009

I want to use the strengths of both Flex and Flash in an upcoming project. Doing the graphical related stuff in Flash and all the coding in Flex.

What i want to do is create a layout in flash making classes as you would normally by creating symbols and exporting them for actionscript etc. Then i want to export them as a SWC and edit all the classes in Flexbuilder. A CustomButton symbol is given a CustomSymbol.as ie. extend the classes in the SWC which will give the same functionality. This however wont work if i got nested layouts. Since the components laid out in flash are not of the same type. I somehow want to directly get in control of the Classes in the SWC.

View 2 Replies

ActionScript 3.0 :: Improving The Rendering Performance

Apr 26, 2011

rendering performance when scrolling some content. I have a large sprite with a lot of content that I need to scroll and the problem that I am encountering is that when scrolling this big sprite, the rendering of the Flash Player seems to slow down and the movement is choppy. I wrote a custom scrollbar class that simply updates the target sprite y or x properties on an enter frame event. The large sprite that I am scrolling mainly contains other sprites that have drawn shapes, loaded bitmaps and text fields.

Considering that I am simply moving the sprite, there are no other animations happening, nor other intensive processes at the same time, I do not think that it should be that resource intensive as to slow down the Flash Player that much. What can I do to improve the performance when scrolling the sprite? (Just to give a rough approximation, the sprite that I am scrolling contains around 20-30 sprites with drawn shapes, 2-5 loaded bitmaps, 5-10 text fields.)

View 3 Replies

ActionScript 1/2 :: Improving Performance With Overlapping MCs?

Oct 29, 2009

I'm having some performance issues in certain areas of a flash game Im making.
 
Here's the situation: I have big movieclip containing a map that can be scrolled and scaled. There are some pannels with a bunch of MC buttons, controls, etc. on the right side of the stage. These are seperate from the map and stay in the same place.
 
Everything runs fine untill the large map is  zoomed in and/or scrolled such that the right side buttons and stuff are overlapping them map. Then the framerate jumps down from a nice smooth 30 fps to about 3 fps while the map is moving. There are no issues with the map moving when they don't overlap.
 
Now the thing is, is that's there's no real interaction between the buttons and the map. No transparency or anything, in fact I'm perfectly happy with the map dissapearing behind a side pannel. There are only about 3 pannels that the screen drawing routine would have to worry about, as all the buttons rest on top of the pannels, so why is my performance taking such a hit?
 
(Hmmm. Actually I do have a lot of transparency, but each is on top of a solid background, and none interact with the map.)

View 8 Replies

Professional :: What Is The Workflow For Embedding FLV Into Website

Jun 8, 2011

I have a client that I created FLV files for. how to create SWF files so he can embed them onto his web pages.  I explained that Premiere only creates FLV and F4V files.  My understanding is that he needs Flash Pro CS5 to create the SWF files.  Is this correct?  I have been all over the web looking for the workflow for embedding video files like they do on you tube.  I'm a videographer dammit, not a web designer!

View 1 Replies

Flex :: Module Development Workflow?

Oct 6, 2009

I have just started looking into using Modules in Flex and would like to know how you all go about developing them.I understand how to use them (load, unload, application domains, shared classes, etc.), but I'm wondering what a good workflow is in creating them and using them in multiple applications.If I were building reusable application components (text editor, image cropper, compass, whatever), and I wanted to reuse them in many different applications, it seems like I would:

1) Create an Application specifically for one of those modules

2) Create a Module inside that Application

3) Develop the Module by itself, make it work right

4) Link shared libraries to it somehow (like library projects I would use between all of the modules)

5) ... then I'm unclear what's next.I now have lets say 10 Module/Applications, and I want to start mashing them together into usable applications.What's the best way to do this?I would like to not have to copy-paste code and swfs, using something like git submodules if an equivalent is possible.

View 1 Replies

ActionScript 3.0 :: Improving The Script Interpreter?

Nov 6, 2011

So i'm building a plugin system for my game, and i need to know actively what objects each plugin wants to use. For this, i have made a simple String interpreter. What it can do so far is separate id's and get whether a required input uses all of that kind.

my input format is like this:

Code:
IA:[param];IA[param];NN

IA is the index of all objects matching the parameter to the right of it. A is replaced by A if you want all those objects with the ID of param, or a number for a specific index.:[] tells the interpreter that what is inside the ['s is the param.the param is the string identifier that it looks for when finding objects.NN is the end sequence. this tells the engine that it doesn't need any more params.so say i had a plugin that uses the string

Code:
I2[player];IA[world];NN

the engine will loop through all objects with the ID "world" using them as the second param for the plugin's behavior, and the first will always be the 2nd "player" in the list.I can currently detect whether it wants all of a certain parameter, and what the parameter is. Now, i need to be able to find the index each param requires if it is not all. And i've tried multiple ways of doing this, but none so far have worked. What method would i use? Also, if you see anything that would kill performance in the interpreter, i would love to know, as this is called every frame.

My current code is a class with static methods called StringInterpreter, with the below code:

Code:
package Utils
{
public class ScriptInterpreter
{

[code]...

View 6 Replies

ActionScript 2.0 :: Improving Smoothness On Site?

Nov 5, 2002

Notice the animated "I"s in the top right... this is an MC with different instances of an I with a code in each one that animates it then resets it at a random size and alpha.If you scroll over the main menu buttons of the site and watch the animation sometimes it pauses for a bit. I have even removed many of the "I"s I had origonally and it still slows up a bit. This became more noticable when I added sound to the menu buttons.

View 5 Replies

Professional :: AS3 - Improving Printing Quality Of Pages

Aug 21, 2010

I am making a flip book in flash. I am using swf files as individual pages. User have the option to print pages. I am converting the swf into a btimap using bitmap data but when I print the test is not clear and all pixelated. Is there any way to improve the printing quality of pages?

View 8 Replies

Professional :: Symbols + Base-Class Workflow?

Nov 8, 2010

I frequently create a lot of Library Symbols, export for Actionscript, letting Flash auto-generate the Class & extending a custom base-class in order to give them all custom functionality w/out having to create a Class for each, and/or without having to create a FactoryClass for instantiating X number of ClassObjects for each Symbol to be added to.It's really fast for prototyping, and with this workflow I've only hit a few obstacles.  Those are: 

1 - If the Symbol has children you cannot give the children instance-names, else the compiler gives an error related to automatically declaring stage instances. Two workarounds for this are that you can uncheck automatically declare stage instances, and do it manually in your base-class.  or you can avoid using instance-names, and use getChildAt().

2 - If the Symbol is a MovieClip, the timeline doesn't inherit the base-classes imports.  I don't have a workaround for this.are these limitations that could be addressed by Adobe's Flash team, or are they limitations that are unavoidable without altering the workflow?

View 8 Replies

Flex :: Implementing Process Workflow In PureMVC

Oct 11, 2011

I'm looking for suggestions regarding implementing process flow / work flow management in a PureMVC based application. Our Flex application includes a number of processes such as account creation, payment processing, etc. Within our team, there is some discussion of how rigidly we should adhere to the PureMVC model. Within the PureMVC model, it seems reasonable that the current state in the process could be managed in a Proxy. Commands are clearly responsible for processing the actions required of each node and for node transitions. Mediators for managing the UI.

However, I think that there is an important bit still missing here: a ProcessController. The approaches we've reviewed all seem to either violate the PureMVC model (even just slightly) or make unreadable code. A proxy would maintain the state of the process. As such, it seems to be an appropriate way to implement the controller. However, this is putting a lot of business logic into the proxy.

[Code]...

View 3 Replies

Flash :: Develop A Workflow Application In Flex?

Oct 13, 2011

I am trying to develop a flex 3 application that would appear like a vertical/horizontal hierarchy. It will represent the flow of any application based on user selection.

Here black dots represent the nodes (description) that could be furthur divided into sub-nodes having their own description. White nodes represents the end-point of that expanded view branch. Each node represents some part of application,

View 2 Replies

ActionScript 2.0 :: Flash Directory Structure/workflow?

Mar 4, 2007

How do I organize my flas, class, xml, shared library, and deployment files? What does the com in the standard layout stand for?Here is my attempt so far:

1) com
1a) source
1a1) assets
1a2) xml

[code]....

View 3 Replies

ActionScript 3.0 :: Flash Improving The Rendering Performance?

Apr 26, 2011

I am working on a large project and I would like some advices about improving the rendering performance when scrolling some content.I have a large sprite with a lot of content that I need to scroll and the problem that I am encountering is that when scrolling this big sprite, the rendering of the Flash Player seems to slow down and the movement is choppy.

I wrote a custom scrollbar class that simply updates the target sprite y or x properties on an enter frame event.The large sprite that I am scrolling mainly contains other sprites that have drawn shapes, loaded bitmaps and text fields.

Considering that I am simply moving the sprite, there are no other animations happening, nor other intensive processes at the same time, I do not think that it should be that resource intensive as to slow down the Flash Player that much. What can I do to improve the performance when scrolling the sprite ?(Just to give a rough approximation, the sprite that I am scrolling contains around 20-30 sprites with drawn shapes, 2-5 loaded bitmaps, 5-10 text fields.)

View 6 Replies

Professional :: Improving Script Processing And Ensuring Completion?

Jan 7, 2011

I have a program in which I am running a number of for loops which are doing a number of different things.I pull in data from an xml file and then step through that data to dynamically create arrays, populate the arrays, and create and modify movie clips.

The program I'm building is similar in scope to one I developed in Director many years ago, and in that environment we had to actually put breaks in using timers to ensure that the data would be processed and that the system wouldn't choke.

What I'm seeing with this flash version of the application is similar and I suspect the same.  Basically, when navigating from the frame where the scripts are processed to the frame where the movie clips are displayed, there are times when it works perfectly and times when things are out of whack.  I put in a 5 second delay (arbitrarily) to see if this would resolve the issue and on my system at least it does.  But I need some advice on coming up with a real solution.

View 25 Replies

Flex :: Web Based Process Or Workflow Designer Software?

Aug 3, 2010

suggest a tool or component to integrate with web based application with a workflow or business process designer ...

View 2 Replies

Flex :: Coding Tools Do You Use For Improving Effectivness Of Programming?

Nov 6, 2011

What coding tools do you use for improving effectivness of programming in FLEX?I found Tr.ace() AS3 Debugging Utility whichme a lot with working in a team of programmersframeworks like RobotLegs and others.

View 3 Replies

ActionScript 3.0 :: Flash Improving Time Taken To Open Swf's In Webpage?

Nov 25, 2010

I have an html website that displays still photographs contained in a swf built in flash. I refer in particular to the images in the rectangle window on the right. [URL]As you can see the swf starts with a % preloader. The images are fairly high resolution, 14 in total (each embedded into movie clips and not dynamically loaded)I just wish to know if there is a way of SPEEDING up the time it takes for the swf to load and open in the web page, to aid users with a slower connection.I understand that if my host server is reaonably fast (which I believe it is) then the problem lies with the users connection speed, but IS THERE ANY ADD ON ACCELERATOR or CODING I can apply from my side of things ?

View 4 Replies

Professional :: XFL-Based Author-Time Shared Library Workflow?

May 28, 2010

I'm creating a large project with many different FLAs using symbols pulled from a shared library FLA at author time. It works great, however, the workflow could be simplified (possibly) if the shared library were saved in XFL format.I saved a copy of the shared library FLA as XFL. Then, I tried to import a symbol to another FLA from the XFL as author-time symbol references. Flash recognized the XFL document as an accepted source, but did not offer a menu giving a selection of symbols.

View 5 Replies

ActionScript 3.0 :: [Flex] Workflow - Dynamically Choose Swfs / Swcs

Apr 16, 2010

I'm in the process of planning a banner project, where I want to being able to output all banner formats (about 10+ of them) from the same flex project. They will all contain pretty much the same content but with some variation, and because of the size limit I want to load only the necessary assets for each format.

I wonder if there's a way to dynamically load different assets (in form of swf or swc) depending on some setting? I can of course load different swf:s into the main swf but I want only one swf per format. How about launch configurations, is there a way to choose different swc:s there?

View 1 Replies

ActionScript 3.0 :: Drag And Drop Multiple Objects / Improving Code Suggestion

Feb 25, 2010

i want to improve my code for drag drop seven different or multiple objects to be moved in any three of target places then target value will be search by category or feature wise,[code]

View 3 Replies

ActionScript 3.0 :: Pencil Tool - Drawing Above A Image But The Drawing Is Below The Picture

Nov 9, 2010

i've tried to simulate a pencil tool, for drawing above a imagem, but the drawing is below the picture. How fix it?

[Code]....

View 3 Replies

ActionScript 3.0 :: Generate Drawing API Data From Drawing Object?

Jul 22, 2009

Basically I've got a reasonably complex drawing object in a fla and I want to reproduce it in a class definition using the drawing api. However obviously this is a tedious task, so is there some trick or automated method of doing this?

Last time I needed to do this it was a drawing of an arrow and I ended up writing down x,y,width,height values for everything but this one has curves in it which I don't have experience with drawing anyway.

View 2 Replies

ActionScript 2.0 :: Enabling Drawing Only When Drawing = True

Sep 28, 2009

I cannot get this to work. Without the "var drawing", "var drawing being true or false" and the "if statement", it works fine. But I need to add the "var drawing" so that you can only draw if you turn it on by pressing the "draw_btn" button. Note, I do not get an error, the script "apparently" contains no errors. Here is the code:

ActionScript Code:
var drawing = false
_root.createEmptyMovieClip("myLine", 0);

[Code].....

View 3 Replies

ActionScript 3.0 :: Drawing Over A Movieclip In A Custom Drawing App?

Jan 13, 2012

I've created a drawing tool which allows the user to draw on the canvas, the problem is that if I try to draw over a movieclip nothing happens. Is there a way I can allow for the user to draw over movieclips? For example if I had a background of paper?

Here's the code I'm using for it:

// This code is for drawing the lines on the page
//1.
var drawingLine:MovieClip = new MovieClip();
addChildAt(drawingLine,0);

[code]....

View 8 Replies

Java :: Typical Development Workflow/process Developing With Weborb For Java With Flex?

Sep 15, 2011

Meaning specifically, what steps do you go through when creating a new application using these tools?

View 1 Replies

Actionscript 3 :: Does The Workflow Differ Between Flash Builder And Flash Professional?

Dec 10, 2010

What is the workflow for creating an AIR application in Flash Builder and how does it differ from Flash Professional? I am familiar with Flash Professional, but I'm trying top wrap my head around FB, but I'm coming from a stint in iOS development and Flash Pro is driving me crazy. (I have difficulty with classes mixed with the timeline, but I think that MXML might be a good substitute for the timeline.)(Bonus: What are some good online resources for learning MXML?)

View 2 Replies

Performance :: Optimization - Improving Performance With Large #'s Of Objects

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







Copyrights 2005-15 www.BigResource.com, All rights reserved