ActionScript 2.0 :: Creating MovieClips Based On JPEG Size
Apr 15, 2005
I have a simple xml/flash portfolio script (similar to the one in the xml/flash) tutorial and the problem is my pics are not uniform in size. This is probably an easy problem but how would I get flash to create a mc getting the size from either the xml (manually put it in the xml) or automatically get it from the jpeg?
View 1 Replies
Similar Posts:
Apr 15, 2005
i have a simple xml/flash portfolio script (similar to the one in the xml/flash) tutorial and the problem is my pics are not uniform in size.this is probbaly an easy problem but how would i get flash to create a mc getting the size from either the xml (manually put it in the xml) or automatically get it from the jpeg??
View 1 Replies
Nov 17, 2009
I'm relatively new to AS3. There's one thing that I don't quite understand about Sprites. I'm making a tile based game, and all the tile graphics for a level are inside one movie clip in each frame. Would I be able to go about creating multiple sprites based on the frames in said movieclip's timeline I would I have to go through and make a separate library graphic for each.
View 2 Replies
Apr 11, 2012
I am developing a ipad game using AS3. Because of the detail of the game, I have to switch between around 5 backgrounds with the size of 4800x1800. Normally, I use the the switch function the turn off the visible of all background movieclips then turn on the one I need, but everytime, I function will work ok for the first time but crack on the second. I have traced and found it is really of the switch visible of the backgrounds. After that, I try to use bitmapdata and redraw every screen starts. But it even worse, crack for the first time I test. Seem it is not ok for the processor to handle such big bitmapdata.
View 1 Replies
Oct 8, 2009
I am creating a flash image gallery, much like flickr. I need the fullsize images to dynamically change size according to browser size /resize. The original images are of various sizes when i load them. I have set the _quality parameter to "BEST" on the clip I load the jpegs into. It actually works pretty smooth, but in between when there is some sharp lines in the image, it looks awfull - the line being cracky and disordered.
View 1 Replies
Jul 2, 2008
how to reduce the file size of JPEGs without compromising the quality. I have a flash ad that has3 screens with photos, but clients needs the .swf file to be under20K. I can only get it down to 28K.I've done the following: * cropped photo down to actual size* used "Save for Web" function in Photoshop
View 2 Replies
Jun 2, 2009
I am creating a website for a wedding and using the photos of the couple on the website. I created designs in Photoshop CS3 with the following settings:Document Size: 6.25" x 8.25" or 1875p x 2475p @ 300pixels/inch To use the image in flash, I used "Save As" in photoshop to convert image into JPEG with "Quality 10 Maximum" setting.I created a Flash CS3 document with the following settings: Document Size: 6.25" x 8.25" or 494 x 550 pixels I imported the JPEG image from photoshop into flash and came in an image much larger than 6.25"x8.25". I resized the image in flash with constrained dimensions to 494x550 pixels and it the text shadows and glow lost its clarity.
TRIAL 1Obviously something was wrong. So, I went back to Photoshop and used the save for web/devices option and saved it as a high quality JPEG. Same result.
TRIAL 2This time, I tried a different trick in Photoshop. I went to Image->Image Size and changed the image resolution to 150pixels/inch and used "Save As" again. I imported it again to Flash and now the image was too small.
How do I match the image "save as" from photoshop to the flash document size so that I dont lose resolution? I used Zoomify in photoshop successfully without losses. Why is it not possible to just import an image to look the same way a JPEG file appears?
View 2 Replies
Aug 12, 2004
how do i know the size of a jpeg image before i load it into a mc ? the point is that I'd like to make a preload for each dynamic image i load
View 2 Replies
Jun 16, 2005
I am creating an empty movieclip and loading a jpeg into it. The mc does not seem to resize to account for the jpeg's size, also the parent mc (thisClip) which is also created dynamically (with attachmovie), is set at 500 why:
thisClip.createEmptyMovieClip("theJpeg", 2);
thisClip.theJpeg.loadMovie(url);
thisClip.theJpeg.onEnterFrame = function(){
[Code]...
View 8 Replies
May 29, 2011
How to save movieClips jpg format on runtime
View 2 Replies
Jul 8, 2011
I am creating an application that takes a user's hand signature, input on the Blackberry playbook. When the JPEG is created, I would like to add Exif data such as the date/time to the JPEG. Does anyone know how to do this, or if it is possible?
View 2 Replies
May 10, 2010
I am new to Flash CS5 and I have created a slide show. I am trying to reduce the .swf file size for faster loading. I have been trying to adjust the size using the jpeg quality slider, but it doesn't seem to function whether I set it to 0 or 100 or anywhere in between. Publishing always generates the same size swf file.
View 3 Replies
Mar 11, 2006
im trying to resize/scale a movieclip based on the browser window.i sort of got it working. but my prob is that i dont want it to scale beyond the browser size when u just stretch the width or height.check it outif u stretch just the width of the browser the image enlarges which i dont wont it to. heres the code/formula used in a onResize
var mywidth:Number = 955;
var myheight:Number = 575;
Enlarge = (Math.round(Stage.height/myheight*100)+Math.round(Stage.width/mywidth*100))/2;
[code].....
View 2 Replies
Apr 12, 2010
I'm trying to run a function that determines the image size coming in, and automatically rescaling itself based on the document size, but don't get where I'm going wrong
[Code]....
View 1 Replies
Feb 24, 2010
I have a Flash file embedded into HTML - the objects inside are place based on the browser's screen size.Most of the time I don't want a scroll bar, as things are correctly placed, but once the browser window gets too small it'd be nice to have it.So, the main question: can I have a Javascript code listening for the browser window, then adding a scroll bar if it's smaller than a certain number?
View 1 Replies
Mar 2, 2010
how can I place a swf file in my webpage when the width of the file changes according to the user input. What I need is a sort of a dynamic css...
View 1 Replies
Mar 16, 2010
I'm trying to create a Flex application that can automatically shrink based on the size of the components that it contains, so that a user can shrink it to a minimal view to see more of the HTML page it's embedded in.
I know how to change the size of the whole application using ExternalInterface, but I'm having trouble automatically figuring out how much the size changed when something is hidden or shown.
For example:
Let's say I have the following flex layout:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:VBox width="100%" paddingTop="0" paddingBottom="0"
[Code]....
How can I hide one of the text fields and cause the VBox to shrink? I'm currently setting it to visible = false, but that doesn't seem to affect the parent VBox.
Once the VBox shrinks, how can I detect that the Application no longer needs so much space, and then go about figuring out how much less space it needs?
I've tried using ResizeEvent, but I haven't been able to get them to work, but I could be doing something wrong.
View 1 Replies
Jun 25, 2010
I am developing a flash based website using mxml. My monitor's resolution is 1280x768 and is widescreen. The problem is while it appears properly in my screen it doesn't appear properly in others.
-Let scrollbars take care of it : If the screen is 14 inch screen with 800x600 resolution it appears zoomed in. So that's a problem
-Get screen resolution and resize using scaleX and scaleY : The graphic components will get resized but fonts give problem.
View 3 Replies
Mar 13, 2006
I have some dynamic text with a background box that needs to widen to match the width of the text, this is how I am doing it at the moment, by multiplying by the average pixel width of arial. However it doesnt seem to be that accurate
Code:
_root.caption1.textbg._width = _root.caption1.words.length*7.5
View 6 Replies
Dec 2, 2002
Next I'm going to make a game with ball physics on it so if anyone can tell me how to make ball physics with bouncing from angled objects.Also, I need the collision detection to be based on movieclips because I need to be able to modify the levels in the game.
View 14 Replies
Oct 26, 2009
I'm trying to trigger some events (fading of nearby movieclips) based on cue points of a currently playing FLV. I'm using the FLVPlayback component (not Netstream) and have added cue points from inside flash (so they're "Actionscript" type). I actually found a nice article here: [URL] but it's AS2. To put it simply, let's say I have the following:
1) FLVPlayback component which has a parameter called "movie.flv" for the clip that it's supposed to play.
2) The instance of the component is called "movie_inst".
3) There are 2 cue points added through the component's parameters rollout, one called "point1", another called "point2".
What's the simplest code to tell flash "when you get to point1 I want you to do ___"?
View 1 Replies
Oct 24, 2009
I have made a UI control which contains a bunch of TextFields representing the members of an Array. I draw these un a list like in a combo box's drop down. Currently I hard code the height of the TextFields, iterate through the Array and position the TextFields by adding the hard coded height each time. Simple enough.
But now I would like to put the control in another place where I must use smaller text. So I would like to make the thing general so I can resuse it whenever I want, simply by applying a new TextFormat. My problem is that I want to still be able to position the TextFields accurately regardless of the font size used in the TextFormat. I have tried just creating the TextField, applying the TextFormat, setting the text, and then trying to read the TextField's height, but alas this does not work.
what the best way is to find each TextField's height so that I can build my list?
View 3 Replies
Jan 21, 2010
I have a textfield that is filled by a querystring.
example: http://www.domainname.com?dName=Michael+&+Mary+Heatherbaum
myTextfield.text=myQueryStrings.dName.toUpperCase();
If the persons name is only 3 letters I want the font size to be 120 but based on the amount of characters, I would like to shrink the font size in order to fit the whole name inside the text field. I was playing with autosize, but couldn't get it to work.
making a textfield font size auto adjust accordingly?
View 7 Replies
Dec 10, 2010
How can i make a image resize based on the users screen size in flash?
View 4 Replies
Jan 7, 2011
Can I use actionscript to change the size of a displayed object based on 2 objects proximity?
As in the closer 2 objects get, the bigger another one gets?
View 1 Replies
Mar 1, 2010
I have a problem positioning a Flash element inside a div tag. The problem is, that the flash element is changing it's size based on the user input. I need a way how I can dynamically get the actual size of the flash element, and to change the behavior of the div element the flash is integrated in. actually I want to place it in the middle of the div. right now I gave the flash element width and height of 100% but that way I can not center the element inside the div...
View 2 Replies
Dec 25, 2010
what's the size of the bootstrap code for cairngorm framework which is based on flex?
View 1 Replies
Mar 22, 2011
I have a component called X. I'm trying to make a menu come down from it when I put my mouse over it.
I have a mouseOver handler which changes the component's state to another state which shows an extra child component (the menu) on the lower part. This of course makes the X component grow.
I also have mouseOut event handler which makes the menu disappear by returning component X to its original state.
When I move the mouse over the component the menu appears as expected. But when I move the mouse down to the menu that is now visible, as soon as I touch it, it disappears. This way it's impossible to reach the menu.
I guess the mouseOut event is triggered as soon as I move out of the old boundaries. Is this so? And how can I avoid it? The new boundaries should now consider the extra child with the menu.
View 1 Replies
Aug 12, 2010
I have multiple nested movieclip in its own different movieclip, and i would like to arrange them accordingly. My idea was to use the localToGlobal function. I can get the position of the MC on stage, but how do I use the function and place the MC based on stage?
cAPos = new Point(objectA.y);
newcAPos = objectA.localToGlobal(cAPos);
cBPos = new Point(objectB.y);
newcBPos = objectB.localToGlobal(cBPos);
objectB.y=objectA.y+objectA.height <-- based on stage
View 1 Replies
Feb 9, 2010
I have to create dynamic content based on content uploaded to site and I need to know best tools for this.In a nutshell. User uploads images. Images embeded into existing video and animated. New video produced for download So far I have looked at Flash Media Server, Flex etc but not sure what the best tool is for the server side production of content. I know I can produce the custom MXML and AS files based on content uploaded and using the Flex SDK I can render these into a SWF. What I don't know is if There are limiatations to this in the context of what I want to achieve For instance can a product like Flash Media Server do something similar.Transcoding is also required hence the interest in FMS.
View 1 Replies