ActionScript 3.0 :: System Resource Use - Flash Created Vs Photoshop Created?
Mar 14, 2009
I have only one question but phrased it 3 ways:
1) Is it better to pre=render things say in photoshop or have flash render them?
2) if I have a field of stars that drift along; is it better to create that Star Field in photoshop as a single picture (say a .png) or to create a star in my library and add it to a movie clip and then have that drift along?
Lets say I have a blur effect on my stars and have an equivalent on the photoshop.
3) I have heard (and experienced) adding effects like blur takes a fair amount of CPU and memory so was wondering if I created the effect in photoshop and then imported the 'blurred' object into my flash if I could cut down on system resources?
View 2 Replies
Similar Posts:
Jul 4, 2005
Does anyone know of any good image effects that can be created with flash mx and photoshop?
One that comes off the top of my head is having an image be drawn in with an outline, then having it fill in with white and then have the full colour image fade in. Another is this one [url]...
View 10 Replies
Apr 29, 2002
i'm creating a flash news scroller that accesses an external file to read news headlines.I've created the main system which works roughly as follows.The main movie clip reads the external headlines & related article texts from a file (using loadvariables) and puts them into an array.I loop over the array creating several new instances of a movie clip (lets call it "news_piece"), placing one above the other. "News_piece" contains 2 text fields called "Headline" and "Article", so i change the contents of these for each instance of the movie, retrieving the contents from the array.The outer movie then scrolls the lot.It works pretty well.
Now comes the difficult bit...stay with me... sometimes the headlines can be 1, 2 or 3 lines in length. So, if I want the article text to start directly below the headline, I guess I'll have to move the lower Text field ("Article") a bit higher in that particular instance of the "News_piece" movie.So, to summarize, I wanna move the co-ordinates of a text field in an instance of a movie clip.
View 1 Replies
Dec 11, 2009
When an instance variable is constructed by a constructor method, why do you need to refer to the current instance variable being created when its the only one being created? I understand assigning an expression to it but why name it "this." when it is the only object that the constructor is building? Does it have some hing to do with being able to naming that object in the Local Variable? In other words am I creating a generic object that will be named in another class?
View 7 Replies
Feb 17, 2010
I'm dynamically creating movieclips with dynamically created movieclips inside them and am having trouble with targeting them.Below is a simplified example of what I'm trying to achieve, in the real file there are a lot more movieclips and I'm creating and naming them with a for loop.
This one is just one Sprite created inside another sprite. I can target the top level sprite named "testname". However when i try target the nested MC it throws an error.The bottom couple of traces are just test MCs I've made to make sure i got the syntax right, on targeting nested movieclips.
PHP Code:
var holder:Sprite = new test1();holder.name = "testname";this.addChild(holder);var holder2:Sprite = new test2();holder2.name = "testname2";holder.addChild(holder2);trace(getChildByName("testname").x); //this one traces finetrace(getChildByName("testname").getChildByName("testname2").x);//this throws up an errortrace(testclip1.x);trace(testclip1.testclip2.x);
View 1 Replies
Jan 22, 2010
I'm trying to build a schedule with Flash CS4 and Actionscript 3.0 for an Internet radio station. I'd like to have a .swf that I can open, drag and drop a text symbol from the Library (ideally, for design reasons), and then change the color of the text with Actionscript when the user presses a button.
I can change the color of text if I create it with Actionscript, of course, but I'm not sure how to use Actionscript to change the color of text I've created in the Flash GUI. I can't pass a TextField to a symbol and expect Flash to know what to do with it, can I?
View 1 Replies
Nov 9, 2009
I have created a flash slideshow, where the slide will enter the stage from the left via a motion tween. Once the tween finishes and the symbol is in place, I want the slide to be clickable. I created an invisible button to go over each slide, and put these buttons on their own layer.Then I created an actions layer and put in this code:[code]It worked fine on the first button, but when I attempted to add a second button (only changed the parts in red to reflect different instance and link), it told me it was an error due to a duplicate code.
View 3 Replies
Feb 8, 2010
Is there anyway of resizing a swf after its been created in flash?
EXAMPLE:
My document size of my animation is 520px width by 680px height... when i resize this as an embedded swf in an html page (through source coding) to 382px width by 400px height.. the animation does not flow properly and there are occasional jerks... its not fluid.
Is there an easy way to do this in flash after its been created? Or am i going to have to start from scratch with the proper document size?
View 2 Replies
May 6, 2010
or context:I just installed Snow Leopard on my Macbook Pro (2007 model) and thus just recently installed CS4 Design Premium Student Ed.
[Code]...
View 5 Replies
May 7, 2011
I've followed several instructions on how to develop a simple iOS app. I've managed to go all the way through and Publish + create the .ipa. I'm able to then add the file to my iTunes library, but when I then try to add it to my iPod Touch (2nd Generation) I get the following error:
The app "XXXXXX" was not installed on the iPod "XXXXX's Ipod" because it is not compatible with this iPod.I've even tried it with a simple "Hello World!" app but I get the same error.I'm using Flash Pro Cs5.5 on a Windows PC.
View 12 Replies
Nov 17, 2009
now a customer wants me to make a Flash intro in her (ASP MVC) site. The scenario is this: images are stored in the dbms. Every image belongs to a category. Depending on what category is selected, the corresponding images should be fetched and played in a flash player with "transition" effects (hope i used the correct words).How can a slideshow (swf) be created dynamically?
View 1 Replies
Aug 27, 2011
if i have following code :
class Stand {
public static const STAND_LIST:Array = new Array();
STAND_LIST[0] = new Array();
STAND_LIST[1] = new Array();
[code]...
is the STAND_LIST[0] keeps created every new instance of Stand created? or is it created just once?if it's created every new instance of Stand created, how do i make it run just once?(like initializing const)
View 1 Replies
Feb 10, 2009
Is it possible to have a textfield created in the Flash CS4 IDE that is associated with a sub-class of TextField? Or do I have to instantiate the TextField in code?
View 1 Replies
Feb 10, 2011
I built a video player that uses embedded movieclips and bitmaps with flash professional cs5. I would like to incorporate logic to use stageVideo. However, if I use flash the stageVideo api's are not available. If I use Hero, I don't know how to incorporate the embedded movieclips and bitmaps that are currently in the fla.So, my question.Using flashbuilder, is their a way to access assets from an fla? or Can I somehow gain access to the stageVideo api in flash?Would it work to create a swc in flashbuilder with stageVideo apis included, and then add it to flash professional?
View 1 Replies
May 5, 2009
i cant import the image without losing a huge amount of quality. a friend made this image using Illustrator, and i am trying to incorporate it into a Flash banner.i have numerous images already being used in my Flash movie banner, and all of them have been very easily imported, resized, and animated. here is the image im attempting to use.the Flash banner is am working with can be found at the top of the page at this address.URL..
ive tried to import it to my movie as a GIF, JPG, PNG, BMP, after using Fireworks to successfully edit the image without losing any quality. but as soon as i C&P it or import it directly to the Flash stage or library, the quality goes right out the window.
View 2 Replies
Mar 1, 2010
I cannot seem to accomplish what I thought would be a trivial task. I installed the SWC commands extension for CS3/CS4 and I am using it exactly as prescribed to create SWC files. When I point to them through the 'build path' prefs UI of my Flex project, one of two things happens:
1. If I created the SWC in CS4, Flex immediately crashes when it reads the file. When I re-open Flex it either crashes immediately or does so when I switch to design view and try to have access to the components panel where the new SWC should appear.
2. If I created the SWC in CS3, I perform the steps in Flex, and it seems like everything is OK, but the new component simply doesn't appear in the components panel at all. Flex behaves normally otherwise.
I can import third-party SWCs just fine in Flex otherwise.
Does anyone know what may be going on? I've even dumbed down my SWC to just a single movieclip containing a fill instead of something containing Actionscript, and it still behaves the same way.
View 13 Replies
May 1, 2009
How to get xml data created by php in flash file (Action script 3).....?
View 4 Replies
Jun 2, 2009
I have created a button which fullscreen the flash, but the trouble is that after doing full screen, i am not able to enter text in textbox, means there is no cursor at full screen.
View 2 Replies
Oct 12, 2009
I created a complex fixed line and a bird flying on the line using tweens from point A to B to C. When I view the birdline in play or by scrubbing across them in the layers mode, the bird follows the line just as designed. When I test the birdline in "test Scene" or "test movie" one bird flies from point A to C, then another bird appears at point B and flies the course to point C. The published .swf and .html do the same as the test functions. What can I do to get the published version to behave the same as the design?
View 9 Replies
Jul 1, 2010
Is it possible to use AS3 to control the appearance of links in TLF text created using the Flash CS5 GUI? Can anyone provide an example? I have tried several meant for TLF text fields created via AS that have no effect on those already on stage.
View 2 Replies
Sep 14, 2010
What is the scope of a class created in Flash? If you create a class on the main timeline, can you use it anywhere in your project? If you use your class in a a movieclip, can you use that class outside of the movie clip?
View 3 Replies
Oct 3, 2010
I published a Flash movie in CS4, which includes the following ActionScript 3.0 code to allow people to click the movie to open a new web page; but it will not play from the web server...however, it plays just fine from my local hard drive in Firefox and IE 7.It is an html file with an embedded .swf and I made sure to copy over the swfObject.js, AC_ActvieX.js, AC_RunActiveContent.js, expressInstall.swf, and swfobject_modified.js files to the correct directories. The address is: [URL] and as you will see, there are no errors...just a blank page. I even tried changing the script from:
<script type="text/javascript"><!--swfobject.registerObject("FlashID");//--></script>
to this script: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>, but using this script generates a lot of CSS and other errors.
Nothing works. The ActionScript code I used is:
//Link to websiteSite_btn.addEventListener(MouseEvent.CLICK,visitSite);
function visitSite(e:MouseEvent):void{ var req:URLRequest = new URLRequest("http://giseldemarco.com/Home/Index.html"); navigateToURL(req,"_parent");}
View 1 Replies
Jun 7, 2011
I urgently need to be able to check the authenticity of a Flash CS4 file. There is no information given about author etc in the properties using Windows but I was hoping that Flash embeds author information and history.
View 1 Replies
Dec 4, 2009
For AS 3
I have a class which crate a panel with close button. and i create an instance of this class like this
function _smallThumbClick(evt:MouseEvent):void {
var _popup:Popup=new Popup( square.width ,evt.currentTarget.y, evt.currentTarget);
addChild(_popup);
}
and this mouse event from the thumbnail(suppose), so if i click on the thumb it will create popup. so i want to close all other or previously opened pop window.
How do u get the popup class object to close from another class..
or is there any alternate method for detect instance of the movieclip or class..
View 1 Replies
Dec 16, 2010
Is there a way to get TweenMax to tween the filters of an DisplayObject where The filters are added in the Flash IDE.
I want to Tween between two states and it would be nice if I could do it without creating the two states with bitmaps and tween between them. One state with the filters and one without the filters. [code]...
View 1 Replies
Jul 30, 2011
I have some class that I created visually in Flash Professional CS5 by transferring drawn result into a MovieClip and extorting symbol into AS code. Now, I want to add some properties to the class. To be more specific, I've created Ball class and want to add to it variables that will represent vertical and horizontal speeds. How can I edit the class in order to do it? Also, when I wanted to add some visible external element to the class, at first I decided to add MovieClip property in the code itself, but then recalled method .addChild() that worked perfectly for me. Now, I can't do the same with non-visible properties. So, what is the difference between adding visible elements using .addChild() and adding them in the code itself?
View 3 Replies
Jan 17, 2012
I have create a Flash EXE in AS3. At the time of launch the exe loads a XML from a web link to validate itself.
var urlRequest:URLRequest = new URLRequest("http://abc.com:8090/validate.xml");
var urlLoader:Loader = new Loader();
urlLoader.addEventListener(Event.COMPLETE, startLoad);
urlLoader.load(urlRequest);
I have also place a crossdomain.xml at the root. When I launch the EXE, the debugger shows "SecurityError: Error #2000: No active security context."I just found a strange thing that when I'm writing the code on the timeline, its working (no security errors). But when I'm writing this code in the document class its not working.
View 1 Replies
Jan 18, 2012
If I have a few Program3D objects (each with it's own Vertex-Shader and Fragment-Shader responsible for it's own rendering task), do I need to instantiate a new VertexBuffer3D and IndexBuffer3D so that they store the data only relevant to the vertex-data format used by their corresponding Program3D?
For example, if I was planning to define Quads in different vertex-data formats, such as:
var vertexData:Vector.<Number>;
//Vertex-Format A:
vertexData = new <Number>[
[code]....
Would I need to create one VertexBuffer3D and IndexBuffer3D to store format A, another one for format B, and yet another one for format C? Or can the various formats be mixed inside the same VertexBuffer3D and then make some clever (or confusing!) use of a single IndexBuffer3D to draw the triangles?
View 1 Replies
Jan 24, 2010
I have just created a simple website with old Flash 7 (2004). I am wondering whether website created with such old application will be compatible with newer Flash players. I am not a web developer, I just need this one small website for my tiny business, therefore I try to avoid spending hundreds of dollars on new version. However, I am worried that modern computers might have some problems to view my website smoothly???
View 6 Replies
May 26, 2010
I Created a Dropdown Menu using Flash CS4, AS3, and i want to Link and load external swf files. But only First Column of dropdown menu and About_Us Buttons are working rest of sub menu buttons are not.
View 0 Replies