IDE :: Way To Preserve A Stroke Whilst Resizing

Feb 24, 2009

I would like to know if there is a way of maintain the stroke size whilst resizing my object with actionscript.I have an object that imported from Illustrator with a 7pt stroke and would like that stroke to maintain its aspect even when resized to 10%

View 1 Replies


Similar Posts:


Flash :: Preserve Transparency When Resizing Picture?

Jul 25, 2011

I use a flash program in my website to resize pictures before transfert, for preserve my bandwidth.

But, when i try to transfer a .png file with transparency, the resize don't maintain transparency in the .png file result. It's a problem for use it after.

[Code]...

View 1 Replies

ActionScript 3.0 :: Scale9grid A Button To Preserve Its Rounded Corners When Resizing?

Aug 24, 2009

I am trying to scale9grid a button to preserve its rounded corners when resizing but I have run into trouble.The button is an ordinary Button symbol and it has 4 layered states (Up, Down, Over, Hit).In each layer there are some shapes (the outer button border, two background shapes inside the button for shading and then some extra outer border shapes to create the pressed down effect). The button contains no other elements,not even a textfield (the textfield is on the same level as the button).

The button is inside a movieclip (which also carries the textfield) that is of the same size as the button and is resized as by Adobe design when the button is resized (i.e. I am never manipulating its size).The Button is 35 high and the textfield is 25 high. They have their registration points both centered and placed at the the same coordinate.I use the follow code to resize and scale9grid the button:

popup.btnLoginButton.width = popup.btnLoginText.width + 20;
popup.btnLoginButton.scale9Grid = new Rectangle(10, 5, popup.btnLoginText.width, 15);

The above scale9Grid throws a Error #2004: One of the parameters is invalid.The same error occurs unless the Rectangle parameters are very small - for example Rectangle(5, 5, 5, 5) even though the textfield is much longer. But when the Rectangle is that small of course no scale9grid scaling is taking place.

View 2 Replies

ActionScript 2.0 :: Resizing Two Movie Clips Whilst Adjusting It's X,y Position?

Jul 26, 2006

I am trying to resize a 2 or more movieclips, but when I resize them I want them to have a relative postion to one another for example decreasing the size of two movieclip touching each other, I would like the movieclips to maintain a relative x,y position.. so if decreased or increased in size they will still look the same.This movie clips are on the stage, so I can not attach it from the library.

View 1 Replies

Flex :: Photo Gallery - Resizing Image Whilst Keeping It Central

Mar 4, 2010

I am using a mx:Resize effect to change the width of an image in Flex (leaving the height to look after itself) but I want the image to remain vertically centered on the page. Whilst I could calculate the aspect ratio of the photo, and work out the new y value to keep it centred, I would have to include a mx: Move effect too, and I am hopful that Flex has a simpler way. This is for a photo gallery where images are loaded at run-time, and swapped about.

So I really would like to avoid recalculating the aspect ratio and vertical position every time the updateComplete event fires, I tried putting my image inside a mx: VBox with verticalAlign="middle", thinking that the box would do all the centering for me, but this only seems to happen when the app first starts - i need it to gradually adjust the position during the period where the effect plays (to keep it central even when part-way through).

Here's a stripped-down example (which doesn't work):
<mx:Application xmlns:mx="[URL]" layout="absolute" width="600" height="600">
<mx:Resize id="fxResize" target="{imgPhotoA}" widthTo="350" duration="500" />
<mx:Button x="10" y="10" label="Resize" click="fxResize.play()" />
<mx:VBox id="boxPhotoA" x="100" y="20" height="500" width="350" verticalAlign="middle" borderStyle="solid" verticalScrollPolicy="off" horizontalScrollPolicy="off">
<mx:Image id="imgPhotoA" width="60" maintainAspectRatio="true" source="[URL]"/>
</mx:VBox></mx:Application>

View 2 Replies

Flash :: Preserve Illustrator Glow In It?

Apr 2, 2012

When I pull Illustrator elements with Outer Glow into Flash, the glow looks pretty nasty...lots of artifacts and "squares" throughout the area where the glow is.

Is there a way to preserve the high quality glow I see in Illustrator once I import those graphics into Flash?

View 4 Replies

AS3 :: Preserve Tabs When Saving XML In FLex4/Air App?

Mar 31, 2011

I'm loading an xml file in AS3/Flex for an AIR app. When I save it, the indenting looks pretty, however all the tabs from the original file, are now spaces. Can I save to that the tabs remain?

open file code:

var file:File = event.target as File;
var fileStream:FileStream = new FileStream();
fileStream.open( file, FileMode.READ );

[code]....

View 1 Replies

ActionScript 3.0 :: Preserve Array Of Objects?

Aug 2, 2011

I need to store an array of objects that will serve as a back-up of some master data. I then will need to copy that array and manipulate the object data within. The problem is: when i change any of the object data in the new array, it is changing the orginal object data in the "back-up" array - the array that should not be changed in anyway.[code]...

View 9 Replies

ActionScript 2.0 :: CS3 Load Php Into Flash AND Preserve Text Formatting

Feb 26, 2009

Using AS 2.0, I'm trying to load some php into a dynamic text box in Flash via loadVars, and once I bring it it, it strips the formatting on the next. Such as link colors, bold, italics... just simple html formatting. How can I preserve that. The formatting of the text is done on an admin website.

[Code]...

View 2 Replies

ActionScript 3.0 :: Preserve Image Quality When Importing It From The Library?

Feb 12, 2009

How do I preserve image quality when importing it from the library. For some reason it seems to lose a lot of the quality.

View 2 Replies

Professional :: Adobe Media Encoder Wont Preserve Widescreen

Mar 4, 2009

I have a mp4 file that has a resolution of 640 x 360 pixels.When viewed in VLC it looks natural and in proportion. I simply want to convert the .mp4 file to an .flv file for web distribution maintaining the existing dimensions. I am attempting to do this with Adobe Media Encoder.The problem is that Adobe Media Encoder insists on converting the file to a 4:3 aspect ratio with a resolution of 480x360 pixels.Viewing the output in VLC results in a squashed out of proportion image. The output preview in Adobe Media Encoder also looks squashed.When I select the option to specify the output dimensions and manually set the resolution back to 640x360, in then adds to solid black bars on the right and left-hand sides of the video which is undesirable - aswell as making the video squashed. I have messed around with every setting and have had no joy in producing the output I require.I have a command line version of ffmpeg which is able to convert the video successfully (keeping the correct aspect ratio) using the most basic command: ffmpeg -i input.mp4 output.flv . I don't want to resort to using ffmpeg at this point. I just spent $1200 AU to upgrade to CS4 Design Premium and want to use the nice GUI I just paid for :)

View 1 Replies

Javascript :: Preserve Browser Window Focus When Clicking On Plugin?

Sep 7, 2011

I have a web page that uses javascript counters to count user "active" time, meaning the time a user spends viewing this page (and not some other page). I do this by starting/stopping them using the [URL].. However, when the user clicks on a plugin inside the same page (flash, java, etc), the window loses focus and window.onblur is fired. Is there a way to tell that the user is still on my page?

View 1 Replies

ActionScript 3.0 :: AddChild Inheritance - Object Preserve It's Initial Alpha?

Dec 23, 2010

i have this: object1.addChild(object2); object1.alpha = 0,5; How can object2 preserve it's initial alpha?

View 5 Replies

Javascript :: Replicate Flash Cube Rotation In CSS: Preserve Correct Perspective?

Mar 21, 2012

I am converting a Flash Web App to a Javascript(HTML and CSS) Web App. I have a cube rotation animation working but I have a problem with the perspective.My Problem: I am not sure which CSS attribute I should use to replicate the Flash versions perspective(please see the 2 images below). The 2 below images where taken while the cube rotation was occuring and you can see the difference in the perspective(the 2nd image is too wide and should look like the first). You can see a working example here(Note it only works onThe first image was taken from the flash application and displays the CORRECT perspective(that I am trying to achieve in CSS).The 2nd image is taken from my CSS, Javascript and HTML web app and the cube rotates with the INCORRECT perspective. What CSS attribute do I change in order to achieve the above images cube perspective?

View 1 Replies

Actionscript 3 :: Resizing A Sprite Without Resizing Its BitmapFill (or Its Contents For That Matter)?

Nov 1, 2010

I am not simply trying to contain things and have the container resize without the contents resizing. I would just use a simple MovieClip for that.. My main focus is on the use of BitmapFill. I'm trying to make a repeating background image for a container; thus far I'm able to draw my BitmapFill sprite to the size I want. (Which is the stage's height) but when the stage is resized, I want to re-size my container but have my containers BitmapFill crop or add more as the window is resized bigger or smaller. Allow me to illustrate what I mean:

I've got a simple rectangle sprite that fills with a bitmap from the library and a simple resize handler function that detects when the window has been resized.what I would like to do is have my rectangle resize to the height of the stage.stageHeight maintaining its bitmap fill, but not resizing the bitmap fill or any children within the sprite.

From what I've read, this is a little tricky because the sprite resizes in relation to what it contains.. or.. something like that.. I really don't know any more.. I saw one example where a person extended the sprite class but I don't know why or how..

in my library there is an image called 'pattern' and my code looks like this:

stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.addEventListener(Event.RESIZE, resizeHandler, false, 0, true);

[code]....

View 2 Replies

ActionScript 3.0 :: Smooth Resizing As Opposed Going In And Resizing Every File Manually?

Sep 11, 2009

I'm loading a few pngs/jpgs externally so they can be swapped out occasionally, and the issue I'm running into is when they are shrunk they become fairly choppy. Is there a way to have flash re-render them, or do something to smooth the resizing as opposed to going in and resizing every file manually myself?

View 1 Replies

ActionScript 3 :: Use RegEx To Match A Tag With Optional Attributes - One Specific Attribute / Value - And Preserve Its Contents?

Mar 3, 2011

I am not new to regex but have come across a problem I can't seem to solve. I'm trying to locate a specific HTML tag that has a specific attribute/value pair (it may have other attributes, too, but those are optional), extract it's contents as a backreference and wrap a new custom tag around it. The original tag is:

[Code]...

View 1 Replies

Actionscript 3 :: Exported SWC Doesn't Preserve Auto-complete Functions' Parameters' Names?

Nov 30, 2011

I am using Flash CS5 and I have created a large, rarely changing framework that I don't want to be recompiled every time I use it in my projects.I must be doing something wrong because the "auto-complete" functionality doesn't show the names of the parameters of the functions.For example, I have a function:

public class Hey {
public function show(name:String, num:Number, data:Array):void {...}
}

[code].....

View 1 Replies

ActionScript 2.0 :: Pause Flv On Frame 1 Whilst It Buffers?

May 22, 2008

The site I'm developing at the moment has an FLV at the beginning which is used as an intro animation. I'm streaming it in using netStream but I've run into a problem.Is it possible to have th flv pause on the first frame of the video and then play once enough has been buffered? At the moment it shows a black screen sometimes.

I thought that a way to combat this would be to have a screenshot of the first frame that I display until it starts playing and then just remove it once the video gets to frame 2. However, I don't know how to track whether the playhead has gone past the first frame in flvs.

View 4 Replies

Change Flash Security Whilst Offline?

Oct 12, 2010

I've got Flash content that needs to run within a web page off a CD. It works fine if I change the security settings in the Flash Global Security settings screen but that can only be accessed online. So...an the security violation be overcome with a cross-domain XML on the local drive somehow?

View 2 Replies

Actionscript 3 :: Continue A SWF Rendering Whilst Off Screen?

Mar 28, 2012

I need to be able to continue rendering a SWF file whilst it is off screen or minimized. Taken from the adobe website: "This is an automatic feature in Flash Player since version 10.1. Flash Player minimizes processing when SWF content goes off-screen."

I have extensively searched around for a solution on this. One solution suggested was to use the HTML parameter "hasPriority" and set it to true which will ensure some things are not paused. SWF content will stop rendering regardless of this when off screen or hidden.Does anyone know if it is possible to disable this automatic feature so my SWF will continue to render off screen?

View 1 Replies

ActionScript 2.0 :: Increment Whilst Calling A Class?

Oct 21, 2008

I'm starting with basics in classes to build my confidence, yet hit an obvious rock

[Code]...

I get only 1 item, as yes... I only declaring one variable. How do I increment whilst calling a class?

View 1 Replies

ActionScript 3.0 :: Resizing A Sprite Without Resizing Its Auto-fill?

Nov 2, 2010

I've got a little problem with BitmapFill, I'm trying to use a sprite as a container for various things and i would like it to have a filled pattern background. my problem is that i want it to resize the sprite to the height of the window but not have the background fill resize, and add more / crop as the window size is changed. to illustrate what i mean, please view the diagram attached to this post .

I have an image in my library called 'pattern' and my code is as follows:

ActionScript Code:
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;

[Code].....

View 2 Replies

ActionScript 2.0 :: Check When Flash8 HitTest Whilst Dragging?

Jul 29, 2009

Is there a way to check if a movieclip I am currently dragging, has hit another movieclip?

View 1 Replies

ActionScript 3.0 :: Bouncing Effect Whilst Player Is Going Down Hill?

Sep 19, 2011

Im making a sidescroller/Platformer. I did not want my levels to be staright. so there is some variation in the terrain. But if the player is traveling down hill it kinda bounces. And i do not want this...
 
Here is the hit test section :
 
[Code]...

View 2 Replies

Flex :: Event Propagation Whilst Container Is Not Initialized

Jun 16, 2010

I have a Canvas (lets call it the Drop Box) which users can drag and drop external files onto. Next to this I have a ViewStack, of which one of the layers is a Canvas with a TileList. I have successfully managed to code it so that the items dropped onto the Drop Box appear in the TileList. I simply capture the darg drop event (lets call this event A) and dispatch a new one that the TileList is listening for (lets call this event B).

However, this only works if the ViewStack selectedIndex is set to that of the Canvas with the TileList. If the Canvas with the TileList isn't selected then the event listener which is added to the TileList at CreationComplete level (event B), won't be called until after the drag drop event has dispatched (event B). This means that something is firing before something even has a chance to listen for it!

I've tried looping until the Canvas with the TileList is completely drawn, but this causes the app to hang.

I've also tried passing the event to the Canvas and storing it locally, but when I attempt to access the clipboad of the event I get an error (dead clipboard).

Effectively I want to only dispatch the event to the Canvas after it's had a chance to load, and add the event listener to the TileList.

View 1 Replies

Html :: Loading Image Whilst Flash Swf Is Downloading

Aug 6, 2011

i have a big flash file that loads in but takes a noticeable amount of time to download. Its a header and i was just wondering if i could have an image instantly appear and then when the flash is downloaded seamlessly overlap it? Just wondering if there was an HTML to do this?

View 1 Replies

ActionScript 2.0 :: Rotating A Movieclip Whilst It Moves Along A Guide?

Jul 25, 2010

i am trying to rotate a graphic that is following a guide path,

this.leaf._rotation +=2;

this successfully rotates the object but it stops moving along the path,
if i dont put this code in then it moves along the path fine,

how to get them both to work at the same time?

View 3 Replies

ActionScript 2.0 :: Change SetInterval Interval Whilst Movie Is Running?

Jul 18, 2007

Could anyone please tell me how I can change the number of milliseconds at which a setInterval function repeats, whilst the movie is running? I am using setInterval to call a function which duplicates a movieclip and I need the duplication to happen over decreasing amounts of time. The problem seems to be that the setInterval function only needs to be set once, so declaring it again with a new interval value isn't an option.

View 12 Replies

ActionScript 3.0 :: Loader Get Removed (garbage Collected) Whilst Its Still Loading?

Oct 23, 2009

can a loader get removed (garbage collected) whilst its still loading? does it have to be added to the stage or to an array?

View 3 Replies







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