Professional :: How To Keep The Weight Down

Jun 8, 2010

When creating banner ads, the weight is always an issue. One easy way to loose a few kb is to decrease the quality of any images in the ad. But how about your code? How does one efficiently slenderize Actionscript? Take a library such as TweenLite for instance, it consists of files above at least 60kb, but it only adds less than 5kb to your swf. Then again, I have written pieces of considerably lighter code, which in the end has added a lot more than 5kb to my swf.

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Randomize Array And Weight Results

Sep 22, 2010

How do I get the following to weight the randomize results 3 to 1 (or 4 to 1) in favor of the Dog?
ActionScript Code:
var animalArray:Array=new Array("Cat","Dog","Hen","Bird");
shuffleArray(animalArray);
The randomization is working just great, but now client wants to weight the results.

View 3 Replies

ActionScript 2.0 :: Weight Hanging From The Mouse Cursor?

Apr 1, 2004

I have recently been trying to recreate the effect of a weight (ball?) hanging from the mouse pointer, suspended by a thread, elastic or chain and exhibiting inertia, etc. I am a newbie, so the outlook seems rather grim. Is this at all possible?

View 1 Replies

ActionScript 2.0 :: Giving 'weight' To A Movie Clip

Feb 14, 2008

A tricky one to explain, this, as I can't post example AS or SWFs, but here's what I'm trying to do... I'm creating a game which features a top-down view of a character carrying a sack over their shoulder. The character moves by following the cursor and is always rotated to face it. I want to give the sack (which is a movie clip nested in the character) some 'weight' by having it rotate slightly more slowly then the character - i.e. when the character turns, the sack takes a moment to catch up. At the moment its orientation relative to the character doesn't change and the effect is a bit stiff. The code I'm using to rotate the character is along the lines of

[Code]...

View 2 Replies

ActionScript 3.0 :: Keep Stroke Weight While Changing Width?

Mar 16, 2010

I have a movieclip 'cursor' with in it two rectangles. One of them is dark and one is light, so the cursor is blinking. Now, when I want to change the width of this cursor to 150 (where it was 30 before), I do:

Code:
cursor.width = 150;

This not only changes the width of this movieclip, but also the weigth of the (whole) stroke of the two recangles. How can I prevent this strokechange from happening?

View 1 Replies

ActionScript 2.0 :: [FMX] Weight Hanging From The Mouse Cursor?

Apr 1, 2004

I have recently been trying to recreate the effect of a weight (ball?) hanging from the mouse pointer, suspended by a thread, elastic or chain and exhibiting inertia, etc.

View 1 Replies

Possible To Prevent A Stroke's Weight From Scaling With Rest Of Object?

Nov 4, 2009

I want to animate a person moving off into the distance, but while I want the size of the figure to get smaller, I don't want the weight of the lines that comprise the image to scale down, too. I made this little sample of a person skating (poorly) away from the viewer, and I'd like the line weight to be 9 points in the first frame and the last frame. Is there a setting that allows me to exclude stroke weight when scaling and resizing an object?

View 1 Replies

Flash :: Make A Font Use The Light Weight Version?

May 14, 2010

With sifr, how do I make a font use the light weight version. I have...

var gillsans = { src: '/resources/swf/gillsans.swf' };
sIFR.activate(gillsans);
sIFR.replace(gillsans, {

[Code]....

which is displaying regular Gill Sans, the light version has been exported with the swf (said so in the export report), but how do I get it to display in sifr?

View 2 Replies

Flash :: Change The Font Weight Into A Scrolled Text From The Fla?

Oct 19, 2011

i would like to modify the font weight of a word (my title) that is into a textfield that is "scrolled" : so when i modify this word, the whole text is being modified as well, and i can't write it in another textfield, because i want it to be scrolled as the rest of the text.Do i "have to" set the title and the text dynamically to change the font? or can i do it directly from the fla (which would save me some time, i have several texts in the same case)

View 1 Replies

ActionScript 3.0 :: Flash Multiple Font Weight Embedding?

Aug 1, 2011

I'm looking for solutions to embed multiple font weights into an FLA. E.g. Helvetica Light, Medium, black etc etc.

View 1 Replies

Flash :: How Does One Alter The Size And Weight Of Type When Using Input Text (AS2)

Jan 13, 2011

I have completed a simple contact form using Flash CS5 and AS2. Instead of having headings such as "your email", "subject" and "message" outside each text field, they are contained inside each relevant text field and are made up of input text. I would like to do two things: To have the initial text (ie. "Subject") in a smaller size and heavier weight than the subsequent text typed in by the user. I would also like the initial text (ie. "Subject") to disappear as soon as the user starts to type in the same box.

View 2 Replies

Flex :: Line Weight In Canvas Object Changes During ScaleX Animation?

Jul 13, 2011

I am currently working with a Canvas object on which I am drawing curves using the curveTo() function of the canvas' corresponding Graphics object.The following animation is being performed on the Canvas object's scaleX attribute.<mx:AnimateProperty property="scaleX" fromValue="1" toValue=".5" duration="1000" />At present, this transformation is also scaling the line weight down by some arbitrary value. Is there any way to perform a scaleX transformation on the Canvas without it modifying the line weight of the lines drawn in the canvas?

View 1 Replies

Flash :: Flex - Statically Embedding Of Assets File Weight?

Mar 21, 2012

When embedding assets of any size in the following manner -

[Embed(source="../../assets/Assets.swf", symbol="LargeButton")]
public static const ButtonAsset : Class;

it looks like the resulting SWF size jumps up ~2.8KB (in addition to the size of any assets that are actually embedded).

So I have a few related questions:

Is this because flex_sdk/frameworks/libs/core.swc must be statically linked? Is there any way to get around this restriction, perhaps by cherry picking the necessary files and compiling them to a SWC file?? Note that in the app I am writing file size is critical.

Is there a command/plugin that would allow for the transcompiling of vector graphics (drawn in the Flash Professional Authoring Environment) into raw ActionScript 3 ?

Use cases compelling this feature are improved workflow - would allow designers to draw assets in Flash Professional, compile to an asset SWF, and then be able to embed those assets (versus having to take the time to load them at runtime, or going to the effort myself to write them in ActionScript).

View 1 Replies

ActionScript 3.0 :: Get This Error: 1061 : Call To A Possibly Undefined Method Weight Through A Reference With Static Type Person?

Jun 15, 2009

If you have numerous methods in a class, can you just call them like so:

// in the .fla file
var john:Person = new Person(63,150); // creates a new person named john 63" and 150lbs.
john.weight(180); // changes johns weight to 180lbs.[code].....

I must be calling the method completely wrong? I get this error: 1061: Call to a possibly undefined method weight through a reference with static type Person.

View 12 Replies

Actionscript 3 :: Programmatically Altering Font Face, Size, Weight And Color Of A Flex Label/Text Component?

Dec 24, 2009

I can change the color of the label in Flex Builder, I can even BIND the color to a variable and that works, but I can't find the Color PROPERTY in order to change or reference it programatically! What is the ActionScript 3.0 code to change the font or color of a piece of text in a Flex RIA - or is caring in what color your text appears too bizzarre a request for a RIA? I wrote whole applications after just minutes of "learning" flex, how come it's taken me three days and I still can't change the color of my stupid label?

View 1 Replies

Actionscript 3 :: Embedding Fonts: "Font With Plain Weight And Style Was Not Found At"

Jan 14, 2012

I am trying to embed a font in my Flash Builder 4.6 project, so far unsuccessful. I searched around and found this fix, adding "-managers flash.fonts.AFEFontManager" to the Compiler, doesn't work. I've embedded tons of images to the same project, but I'm not sure what's going on with the embedding of fonts.

[Code]...

Basically, I was completely stupid. I had a "#" and 2x" ` "s in the actual path to my project. I KNEW having those dumb folder names would screw my stuff up some day! And sure enough it did -with Java, but I moved Eclipse out of there a long time ago and forgot about it.

View 1 Replies

Professional :: Possible To Load Html Page Inside Adobe Flash Professional

Aug 26, 2010

Is It possible to load Html page inside Adobe Flash Professional or Adobe Flex.

View 1 Replies

Professional :: Can't Get Transparent Background In Adobe Flash Professional CS4

Jul 29, 2010

I'm wanting to create a moving object that will be exported into a tv commercial. Object has already been created in Adobe Illustrator, and now will be dropped into flash for adding movement. The destination commercial will be created in Sony Vegas, with the settings of (Australian) PAL television (25 fps, 576x720 pixels, lower field first).Thus keeping it simple, I want to set Adobe flash with the same output format, meaning that the canvas will have to be 576x720 pixels at 25 fps.  So far this seems to have worked okay.Now I'm wanting to get rid of the canvas colour, just like I have here in this photoshop screen shot.
 
Judging by the colour palette in Flash Professional, it looks like it can't be done.  I've checked "transparent palette" through yahoo and google, and had no results.  The adobe documentation only details how to remove a background in Photoshop.

View 1 Replies

Professional :: JPEG Gets Messed Up When Saving In Flash Professional CS4

Sep 1, 2010

I have created drawings in Adobe Flash and saved them as .fla files. However, when I try to save the files as JPEGs beyond a certain resolution (such as 4000x4000 pixels), the image gets altered. Essentially, it get's cropped, but some background is left in the  remaining pixels.
Original image (.fla)
Jpeg image (with the saving problem):

View 2 Replies

Professional :: Purpose Of Flash Catalyst, Professional And Builder?

Sep 20, 2010

I'm a bit confused with the purpose of these programs. For example if I want to create a game or utility app that runs on air. Can I design it in Flash Professional and later open in Builder for more heavy coding? Or is Catalyst supposed to be used as the design program?
 
I used to think that you design stuff in Flash Professional and then open the project up in Builder to do more deep coding.

View 1 Replies

Professional :: Flash MX Professional 2004 Fails To Open On Mac Osx 10.6.7

Apr 27, 2011

i am trying to install a copy of Flash macromeadia 2004 mx profesional. the software installs fine when i go to open it it apears in the dock and nothing happens. right clicking on the icon in the dock the program says it's not reasponding.
 
on the box on my flash it syas made for mac osx 10.2.6 and my mac is running mac osx 10.6.7

View 3 Replies

Professional :: Save When Use Trial Version Of Flash Professional CS5?

Sep 21, 2011

I downloaded the trial version so I could work on the final project for class but for some reason when I tried to save it my computer froze up. Is this because the save feature is turned off for the trial version or was it just my computer? If I can't save using the trial version than I wasted memory on my computer and a lot of my time downloading the trial version that isn't going to be very useful to me.

View 2 Replies

Professional :: Correct Failure Of Flash CS4 Professional?

Sep 25, 2009

I recently purchased and installed Flash CS4 Professional on my home computer (HP Windows XP Media Center Edition).  AS2 works as a Publish Setting, but AS3 does not function in any way.After my initial installation, I ran a CS4 update of all programs, including updating Flash CS4 to 10.0.2.I have uninstalled the software and re-installed it in the "simplified" mode.  Updated to v10.0.2; no change in AS3 failure.  I have run the Adobe Support Analyzer, and an error has been found in the installation log file (for both the initial installation and the re-installation).  But use of the Package for Support button (repeatedly, over 4 days) fails to upload and fails to produce a "key", yielding this message: "The storage server is unavailable! Please try again later."Here is what I mean by ActionScript 3 failure:With any script in the Actions-Frame panel, clicking Check Syntax produces this message: "This script contains errors. The errors encountered are listed in the Compiler Errors Panel."  The Compiler Errors Panel is always blank.  When I am working in AS2, an intentional script error immediately is identified correctly in the Compiler Errors Panel.With any script in the Actions-Frame panel, clicking Auto Format produces this message: "This script contains syntax errors, so it cannot be Auto Formatted. Fix the errors and try again."Any .swf produced with CTRL+Enter sits in its initial state and does not run or otherwise have interactivity..

fla files I have found the failure with include:  AS3 examples from the Adobe Flash website; AS3 files I produced with Flash CS3 Professional on a previous employer's computer; a simple "stop();" in the Actions-Frame panel for the first frame of a movie clip.I have also made sure that my computer has updated versions of the Flash 10, 9, and 8 players.  A .swf file (AS3, Player 9) I made with my employer's Flash CS3 software runs fine on my computer.  But producing a new .swf from the same .fla file on my home computer with CS4 yields an inactive file.Adobe technical support is unable to deal with ActionScript problems and referred me to the community of Adobe expert users.

View 14 Replies

Professional :: Flash Professional Adding Swf Files?

Dec 19, 2011

i am new with adobe flash and i have made 2 swf files that need to link to one main one, i am not sure what the actions should say. so far my programming for my main swf where i want all the other swfs to open from are:
 
var movieLoader:Loader = new Loader();function addMovie(event:Event):void {var movieRequest:URLRequest=new URLRequest ("slideshow.swf");//define a loader to load a movie to the stage//Set the loaders load property to the the var movieRequestmovieLoader.load(movieRequest);//add the image to the stageaddChild(movieLoader);//set its x and y positionsmovieLoader.x=0;movieLoader.y=0;}PictureSlideshow.addEventListener (MouseEvent.MOUSE_DOWN,addMovie);
function activateButtons() {  removeChild(movieLoader); }

[Code]...

View 1 Replies

Professional :: Flash Professional CS5 Freezing?

Jun 10, 2010

I'm running Flash Professional CS5 on Windows XP OS. When using Flash the program is freezing on me. So far this has happened when importing images to the stage, publishing the file and testing the movie. My only option is to force Flash to close. Sometimes, this freezing is accompanied by the standard "Adobe Flash has encountered an error and needs to close" message, but this is not always the case. This is my first time using Flash, and I'm creating a video using ~400 BMP's so the .fla file is quite large (12MB).

View 6 Replies

Professional :: "Download Now" Button Not Working For Flash Professional CS5.5 Trial

May 30, 2011

I was going to download the trial version of Flash Professional CS5.5 but when I got to the download page it wasn't downloading. The "Download now" button was there, but it was unclickable, when I clicked on it it didn't work, plus it was a little dimmer than I remember it was when I downloaded another trial. I'm also using the latest version of Google Chrome and I tried downloading it on IE and Firefox.So, is there any solution to this?

View 4 Replies

Flash 10 :: Converting Adobe Flash Professional CS5.5 .fla To Adobe Flash Professional 8

Jul 29, 2011

I'd like to convert a Adobe Flash Professional CS5.5 .fla file to an Adobe Flash Professional 8 .fla file. Is this possible without downloading Adobe Flash Professional CS4 and CS3?

View 3 Replies

Professional :: CS4 - Can't Set What Should Be On The Top

May 18, 2010

<body><p>hello!</p><p> </p><p><strong>problem 1.</strong></p><p> </p><p>Why the blur and frame is covered by two books, while i set it should be on the top?</p><p> </p><p style="text-align: center;"><a href="http://img94.imageshack.us/i/32651165.png/" target="_blank"><img border="0"

[code]....

View 1 Replies

Professional :: SEO Changes From CS4 To CS5?

Oct 10, 2011

My site that mainly has Flash was recently updated with a file made from CS5. In my google dashboard there are a lot of new keywords that are only in the Flash file. My page ranking also dropped from 4 to 11. Does anyone know if any changes from CS4 to CS5 could have caused this? If so, what can I do to disable this compatibility with search engines?

View 1 Replies

Professional :: Security In The Swf?

Feb 27, 2007

I'm a designer considering creating a video project with Flash. I've read some of the security threads on the board, but they are way over my head. I will have a simple Flash file with text and a dozen imported FLV video files.If I use the "protect from import" option, will that keep the videos from being stolen from within the swf? Or, is that just a mediocre hurdle that can be easily overcome by someone wanting to dig into my file?

View 4 Replies







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