ActionScript 3.0 :: Scaling Everything Proportionally & Exporting To Server As Jpeg / Png / Gif

Jul 9, 2009

I am programming an application I cannot get into specifics but I am working on a way to scale everything up on a stage from 640 x 480 to 1024 x 768 this would include loaded images, textfields, and a movieclip being used as a background. The document size has to start as 640 x 480 as the application needs to be that small.I am using action script 3.0 and a seperate .as document and no code in the time line although if necessary I am familiar with simple action script 2.0 conversions. I have looked around for tutorials/adobe live docs.Are there any tutorials or has anyone done this before and would be willing to explain how I could accomplish such a feat. If possible the final resize and upload to server could be done without being seen it would be amazing. But if impossible I could just upload the small image to the server than use cross php / flash to resize with php and send the link to the image location back to flash.

If I have to use php to send the information how can I communicate between php and flash, much of the documentation and tutorials are too weak explaining how the php end works and how to communicate properly in as 3.0.After doing this I would like to take a snapshot or copy of everything on the stage at 1024 x 768 and send a jpeg,png, or gif to be stored on a server.

View 0 Replies


Similar Posts:


ActionScript 3.0 :: Embed Not Scaling Proportionally

Feb 10, 2011

I've embedded swf's countless times and haven't run into this wall before. The original swf dimensions were 900px x 550px. I need to fit the swf into an area that's only 560px wide. So I embed with the width and height of 560px x 342px. The problem is the swf seems to scale to a fraction of the actual stageWidth. I've run numerous tests, and the stageWidth/stageHeight are being read in properly before any of the assets are being created on the stage.

I know that the swf fill the entire 560x342 area because there's an asset that follows the users mouse and does so within those bounds. Another strange issue, is there's a right-click menu, that once clicked, creates a message that pops up and is centered to the stage, yet that centers itself to the area that's not being scaled properly. It's almost as if I'm dealing with 2 different stages.

I've attached an image that hopefully demonstrates my issue. The black area represents the supposed stage, where the gray represents the area the swf is taking up when embedded in the page. The stage align is set to TL, and I've switched between all the scale modes with no success.

View 7 Replies

ActionScript 2.0 :: Scaling An Image Proportionally?

Apr 11, 2005

I need to scale an image so that it won't distort. Of course I don't know the dimensions of this image.I tryed something like this but it doesn't seem to work at all.

Code:
loadMovie("../ImageUploadFolder/optimized_images/" + this.file, "_root.back_mc.image_panel_6.imgContainer6");

[code].....

View 14 Replies

Actionscript 2.0 :: Proportionally Scaling Dynamically Sizing Mc's

Apr 24, 2009

I need to scale a movieclip to fit the width of the screen and it's height to stay proportional. I have code that's always worked fine but, in this case, the movieclip is constantly changing size and this throws off my code, scaling it incorrectly when using a listener (it's initial scale is perfect).

Code: Select allgreybar._width = Stage.width;
greybar._height = Stage.height;
greybar._xscale = greybar._yscale = Math.max(greybar._xscale, greybar._yscale);

I imagine it's because it has shifted from the size it's proportions were read from by the time it applies them. I know my problem is theoretically solvable because the movieclip can be scaled correctly if I scale width and height equally. However, I need the movieclip to always be the width of the screen.

View 4 Replies

ActionScript 3.0 :: Scaling Down Second, Minute, Hour Timers Proportionally?

Oct 24, 2011

I have a problem where I am trying to make the second, minute and hour hand tick correctly.I made timers with 1000 ms, 60000 ms and 3600000 ms initially and that worked but i wanted it to speed up so I divided all 3 by some amount,However, when I did that the minute hand and hour hand starts ticking way too soon in relation to the second hand Is there something I did wrong in the scaling down of the milliseconds?

import flash.events.MouseEvent;
import flash.utils.Timer;
import flash.events.TimerEvent;

[code].......

View 5 Replies

ActionScript 3.0 :: Site To Test Scaling Images Proportionally

Aug 30, 2009

I have a simple test site to test scaling images proportionally.[code]The site is full browser with 3 MovieClips - header_mc, body_mc and footer_mc.header_mc is the strip across the top. body_mc is the middle section, which contains a image that is a MC, img_mc. footer_mc is the bottom strip.When the browser resizes, header_mc and footer_mc stay the same height, but the height of body_mc will change and footer_mc sticks to it's bottom.When the window resizes I want the image to resize proportionally - that's where I'm stuck.How can I resize the image to keep it's proportion.

View 3 Replies

Actionscript 2.0 :: Resize Movie Clip While Scaling Its Contents Proportionally

Mar 4, 2010

I have set a movie clip with instance name if "body" to resize automatically based on the size of the browser window using:

body._x = Stage.width / 2;
body._y = Stage.height - 44;
body._height = Stage.height - 149;
body._width = Stage.width-20;

(that code may not actually have any relevance?)

What I'm wanting to happen is that when the "body" movie clip changes size, I want the objects within it to be scaled proportionally (keeping the x:y ratio the same). The result that I'm wanting will result in the contents (as a whole) being proportionally scaled to the height (because it will always be the smaller dimension in my case) of the current size of the body mc.

I've uploaded my .fla so you can see what im working with. The red square is the body that i've managed to scale but I have not yet added anything within it. (I have tried but it's contents distort when the body is resized)

View 1 Replies

ActionScript 3.0 :: Scaling - Header And Footer Scale Proportionally With The Browser (including The Empty Mc)?

Jun 21, 2009

My site has a header and footer and then has an empty mc the full size of the stage (overlaps the footer and header). I'm loading 3 separate movable windows into this mc. I would like both the header and footer to scale proportionally with the browser (including the empty mc.), but not the windows. So basically I want everything to scale but the windows as they have pixel fonts.I'm not happy with my current website because its not scalable and when I drag the windows around I have huge margins on larger resolutions. Since my header and footers are vectors I realize I can make things alot more flexible if I can just figure this out.

View 3 Replies

Exporting An Image From Flash To Jpeg

May 17, 2010

Could somebody give a hand with this? I am trying to export a flash image to jpeg. I can do it but the image is cropped when I open it in photoshop. This is the original image (is is an screenshot and not exported with flash): And this is the image exported with flash (as you can see it is cropped on the right): [URL] Why is the second image cropped?

View 1 Replies

Professional :: Exporting Movie As JPEG Sequence?

Oct 8, 2010

I'm expecting a bunch of different animations that were made in Flash CS3 as JPEG sequences, however, many of the animations contain seperate timelines that contain seperate movie clips.  When I view it as an SWF, everything looks PERFECT, all the movie clips within the animation are moving like they should and it looks awesome.  But when I export it as a JPEG sequence, the parts of the timeline that are seperate movie clips and in their own timelines are completely static and don't move.What settings do I need to have set so that, when I export it, the JPEG sequence looks and behaves just like the SWF?

View 4 Replies

ActionScript 3.0 :: Save Jpeg Onto Server?

Oct 29, 2010

ActionScript [code]...

Heres a code I used, taken from [url]... showing how to manipulate a movieclip, convert it to a jpeg and download it.

Basically, I need to upload the movieclip to a server rather than download it to the computer.

I thought simply loading an image from jpg_encoder_download.php?name=sketch.jpg using an external image code would have done the trick, but this is registering as a php not a jpg obviously.[code]...

View 0 Replies

Professional :: Exporting Which SWF's From CS5 For Upload To Server?

Sep 30, 2010

I am working on a mac but my question is what files do I need to export out of CS5 to include in my upload besides the index SWF and index html? Do I have to export each individual page? Each individual photo? each individual button, ect? Or is there a main folder I can export and up load to my server. Also for all the photos I have put into the project, do I need to upload them as a seperate folder, if so, is there a specific name I should label it so it registers?

View 1 Replies

ActionScript 2.0 :: Exporting Variables To Server's FormMail

Jul 11, 2005

I created a form for my website for customers to post information and I want this information to be sent to my email. The server does not support PHP, nor my own .pl or cgi scripts to send email. The server is Windows IIS based, so SendMail is a bust. The server says I have to use their FormMail script which is located on a separate link.

[Code]...

This is my first encounter with FormMail and my question is this. Can I export the variables from my Flash form to post into my server's FormMail script? If so, how? EX: My flash has a name field with the var "name_txt", subject field, email field, and message field... and the html fields my server says I can use with their FormMail are as follows

[Code]...

View 1 Replies

Server Side :: Jpeg Preloader Form Php [flash Mx]?

Oct 30, 2003

I tried to do a search but I couldn't find anything that addressed this.I am using a premade gallery app... ImageVue Demo My client does not want images to show up bigger than the movie clip, thus needing to scroll. So I modified the code in PHP and changed the loadmovie action to imitate the thumbnail loader. Only now the loading progress is dead. Everything loads fine, just the loader dies.

I can't remember the link but I read something about a problem loading dynamic xml into a movie so I tried that solution, buffering the output. Same result. If I just change the loadmovie back and remove the php file everything works fine,Oh yeah, if I load the image just by typing in the url, it works fine, like this, only not the thumb.. direct image

Code follows...

load call...
[AS]loadMovie(("getfile.php?img="+_parent.prepath+_par ent.file + "&size=default"), _parent.mytarget);[/AS]
loader code (kinda long, I'm not sure if I should strip anything out)...
[AS]onClipEvent (enterFrame) {
myload = _parent.mytarget.getBytesLoaded();

[code]...

The big problem with testing is, since it's using a web server, and the AS isn't written for it, trying to test the movie just doesn't load the images and menu cause it can't do the php calls.

View 4 Replies

ActionScript 3.0 :: Flash Scaling Size Of Source Image For Server?

Dec 5, 2010

I have code that allows users to upload images, which are of any dimension and file size, and have applied that data to a bytearray and a loader class, which is then displayed and saved to the server. The server has a memory size limit per file of 256k. Everything works well unless the image is too big. How to change the size of that source image so the server will accept it. I've been trying to assign the loader data, or the bytearray, to a Matrix, or a Bitmap, or a BitmapData, figuring one of these can scale the dimensions of the image which will bring down the file size. (To be completely clear: this isn't movieclip.scaleX -- that doesn't affect the size of the source image)

Code:
var _clickMe:ClickMe = new ClickMe();
var _imageLoader:Loader=new Loader();
var bytes:ByteArray=new ByteArray();
var fileRef:FileReference = new FileReference();
var _faceBitmap:Bitmap = new Bitmap();
[Code] .....

View 3 Replies

ActionScript 2.0 :: No Resize/scaling A Movie Clip On The Scaling Stage?

Mar 11, 2008

I've search through all the threads with "scaling" and "resizing" and can't find the solution.

Basically I have a GUI element on a gallery that I don't want to scale, while the rest of the page is free to resize/scale.

I think I need to add a listener of some sort to the stage, but I'm not sure how to do this.

View 2 Replies

ActionScript 3.0 :: Get A MC To Resize Proportionally With Embedded Swf

Apr 15, 2009

I'm loading an external swf that calls an XML file and plays a slideshow animation that enlarges or contracts the pics being loaded (similar to a Ken Burns effect).

The external swf is loaded into a movieclip holder named "mc" on the main fla file. The movieclip holder's dimensions initially, are the same as the fla file. However, I want the loaded swf to scale proportionally according to the stage after it gets resized. So, if I click and drag the stage so that it is wider, the movieclip holder's width also widens, but it's height scales proportionally.

If the externally loaded swf had content that fit the stage exactly, without any hidden objects offstage, the movieclip playing on the main fla scales proportionally without any problem.

Problem, since the externally loaded swf is animated with pics that get bigger or smaller, or even pan from left to right, the size of the movieclip on the main fla file resizes NOT according to the movieclip holder's width and height, but to it's content's width and height that are constantly changing.

I think you can guess my question now. How can I get the movieclip holder to resize proportionally according to it's own width and height, and not it's content's width and height?

Here's the code I have so far. Note that I created a movieclip called "mc" on the main fla file.

Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
import flash.display.MovieClip;

[Code].....

View 5 Replies

ActionScript 2.0 :: How To Resize MovieClip Proportionally

Apr 11, 2012

how to resize movieclip propotionally by dragging the edge of the movie clip

View 4 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

Way To Resize All Animation / All Symbols In All Keyframes Proportionally?

Oct 24, 2009

is there some way to resize all the animation, all the symbols in all keyframes proportionally? I did all the animation, but now I realize thatīs too large on the stage.

View 2 Replies

ActionScript 2.0 :: Scale A Background Clip Proportionally?

Oct 24, 2011

I have browsed the internet looking for a solution to this, and I have come close to getting what I need but it isn't perfect. [code]...

View 3 Replies

ActionScript 3.0 :: Resizing Dynamic Content Proportionally?

Jan 27, 2009

I have a SWF that pulls in movie files. I need a way to detect the size of the file that is being pulled in and scaling it appropriately..

Code:
import caurina.transitions.*;
var conn:NetConnection = new NetConnection();
conn.connect(null);

[Code].....

View 9 Replies

Actionscript 3 :: Scale Different Sized Videos Proportionally In Flash?

Feb 14, 2012

So I have created my vdeo player , but Im havin problems handling different sized videos. How to properly scale videos proportionally? I get original width and height from metadata object:

[Code]...

View 2 Replies

ActionScript 2.0 :: Scale Photo Gallery Image Proportionally?

Feb 27, 2009

This script loads the images dynamically using xml so getting the size of the image to use as a start provides to be a problem, since there is no image to begin with.I found script to be able to scale an image with the stage here:But this only works on a image that is already in the flash file, not one that is loaded dynamically like I'm doing with xml.

View 3 Replies

ActionScript 3.0 :: Scaling Movieclip Not Scaling But Repeating?

May 20, 2010

i have a diagonal movieclip that I am trying to scale along with the background video. The background video scales perfect, I am attaching the diagonal movieclip (br in the code as bottomright) with addChild
Instead of scaling with the window, it seems to repeat such as the image is displaying. this is the main section of the code that is doing the scaling
 
var br:mc_bottomright = new mc_bottomright();
addChild(br);
//proportional scale
if ((stage.stageWidth / stage.stageHeight)> (owidth/oheight))

[code]....

View 4 Replies

ActionScript 3.0 :: Scaling A Movieclip Without Scaling Its Contents

Apr 10, 2009

I am trying to achieve an effect of scaling a movie clip on click...very similar to [URL] When the user clicks on See, Hear, Play and Shop boxes, the boxes expand. I have created a box movieclip that has a bar on top. This bar is a movie clip inside the box movieclip. When i try to scale the main box movieclip, the internal bar movie clip scales as well. How to stop this?

View 2 Replies

ActionScript 3.0 :: Proportionally Scale Movie Clip To Fit Browser Window

Feb 11, 2010

I'm creating a simple liquid flash site layout with one MC that does not scale and remains at a constant position, and one mc that should stretch to fit either the height or width (whichever's larger) of the stage, but scale proportionally. I thought I had a pretty good grasp on the code for that, but when I put it in, the mc doesn't scale at all, in fact it just disappears! Could anyone take a look and let me know if you see what's wrong?

[Code]...

View 3 Replies

ActionScript 3.0 :: Resize Image Inside Movie Clip Proportionally Without Losing Quality

Mar 23, 2009

I've made a slide show and I've been successful so far. However, I'd like to add some thumbnails right below the original image (original size).Here are some specifications of the thumbnails:Size: 50 x 50 px.The image sources of the thumbnails and the original image are the same.Therefore, I'd like to resize only the movie clips for the thumbnails because the actual image file dimensions won't be changed.I tried simply setting the width and height of the movie clip to 50 but it lost quality and you get jagged lines in the image. Does anyone know a good algorithm to resize an image inside a movie clip proportionally and without losing quality?Btw, I'm using an XML files to store the images so you have to include the Loaders and stuff, what I really need to know is how to resize images without losing quality.

View 3 Replies

ActionScript 3.0 :: Flash Senocular Transform Tool - Scale Image Proportionally Without Shift Key?

Jun 19, 2011

i am using senocular transform tool in my flash, anyone know how to force user to scale image proportionally without pressing shift key?

View 2 Replies

ActionScript 2.0 :: Non Scaling In Scaling Part

Apr 18, 2004

really sorry to bring this one up again. I've managed to create quite good working gallery. What I'm trying to now is create a menu that is attached to the scaling part but does not scale it self - in other words just changes position. here's an example of what I mean: galleru #1

View 14 Replies







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