AS3 :: Scaling - Clips Text And Distorts Diagonal Line On Photographs

Feb 11, 2010

I used some code that I found, I think even from you guys the scale an external swf being loaded onto a background movie clip. Works great with the exception that it clips some text and creates some funny diagonal lines and some poor picture quality. I have a feeling that this is down to a slight difference in sizing some where along the line. The stage size is 2560 x 1440 being scaled down to any size, but as I mentioned I don't think the height and width are quite in sync for the widescreen format.

[URL]

// perform initial size check
checkStageSize();
// register to re-check when stage size changes
stage.addEventListener( Event.RESIZE, onResize, false, 0, true );

[Code]...

View 4 Replies


Similar Posts:


ActionScript 3.0 :: Dynamically Scaling MovieClip Distorts Image

Feb 9, 2009

In my movie I have a few products that I resize dynamically based on which one is selected. the selected product is shown full scale while the other are scaled back. However the scaled back ones lose image quality and look pixelated. the products are currently movieclips in my presentation. Is there a way to use scale w/o it distorting the image? I'm currently using TweenLite for my tweening/scaling.

View 1 Replies

Actionscript 3.0 :: Drag And Drop On A Diagonal Line?

Nov 20, 2009

anyone can u explain how to drag a movieclip on a diagonal path..?

View 2 Replies

ActionScript 2.0 :: Constraining StartDrag() To Diagonal Line?

Apr 23, 2008

I'm working on a volume slider for a type of jukebox and what I'm using is an actual drawing that is on an angle, therefore the volume slider and handle aren't in a straight horizontal line.I've done the basic code to keep the handle within the distance of my slider "line" (left to right), but what I have obviously just constrains it to a rectangle.

on(press){
this.startDrag(false,0,0,32,9);
}
on(release){
this.stopDrag();
}

The slider and handle are both at actual size, that's why it's only 32 pixels wide that I need it to go across and 9 pixels down. I do realize that for what I want, it's much more involved than this simple startDrag code with 4 sets of numbers in it.I'm including the source file in Flash 8/Actionscript 2.0.

View 3 Replies

ActionScript 3.0 :: Draw A Diagonal Line That Looks Sharp And Not Pixelated?

May 30, 2010

how to draw a diagonal line that looks sharp and not pixelated? Straight lines are easy, but I can't figure it out for diagonal lines.

View 1 Replies

ActionScript 3.0 :: Detect If A Circle Is Crossing A Diagonal Line?

Apr 6, 2010

Currently, I am using the code below. But it is telling me that the circle is starting to hit the line when it's y position is 40. But since the circle actually isn't crossing the line itself (virtually) until it's y position is at about 205, I don't want the trace-action called so early.

Code:
var circle: Sprite = new Sprite();
circle.graphics.beginFill(0xFF0000);
circle.graphics.drawCircle(0, 0, 10);
circle.x = 170;

[code]....

View 1 Replies

Image Distorts In Dynamic Text Box?

Aug 31, 2007

I am using Flash 8. For the site I planned to use dynamic text boxes for each page so my client can update the pages. There is no text, just an image.

Go to: [URL] After the intro, click on Featured Listings, Buyers Needs or Bio & References.

The image is distorted. Also, for some reason the dynamic text box is about 350px and the image size displayed needs to be 525 to fit correctly.

Here is the action script I used:

myData = new LoadVars();
myData.onLoad = function(){
myText_txt1.htmlText = this.content;

[Code].....

View 0 Replies

Actionscript 3 :: Why Does Setting Different ScaleX And ScaleY For Textfield Distorts The Text

Jul 8, 2011

i have a textField wherein i uses embedded fonts, the problem is when i change its size and i do not set the SAME scaleX and scaleY value, it seems to compress the letters inside it when i make it smaller, and stretch the text when i make it bigger... i tried using width and height values (instead of scaleX and scaleY but its the same result)... it seems that the embedded fonts are maintaining some kind of aspect ratio or whatever, and again this only happens when embedFonts is set to true

View 2 Replies

How To Make Diagonal Text Link

Oct 15, 2009

How would I go about making diagonal link like this one.I drew a retangle so that my text would fit in, select both text and rectangle, F8 turn into button,then I turn them 45degree. When hover the text change color the way I want, but the problem is that the button enters the hover state way too soon when my mouse isnt over the rectangle yet.Seems like as long as my mouse falls within x and y coordinates of the text then it goes into hover state.For example my mouse is under the diagonal box, not in yet, but right under the text and it would go into hover state.

View 1 Replies

ActionScript 3.0 :: Scaling Button Background Without Scaling Text?

Feb 23, 2009

I'm building some navigation that extends all the way from left to right across my SWF. When the window resizes, I'd like the nav buttons to get wider but not have the text on the buttons get wider.

The buttons themselves are rectangles with a vertical gradient and a stroke around the outside. I'm using 9-slice scaling so the stroke doesn't scale, but the middle (gradient) gets wider or narrower.What'd be great is to be able to select an object or layer and say "don't scale, even if the rest of this movie clip scales". Is there a way to do that, or will I have to do it via actionscript?

View 1 Replies

Professional :: 9 Scaling Of Curved Line?

Jan 10, 2011

I want to 9 scale the line in the shape of 'U' so that i can increase the width in a manner that the rounded corner of the line not got spoiled and I also want to resize (in proportion)  it without spoiling it's rounded corner. Right now I have done it in the distinct files but I want to do these both properties in a single file.

View 1 Replies

ActionScript 3.0 :: Tween A Line Growing- Or A Box. Without Scaling?

Jul 3, 2009

starting a new AS 3 website and (dont hit me) i must admit this is the first AS 3 site i am doing - it's going rather well but i do have a question. I woudl like to create a class that will draw a simple box outline based on dimensions i pass it. But i want the actual drawing of the box to be tweened. So the lines would start out as 1px lines and then tween to be say 100 px wide by 100px high. I have played around with several tweens on both boxes and lines and nothing has worked to my satisfaction. Problem is the lines get fatter as the width scales out. I am thinking that perhaps the only way to do this is to actually draw lines with line to in some loop on onEnterFrame but have not succeeded. So if anyone has an example of this please do share it.

View 3 Replies

ActionScript 3.0 :: Scaling Movie Clips In Proportion?

Jul 10, 2009

I have a few movie clips which all have specific registration points set I need to scale them down in proportion according to the registration point. If am looking at the stage, hold down the shift key and resize the movieclip it works exactly how I would like it to.

However, I need to do this dynamically using AS3. I have been scaling the movie clips etc but I cannot figure out how to emulate holding down the shift key in AS3, so that the movie clips are re-sized in proportion according to the registration point.

View 1 Replies

Professional :: Put 360 Photographs On The Web?

Aug 18, 2011

There are a lots of HOWTOs about shooting and stitching 360 photographs,  but I didnt find any tutorial about uploading those photographs on my  web. How should I do this? What do I need for it?

View 3 Replies

ActionScript 3.0 :: Scaling Movie Clips To Window Size?

Feb 22, 2009

I have a flash document with movie clips in it that i want to scale depending on the monitor or window size. it looks great on 1024 x 768.....but not on small laptops

View 6 Replies

ActionScript 3.0 :: User Resizing And Scaling Movie Clips On Stage

Jun 25, 2010

'i am doing a game for children where users can drag and drop resize and scale movie clips on stage! The drag and drop is not an issue...however im not quite sure how to do all the rest... is there a way or a tutorial to do this?

View 1 Replies

ActionScript 2.0 :: User Resizing And Scaling Movie Clips On Stage?

Jun 25, 2010

'i am doing a game for children where users can drag and drop resize and scale movie clips on stage!

The drag and drop is not an issue...however im not quite sure how to do all the rest.

View 3 Replies

ActionScript 3.0 :: User Resizing And Scaling Movie Clips On Stage?

Jun 25, 2010

'i am doing a game for children where users can drag and drop resize and scale movie clips on stage!

The drag and drop is not an issue...however im not quite sure how to do all the rest..

View 1 Replies

Allows The User To Control A Infinite Wall Of Photographs In Space With The Keyboard?

Jul 15, 2010

I recently stumbled upon a site called 'The Influence Project' which allows the user to control a infinite wall of photographs in space with the keyboard.You can check out the site here http:[URL]....

View 2 Replies

ActionScript 2.0 :: Inherited A Website Which Present A Series Of Photographs In A Slideshow?

Aug 11, 2010

So I inherited a website which uses actionscript to present a series of photographs in a slideshow. I do not have any sort of grasp on actionscript.where in the following script the SPEED of the slideshow is controled? I need to slow it down.this._lockroot = true;

stop();
_root.pathToPics = "advertising_big/";
// fill this array with your pics

make a button to load an input text field for email addresses

View 2 Replies

ActionScript 3.0 :: Adding Loader Object Distorts Image

Nov 3, 2009

I've loaded an image with a loader, and if I add the loader to the stage, all is well, the image looks fine. Although if I add the loader inside a display object container, then the image gets distorted- and on top of that, trying to change the width and height once its in the container doesn't work either.

View 1 Replies

Professional :: Static Text After Line Break Disappears Unless At Small Line Spacings

Oct 18, 2011

in Flash CS4 I have static text like: Line1 and line2 It's in 9 point Arial Regular as a device font. If I set the line spacing below 3.9 the second line dissappears from the compiled SWF file. It still shows in the FLA file. The same thing happens at 6pt but NOT at 5pt or less.

View 1 Replies

ActionScript 2.0 :: Load A Text File Using Line Breaks As A Delimeter Rather Than Having A &var= At The Beginning Of Each Line?

Mar 5, 2004

Is it possible to load a text file using line breaks as a delimeter rather than having a &var= at the beginning of each line? Like by a for instance? I have a text file with about 1000 lines that I need to load/display.

View 5 Replies

ActionScript 3.0 :: Multi-line Text Field Auto Line Break

Sep 26, 2007

When a Dynamic Multiple line text field is used in Flash CS3, it has a very annoying feature that auto inserts a line break at the end of inserted text. It also auto inserts a line break if no text is entered too.

I'm having a problem with this because the text is being saved from flash to a text file on the desktop. With every multi-line text field there's a nasty looking line break.

Any way of "turning off" this auto-line-break-at-the-end feature?

View 6 Replies

ActionScript 3.0 :: Adding Line Breaks After The Line Of Text

Apr 6, 2011

I'm attempting to add line breaks after the code I've included below. I know that I need to add a " " after the line of text, but I haven't had any success.
 
textField.appendText(""+ bldg.S11[i].Title.text())textField.appendText("Square Footage: "+ bldg.S11[i].SF.text())textField.appendText("Tenant: "+ bldg.S11[i].Tenant.text())textField.appendText("Status: "+ bldg.S11[i].Status.text())

View 8 Replies

Flash 9 :: Line Up Images In Different Movie Clips?

Oct 12, 2008

I have a movieclip, does some animations etc.

Is it possible to view that movieclip at the last frame on the stage, so that i can then line up items in another movieclip with it?

Driving me nuts trying to get the pixels perfectly lined from two different clips

View 3 Replies

ActionScript 2.0 :: Drawing Line Between Two Movie Clips?

Mar 9, 2010

I've got two movie clips; right_hip and left_hip. How can I make it so a line is drawn between the two?And, as a precaution, how can I make one point offset? By that I mean if right_hip was a square, and it's registration point was on the left side, how do I make the line go to the centre of it?

View 7 Replies

ActionScript 2.0 :: Draging 2 Clips, And Then Drawing A Line Between Them?

Sep 29, 2003

Im trying to make something Here it is. Its going to be 2 movie clips that are going to be dragged up and down(Only vertical movment!!!). And when u have then in the position u want, u can push a button and draw a line thrugh the 2 clips. Or if there could be a line that is always on the 2 clips.

I know its kinda badly explained, therefore im gonna put up a little schetch.The only thing i have manage to make is the drag

[Code]...

View 6 Replies

ActionScript 2.0 :: Draging 2 Clips And Then Drawing A Line Between Them?

Sep 29, 2003

Its going to be 2 movie clips that are going to be dragged up and down(Only vertical movment!!!). And when u have then in the position u want, u can push a button and draw a line thrugh the 2 clips.Or if there could be a line that is always on the 2 clips.The only thing i have manage to make is the drag

sirkel1.onPress = function() {
startDrag("sirkel1", true);
};
sirkel1.onRelease = function() {
stopDrag();
};

View 6 Replies

ActionScript 3.0 :: Text Inside The Text Fields Is Scaling On Move?

Aug 25, 2009

I have made a top 10 module for my site that loads variables dynamicly in text fields, it works pretty fine, but i have a problem. The text inside the text fields is scaling on move.I don't want the text inside to scale.Here you have the link:xample of text field creation in my as:

Code:
private function createTextField(x:Number, y:Number, width:Number, height:Number):TextField {

[code]........

View 1 Replies







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