ActionScript 3.0 :: Flash Tweening A VERY Large Image
Mar 6, 2011
I am working on a project for a client, and our designer has created a very large (7000px wide by about 600px high) image, which is split up into several 'screens'. The image is one long continuous image, so can't really be 'chopped up'. There are left/right arrows on either side of the scene which, when clicked, go to the next screen and play a short animation (basic movieclip fades/movement etc) for that screen.
My problem is that the panning left and right is starting to get a bit jerky - most likely Flash not being able to cope with tweening such a large image. Is there an easy alternative to using tweens in this case? I'm using TweenLite (AS3). I am happy to provide an SFW/FLA, but only in private to an experienced developer, hope thats ok.
View 9 Replies
Similar Posts:
Oct 7, 2009
I'm trying to tween a large image 6917x1500px. I'm moving the x,y and scaling this image. It's a jpeg, and the image really chuggs at certain sections. Has anyone tweened an object this large before? Should I be trying tween lite? I don't think that will work, because it just has less settings.
View 5 Replies
Jul 24, 2010
I'm just starting out with Flash, I'm using ActionScript 2.0, and trying to acomplish something seemingly simple but it is not happening like I would think it should,'m trying to load a large image about 3000x2000 pixels and then mask it with a small square, so that later I can scroll through the image to view it.Here is the code I have so far, it produces a blank white screen.
createEmptyMovieClip("container", getNextHighestDepth());
container.createEmptyMovieClip("fullImage", container.getNextHighestDepth());
//When I replace the above line of code with the line of code bellow the image is displayed
[code]........
View 1 Replies
Jul 12, 2011
I'm doing photo gallery and like to enlarge an image when I click on it with some animation like it's in flash (the picture slowly expands first by x-axis and after by y-axis and the space around the picture dims), that it scales to it's largest possible size to fit in screen, but it can be any other animation. I found some topics about this, but I don't want to use any 3rd-party plugin (including flash, drupal...) to do it. Maybe it can be somehow done by jQuery...
View 1 Replies
Dec 22, 2010
I've asked collegues and others, noone seems to have an answer to this.
I'm making a site that uses the Parallax Scroll effect, that is, when mouse moves and the movie scrolls, different layers move with different speeds - making it appear a bit 3-D.
Thing is, the original "world" which I import from Photoshop is very large, more than 9000 pixels wide, I don't know if this actually is the problem, but here it goes:
It skips, or hitches, from time to time. I of course want it to run smoothly.
I've tried several things but nothing seems to work:
[Code]...
View 2 Replies
Feb 6, 2010
I have an image that tweens in under a mask, then when a button is clicked a new image appears in the same way further down the timeline. When the button is clicked, the old image disappears and the new image appears as the mask reveals it. This leaves a blank spot in its place on the page a very brief period while the new image is being revealed. What I would like to do is have the old image stay visible (not suddenly disappear) in the background (when the button is clicked) until the new image completely appears over it and covers it up. Placing the old image in a new layer under the new image is not an option because there are so many images that they could jump to or from that it is impossible to predict which image they would go to next, so I need to find a way to keep the previous image still visible.
View 2 Replies
Jun 17, 2009
I'm currently producing my first website in Flash CS3 and have just encountered a problem with a transitional effect I'm experimenting with: Transitional effect uses the Flash Blur filter set to 10 (X andY) on the first frame to 0 on the last frame (Medium quality). This is used with an alpha setting of 50% on the first frame to 100% on the last frame.
The .fla is using the default setting of 12fps. When I preview the transitional effect, various multi-coloured horizontal lines appear randomly on the images during the tween, and some remain visible once the tween is complete. Would this be because the blur filter cannot be used effectively together with different alpha settings?
Maybe the frame rate for the animation is set too low?
View 8 Replies
Jan 12, 2010
I am trying to add an alpha tween to my UILoader that is linked to a folder of images so that they fade between images when you click on the "next" or "prev" buttons, as well as a preloader status for each image as it loads in (although that is less important, as most connections load in the images fast enough, but perhaps a preloader for the initial image would be good)... Here is what I have, as of now everything is set up to work without a tween or preloader...
[Code]...
View 0 Replies
Oct 13, 2005
I am looking to create a slideshow with different shaped images and I wanted to create a boarder around the image which will expand and contract around any image even if it is out of sequence. I can't find an example online at the minute eventhough I have seen the effect several times but this link has a similar effect when looking at the photos...[URL]..
The bottom of the page moves up and down to accomodate the shape of the images. The difference is I want the whole image to be surrounded and the boarder to change vertically and horizontally.
I hope this is clear. Are there any tutorials I should look at? Is there a specific name for this effect which I could do a google search for a tutorial because I can't seem to find anything.
View 1 Replies
Sep 12, 2010
I use this smooth, nice (and simple) image gallery, and I am very happy with it. However sometimes some of the images stops when rolling in, and I have to press Fw again to jump to the next one. I can't figure out where the bug lies, as I mentioned it appears rarely but it blows up the whole thing.
[Code].....
View 2 Replies
Feb 17, 2009
i need to pan a large image. I didn�t used the kirupa example, because this was more what i was looking for. The problem is that a i need a close button so i can go back to the small image (unload it). Example:picture1.swf (contaings a medium size picture) when i click over it, goes to picture1_big.swf where i can pan the image.The problem is that if i put a close button it doesnt recognize it. Everything is made with AS.
View 1 Replies
Sep 1, 2010
I want to create a tile map and my fla is 600 x 400. Now I create 7x7 Sprites (Size 40x40) and I want them to be in the middle of the scene with text around (not in the map!). One way is do update the sprite containers, but this isn't "smoothly", I wanna scroll the content, when a new raw appears.
View 0 Replies
Dec 21, 2010
in AS3 we use somthing like this to save image from SWF:
<AS>
import com.adobe.images.JPGEncoder;
var jpgSource:BitmapData = new BitmapData (sketch_mc.width, sketch_mc.height);
jpgSource.draw(sketch_mc);[code]....
Is it possible to save this sketch_mc in a larger size? Suppose its dimensions are 200x200 can we save it to 1000x1000 or something like that?
View 6 Replies
Jul 1, 2010
how can i create a site with a large image that can be divided into sections accessed by links?
View 3 Replies
Sep 12, 2010
i am currently working with flash based fashion website. here i am uploading large image and thumbnail from xml. i also have menu navigation at top. my code structure is detail below:
[Code]...
my problem here is like i have home button with 5 thumbnail and handbags with 2 thumbnail when i click home button will display 5 thumb with large image and again when i click hangbags buttom it will display 2 thumb which is what i want but 5 home thumbs keeps on remain at back. dont know how to remove them upon new button click
View 5 Replies
Feb 12, 2010
I'm trying to read the width and height of a locally loaded image. This seems to work for images that do not exceed the dimensions limited by the Flash Player 10 [URL], but as soon as the images are bigger, the width and height remain 0. The strange thing is that now and then, I can read the dimension of these bigger images, but most of the times not. I understand that this might be because of the player limitation, but then I would at least expect the error to be consistent.
I want to check this since there is no use in loading such a big image as it will not be displayed anyway, but it would be good to provide a detailed error message to the user.
Here's the code that I use to load the image locally and read the dimension:
private function chooseImageButton_clickHandler(event:Event):void {
var allowedTypes:String = "*.jpg;*.png";
m_uploadFileReference = new FileReference();
m_uploadFileReference.addEventListener(Event.SELECT,
[Code].....
View 2 Replies
Apr 23, 2003
i have 2 buttons and one large image. this image has about 10 product images inside of the clip.here is the idea...i want to click on the move left or move right button, clicking on the button will move the MC containing the Product Images to the left or right.the thing i am not getting is normally when i move stuff on the X-axis i have more than one button and attach the actions to each button. but i only have two buttons now. one for left and one for right. now i am confused.
View 14 Replies
Mar 1, 2011
flash player version win 10,2,152,2
after updating to the latest flash player version, i get this double image top and bottom with a large green line running halfway from right to left.the top image is identical to the bottom image.this only happens in ie and does not do this in firefox.after a few days of trying to fix it and couldnt, i loaded an image prior to the flash player update to fix it.this was fine until i had to upgade the flash player again.im not sure if im doing this right but here is a bmp file of what im trying to describe .http:[url]...i can always restore the image again prior to upgrade but i got the feeling this will came back again and the only way to fix it is to fix it right.
View 1 Replies
Jun 28, 2010
I coded a multiple file uploader using the FileReferenceList and PHP. It works great for me all the time on my Fios internet connection, which is by far faster then DSL, etc... So my issue kinda went unnoticed until I got on a DSL connection. Now, many of the files I was uploading seem to be timing out, but there is no indication of this. No errors, etc... just stops its progress and NEVER finishes. Tried bumping up the script execution time on the server
View 6 Replies
Nov 28, 2011
How to distort the dimension of an image like from left side little small and from right large.
View 1 Replies
Jul 27, 2010
My website allows users to upload photographs which I store on Amazon's S3. I store the original upload as well as an optimized image and a thumbnail. I want to allow users to be able to export all of their original versions when their subscription expires. So I am thinking the following problems arise.Could be a large volume of data (possibly around 10GB)How to manage the download process - eg make sure if it gets interrupted where to start from again, how to verify successful download of files.Should this be done with individual files or try and zip the files and download as one file or a series of smaller zipped files.Are there any tools out there that I can use for this? I have seen Fzip which is an Actionscript library for handling zip files. I have an EC2 instance running that handles file uploads so could use this for downloads also - eg copy files to EC2 from S3, Zip them then download them to user via Flash downloader, use Fzip to uncompress the zip folder to user's hard drive.
View 1 Replies
Jul 28, 2011
My application consists of displaying a large custom tree like structure to the user that can eventually grow to massive proportions like the dimensions listed in the question. I allow them to export the image with the following line of code tied to a button click event:
var image:ImageSnapshot = ImageSnapshot.captureImage(this, 72, new PNGEncoder(), false);
I've managed to export images close to the dimensions listed but around there it start to get the error message listed below after spinning for close to 15 seconds:
Error: Error #1000: The system is out of memory.
at flash.utils::ByteArray/writeBytes()
at mx.graphics::ImageSnapshot$/mergePixelRows()
[Code]....
Is the flashplayer plugin for my browser running out of memory? I noticed in my task manager it got up to about 1.2GB of memory usage(I have 4GB on my system). If that is the case is it possible to limit the memory usage for a given function like the ImageSnapshot.captureImage() call above?
Is there maybe a way to generate the component into 2 or 4 ImageSnapshot objects and piece them together afterward?
View 2 Replies
Jul 27, 2009
I'm getting the following error: Motion tweening will not occur on layers with ungrouped shapes or on layers with more than one group or symbol. I don't have any ungrouped shapes (it's all text), each layer has 5 instances of only one symbol (keyframes), no objects are grouped and text is all static text.
When watching the animation, the first word (web) looks fine, on the second word (design) the tween fails on the last couple of frames of that clip (the blur filter disappears), the third word (and) is OK, and on the forth word (development) the blur filter is not applied to the last 16 frames of that clip.I broke each animation into its own MC thinking that was causing the issue, but that didn't fix anything.
View 5 Replies
Nov 22, 2009
I tried to refresh my little flash knowledge -- but I stumbled upon a problem with the new Flash CS4!
When I try to make different blur or alpha effect on one keyframe I got after making the motion tween -- Flash adjust the other keyframe as well (got the same reaction on both keyframes as if it was the same instance of movie clip -- and not as in old flash; the keyframes created separated or independent instances)
The only thing working for me is when I move the movie clip out of the stage on the first keyframe -- and it correctly move its position.
View 3 Replies
Oct 26, 2011
I have this array of MovieClips (btnArr) and array of GlowFilters (gloArr):
var btnArr:Array = new Array(aBtn, bBtn, cBtn);
var gloArr:Array = new Array();
var glow:GlowFilter = new GlowFilter(0x00aaff, 0,
12, 12,
[code].....
I have traces set up which seem to show that until I declare that Tween all is going as expected, but the last trace there shows -1, and when I check the values of each individual filter in the array they are all increasing and decreasing together.
View 1 Replies
May 21, 2009
I have made a small rectangle in the flash with the tweening effect and export in to the FLEX. When i publish in the FLEX i could see the rectangle with out tweening effects.How can i see the tweening effects.
View 1 Replies
Nov 20, 2008
I was following this tutorial. He uses the following line for Tweening:
Tweener.addTween(currentContainer, {alpha:1, time:FADE_TIME,
onComplete:function() { slideTimer.start(); }});
Instead of using this special designed class for Tweening, how do I use the standard/regular Tweening within Flash so I don't have to always include the .as file with my project? One other thing is, he uses something like this: intSlideCount = xmlSlideshow..image.length();
What are the two dots between the xmlSlideShow and image.length(); means?
View 1 Replies
Jan 6, 2010
I'm trying to infinitely loop a bitmap all the way through the colour spectrum using AS3, Tweener and its ColorShortcuts class. This doesn't loop back to the function "tween1":
function tween1():void {
Tweener.addTween(image, { _hue: 180, time:5, onComplete:tween2 } );
}
function tween2():void {
Tweener.addTween(image, { _hue: -180, time:5, onComplete:tween1 } );
}
View 1 Replies
Sep 18, 2010
So i have several items on a page, each of which tweens out or in depending on a mouse event. So far i can do Easing on them when they are going out/in but how do i also set up a tween so that it blurs as the come in and out (motion blur) like the ones in the motion presets. I want to accomplish the same motion preset settings but with Actionscript.
View 3 Replies
Aug 19, 2011
I'm filling arrays from a XML. These arrays have dynamic textFields inside them, and these textFields are childs of a movieclip.
I tween this movieclip, therefore making the array of textFields animate on the stage one by one. There are two sources of XML, one from an actual site, and another from a XML stored in the hdd. First i fill the arrays of textFields, and then animate the movieclip. I do this for the first one, then animate it, do it again for the 2nd one, animate it, again for the 1st one, animate it, so on so on.
myTween = new Tween(mc,"x",None.easeNone,sizeOfStage,0 - mc.width,mcSpeedAuto,true);
my tween ends at 0 - mc.width, the problem is, if i tween first the
"bigger" XML, when the next one which is smaller gets tweened, there's loads of empty space before it tweens the big one again (tweening whitespace?).
myTween.addEventListener(TweenEvent.MOTION_FINISH, onFinish);
onFinish i clear all the arrays (otherwise the tweening of the 2nd one would still have information of the 1st one e.g: 1st has 25 fields, second has 10, 1st shows it's 25 fields, 2nd shows 10, and the 15 that were left from from the 1st one) and call the tween on the 2nd one. I thought that by doing this i'd be clearing all that white space too, apparently not. I think the mc.width just keeps the "bigger" value and always tweens with that, taking longer to end in the 2nd case. I've tried setting the mc.width as the sum of textfield width's everytime i fill the arrays, but this hasn't worked either
View 1 Replies