ActionScript 3.0 :: Thumbnail Scaling And Shrinking?

Feb 9, 2011

I have a small swf that loads 3-5 thumbnails using UILoader. When each thumbnail is clicked a scalex/scaley function is called to grow the images, in this function I also add a new listener to listener for a 2nd click which will shrink the thumbnail. This all works fine. The problem is that if a user clicks on a another thumbnail, I want to shrink any open thumbnails to avoid two being open at one time. This is working, but for some reason after the 'forced shrink" happens the image needs like two clicks to enlarge again. I attached the actionscript at the bottom.

ActionScript Code:
import flash.events.MouseEvent;
import fl.transitions.Tween; // import Tween animation class
import flash.display.MovieClip;

[code]....

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Slider Bars And Scaling - Code Keeps Shrinking Initial Object Down To 10 Pixels By 10 Pixels?

Jun 17, 2009

I have a swf file that loads into my main movie, and within that swf there is a masked image that i would like to scale using zoom in and out buttons and also by using a slider bar.However i cant find any tutorials that will allow me to combine the two.I have used the following code for the buttons. Which seems to work ok but i would like it to be a little smoother. (using speed or some sort of easing??)

ActionScript Code:
zoomPlus.onRelease = function(zoomIn) {
if (test_shirt.shirt._xscale == 400 && test_shirt.shirt._yscale == 400) {[code]....

but for this code it keeps shrinking my initial object down to 10 pixels by 10 pixels..

View 0 Replies

Flash :: Prevent File From Shrinking In IE?

Dec 2, 2010

Does anyone know a fix to prevent a flash file from shrinking in IE? I'm only having problems with IE, all other browsers are fine.[code]...

View 2 Replies

ActionScript 2.0 :: Dynamically Shrinking Text?

Mar 6, 2007

I have a movie clip with a dynamic text box inside of it. This box is 160 pixels wide and has a font size of 14.I am dynamically loading car names into this box. Something like "2006 Ford Taurus" just fits perfectly in there with the font I am using... another name, such as "2006 Ford Econoline" is too long and the text is cut off... I won't have anything much longer than about 25 characters, but I cannot go over the 160 pixels I have and I cannot multiline it... is there any way I can switch the text size, or "squish" the letters together so that everything will fit?

View 3 Replies

ActionScript 3.0 :: Flash Gallery Shrinking?

Jan 25, 2012

Iam having an issue with a flash site. Keep in mind Im a complete noob in AS. So here's the problem.I have a website made in flash using AS3. Now im using the gallery made in a 3rd party software. Its 3d papervision stuff. It running fine when i publish. But when it gets online the gallery loads but its shrinks. I have tried all that I can but still no useHere's the code that I used.

import flash.display.MovieClip;
import flash.display.Loader;
import flash.net.URLRequest;

[code].....

View 1 Replies

Shrinking Flash Objects Altering Its Shape?

Aug 28, 2009

The bug is where when I shrink a simple circle, it appears to have somehow been altered to the point where the curves are no longer completely circular. Object becomes jagged, then when I bring the the object back to its original shape using the scale tool there the shape is no long a perfect circle.

View 1 Replies

ActionScript 2.0 :: Thumbnail Loop - Middle Thumbnail Represents The Photo In Target_mc?

Nov 28, 2007

I have made a image-viewer. I've this AS for the viewer:

Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
function loadXML(loaded) {[code].....

Now i would like to make a loop for the thumbnails so they don't have a beginning or end(Now when i scroll to the right the thumbnails stop at the last thumbnail, i want it to begin at the first thumb again).I'm also trying to make that the middle thumbnail represents the photo in target_mc.

View 1 Replies

ActionScript 2.0 :: OnRelease - Cannot Scroll Thumbnail Until Roll Off The Click Thumbnail

Jul 10, 2007

I am making a gallery, which you can view here:[URL]ok, firstly, when you click a thumbnail, you cannot scroll them until you roll off the click thumbnail, and I'm not sure why. is it just a movieclip thing? or can I put some code in to re-get focus of something? ok, now for the two general questions:

1. When you roll over the thumbs, they go up, sometimes they flick back down though, even though you are rolled over them still. is this just because they are moving?

2. Does anyone know why when I add this:

[Code]...

View 1 Replies

ActionScript 2.0 :: Stretching Or Shrinking The Length Traversed By Object?

Apr 11, 2006

If L be the original length of linear path (horizontal or vertical) traversed by an object, how can I make Flash change the length according to equation y = L/x where x is an dynamic value generated?

View 4 Replies

ActionScript 2.0 :: [OBJECT + HTML] With IE Shrinking Size Of Swf Movie

Aug 2, 2007

Today I tried deploying for the first time a swf movie into a new wordpress blog I am customizing. It looks great in Firefox, but for some reason, the object seems to shrink in Internet Explorer, and there is a strange white border around it. Since I have never placed a flash object in any of my pages before, I might not know what I did wrong, or if this is a common hacking problem. Check it out here: [URL] It is the picture menu in the top middle.. If you can check it in firefox and IE, you'll notice the dramatic difference. Also, I noticed in IE it doesn't allow rollOver functions until you click on the object.

Let me know if I should post any relevant code. The size of the swf is 500w-200h.. And i double checked the height/width i put in the html page.

View 3 Replies

ActionScript 3.0 :: Shrinking To The Movicelips Upper Left Corner And Its Centerpoint

Sep 12, 2008

I have a button that shrinks an icon on my screen. The problem I am having is that its shrinking to the movicelips upper left corner and need to shrink to its centerpoint. Here is a portion of my code if that helps:

[Code]...

View 3 Replies

ActionScript 3.0 :: Prevent Children From Shrinking To Infinitesimal Values On MouseEvents?

Feb 5, 2011

I have the following code:

[Code]...
 
The problem I'm facing is not with loading the content of the Movie Clip, (though I might experience issues with that later when I try to load dynamic swfs) because as for now I just have placeholders on frames.
 
What I want to know is why my red squares on the left navigation keep getting smaller as I repeat the MouseOver and MouseOut events.  It doesn't seem that these squares follow the logic of the code the way I have written it.  Some of the code was generated from a previous post with the help of contributors.
 
Now I have again hit a slight snag with coding the math properly.  Initially when I tested the code it worked fine without any "shrinking" going on.  However, now with more code added the red navigation squares don't bounce back to their original states, they just keep getting smaller.

View 10 Replies

ActionScript 3.0 :: Modify Object X Position Slowly - Shrinking Effect

Jun 8, 2011

I want to modify an object's x position slowly (e.g. 4 pixels per frame) from actionscript. How do I go about doing this? It would be simple if AS3 had Sleep() and DoEvents() functions - are there equivalents?

View 4 Replies

ActionScript 1/2 :: Xml Thumbnail + OnRelease Function On Each Thumbnail?

Oct 11, 2009

Im trying to create via xml and a for() loop a thumbnails wiewer and each thumbnail have a simple onrelease function.....but my probleme is that my 'container' movieClip and 'BT' movieClip dont show when I export the movie...also when i trace()them the output is empty. maybe is because they are inside  x.onLoad(xml){} function ? At the end of the script you can remove // before the trace() function for ckecking in the output panel. here is my code:

xml file: TumbLoader.xml
<?xml version="1.0" encoding="ISO-8859-1"?><slideshow><photos thumbnail="thumbnail/1.jpg" /><photos thumbnail="thumbnail/2.jpg" /><photos thumbnail="thumbnail/3.jpg" /><photos[code]...

View 8 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 :: 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

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

ActionScript 2.0 :: Non Scaling In Scaling Part?

Apr 18, 2004

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 13 Replies

ActionScript 2.0 :: To Thumbnail, Or Not To Thumbnail ?

Jul 5, 2007

Yes, I'm making a photo gallery like everyone else. I'm making it so people can order pics from the site. There are going to be about 500 photos per album in 5 different categories. The photos can be shrunk down to about 60kb a piece. If I use the actual pictures as thumbnails, just scaled down, the total size of all the pics will be about 30mb. I know this is a lot.

Either way, the people looking at the album will most likely look at nearly all the pics so they will be using up bandwidth either way. Plus, if I use the actual pics as thumbs the user will not have to wait to see actual pic when it's clicked on because it's already loaded. A preloader is annoying to me. I do realize a preloader would be wise when loading the thumbs. Just dislike them after you click one for the big picture.

So is using shrunken thumbs a necessity or if the big pic is under a certain size it shouldn't matter if I use it for a thumb also?

View 1 Replies

Thumbnail Photos Are Too Big?

Jul 16, 2009

I am working on a flash photogallery. It is pretty basic, just consists of thumbnails. The larger images are on another page all together. I didn't write this script myself, I'm still learning. So i grabbed a flashmo file. It is flashmo_067.Anyways, i changed some things around. I made the images scroll with the mouse and i took out alot of the extra stuff in the gallery. I also changed the document size and the thumbnail size.I created thumbnails to the exact size i made the holder in the flash file. Yet when i pull up the movie, the images are doubled in size and are overlapping. I have looked at the actionscript a bunch of times and still cant figure it out. I changed the size of the thumbnail to be smaller but it just blows it up and makes it very pixelated. I cant seem to figure it out.

View 5 Replies

Way To Manually Set The Thumbnail Images?

May 26, 2009

We bought this Flash template to save time:to make this siteI knew a template would limit us (especially since I only know HTML/a little CSS), but of course, we need a few tweeks. To save time (and if anyone is interested), I have uploaded the source files so you can see the structure here:The flash file is set up like this:Fla file for all the image souces & layoutIndex.html File has some sort of fancy javascriptText.html file is the editable file where non-flash-knowing dingbats like me can just edit the text and POOF! Magic!I know I have bastardized them from the original and some stuff is probably wonky.The biggest problem is that the "thumbnails" that you click on at the starpage are auto-generated, cropping the top left 100x100 square. I don't know why this is the case, and honestly, I think it looks awful.

Is there any way to manually set the thumbnail images, so they are cropped artistically rather than randomly? I asked the template tech support and they told me to "make my images 100x100". I did that for the first blue logo, and it looks like CRAP! Sure, I have the icon I would like, but when someone goes to browse the gallery, they get a 100x100 icon displaying instead of a lovely fullscreen pic.

View 2 Replies

Thumbnail Enlargement On Mouse Over

Sep 6, 2009

Having a problem coding a mouse over small image to enlarge effect. I have a filmstrip of photos at the bottom of my page and want the user to be able to enlarge them slightly by rolling over them with the mouse. Id like this to happen as smoothly as possible. Having a real problem with something so simple.

View 2 Replies

Thumbnail Enlargement On Mouse Over?

Aug 25, 2010

Having a problem coding a mouse over small image to enlarge effect. I have a filmstrip of photos at the bottom of my page and want the user to be able to enlarge them slightly by rolling over them with the mouse.

View 7 Replies

ActionScript 3.0 :: Getting The Thumbnail Images To Pop Out?

Feb 2, 2009

I'm using an AS3 photoviewer from [URL] and I am trying to get the thumbnail images to pop out when rolled over.

View 5 Replies

Linking Thumbnail Photos To The Img?

May 14, 2009

linking my thumbnail photos to the img. photo using action script 2.0?

View 22 Replies

Thumbnail To Open In New Window?

May 20, 2010

I need to find out if its possible to click on a thumbnail and the image opens up in a new window? the image I have is not uploaded onto the web or anything like that.

View 1 Replies

Actionscript 3 :: Generate Thumbnail From A Flv?

Jan 13, 2010

Is it possible to generate multiple thumbnails from a FLV using only as3? The flv is on the same server as the swf so I'm not using any dedicated streaming server. I'd imagine that as long as the flv has load the video you'd be able to pull bitmapdata from a specific time of the flv. My idea is to pull around 8 images from every flv, convert them to buttons and use them as links to specific chapters in the flv. If this is not possible, would it work better with a dedicated streaming server like red5?

Edit: I'd also like to know how to do it if it's possible :) The idea is to not use the server. The thumbnails will only be used within the swif, so no saving to another location.

View 2 Replies

Flash :: Extracting Thumbnail From .flv

Apr 21, 2010

i was wondering, how can i extract thumbnail from a flash-video file, then display it in a listbox.the listbox is suppose to have many videos which i need to extract thumbnails from programatically with actionscript.the flash-player is going to be on the web, and the extraction must happen when the swf file is loading, therefore, the method must not be too time-taking.

View 4 Replies







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