ActionScript 2.0 :: Thumbnail Scales To 100% Of The Picture?

Nov 18, 2006

Is it possible when I click on a thumbnail that the thumbnail scales to 100% of the picture (in an motion scale?), centered in the movie, and when I click again on the large picture that the picture re-scales to the thumbnail back again.

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Picture Gallery And Thumbnail Doubts?

Jan 27, 2004

Here's the situation: I'm making a script that will dynamically load JPG's from a file and will eventually display each JPG's thumbnail them side by side. I've got the code going and would like to know any suggestions for corrections.

[Code]...

View 14 Replies

Professional :: Separate Two Thumbnail Images That Open Same Picture?

May 22, 2010

Ok the fourth page of the website is a portfolio page with 16 thumbnails (4 across 4 down) which opens a larger pic on the same page to the right.
 
I can't figure out what to change. The first and third thumb down seem to be linked and open the same image. Same with two and two down from that and so on. I want to separate them so each open their own image. If I edit it in PS both thumbs change...
 
I click several times and well thumb one and the third one down is:
 
onClipEvent (load) {
i = 1;
}

[Code].....

View 3 Replies

ActionScript 2.0 :: Drag Thumbnail To Area And Load Picture

Jun 10, 2004

How can I alter this AS from a thread here into something where the person drags the thumbnail to a certain movieclip on the stage(say a red X), then the big actual image loads into another movieclip on the same stage. So basically instead of dragging the thumbnail to on top of the already loaded image to load the new thumbnail, the new thumbnail will be dragged to a different area (the red X) to the left of the already loaded image. If it isn't dragged and dropped on the certain area (the red X) then it eases back to it's thumbnail spot. [URL]

View 14 Replies

ActionScript 2.0 :: Drag Thumbnail To Area, Load Picture

Jun 10, 2004

How can i alter this AS from a thread here into something where the person drags the thumbnail to a certain movieclip on the stage(say a red X), then the big actual image loads into another movieclip on the same stage. So basically instead of dragging the thumbnail to on top of the already loaded image to load the new thumbnail, the new thumbnail will be dragged to a different area (the red X) to the left of the already loaded image. If it isnt dragged and dropped on the certain area (the red X) then it eases back to it's thumbnail spot. This is the thread im talkin' about: [URL]

I uploaded a visual example of what im talking about.

View 14 Replies

ActionScript 2.0 :: Make A Picture Gallery And Use Buttons That Move You From Picture To Picture And Backwards?

Apr 22, 2002

I want to make a picture gallery and use buttons that move you from picture to picture and backwards, but I don't want to tell button 1 to go to frame 2 and button 2 to got to frame 3 and so on (I hope you know what I mean)Can I use on button on a separate layer with the same action set? I tried something like that, but it didn't work:

on (release) {
thisframe =+1
}
[code]........

but it didn't work. I'm kind of new to any action script other than gotAndPlay, easy functions and all that.

View 2 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 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 :: Calling A Picture Into A Target In The Movie Without Placing The Picture Inside An Swf File?

Mar 22, 2003

I recently used the loadMovie action to load a .swf file to a target in the movie which it was being called from. Then I tried calling a picture to another target in the movie, but it did not load the picture as intended. I read about it on my book, but it didn't seem to work. Is there anyways on calling a picture into a target in the movie without placing the picture inside an swf file?

View 7 Replies

ActionScript 2.0 :: When Each Picture Loads The Loading Frame Resizes To The New Picture Size?

Jan 5, 2005

I have just been to a really nice website that has some really nice use of Flash on it.... I'm totally wowed by the resizing picture effect though? When each picture loads the loading frame resizes to the new picture size.

View 3 Replies

ActionScript 3.0 :: Build A Site That Would Give Users The Ability To Upload A Picture To A Picture Frame?

May 12, 2010

I am trying to build a site that would give users the ability to upload a picture to a picture frame on my site. I would like AS3 to dynamically re-size, and upload the file from an upload bar under the frame.

View 1 Replies

ActionScript 2.0 :: Resizing Uploads - When Each Picture Loads The Loading Frame Resizes To The New Picture Size?

Jan 5, 2005

I'm totally wowed by the resizing picture effect though? When each picture loads the loading frame resizes to the new picture size.It must be some sort of actionscripting but how is it done?

View 3 Replies

ActionScript 3.0 :: Flash Animating A Picture By Using A Script Need To Break The Picture?

Oct 2, 2011

I how that any Can help I have a Picture that I want To destroy it As someone break it as a glass and then something made it go back as she was

View 1 Replies

ActionScript 2.0 :: Scales All Of The Clips At The Same Time

Dec 6, 2010

I won't pretend like I'm really at all familiar with Flash. I'm making a project where I'll have several movie clips on the scene. When you click each movie clip, I want it to scale larger. I got the code working and it does do that. Trouble is, now when I click any one of the clips, it scales all of the clips at the same time.

This probably has to do with the fact that I'm using the exact same code for each script and only changing out the MC name. What do I need to add to the code to make it so each MC is working individually from one another?

[Code].....

View 2 Replies

ActionScript 3.0 :: Calculate Positions And Scales?

Sep 16, 2011

For some reason the "scaled.width" - the movieclip that have scaled already - after scaling it even more with TweenLite.to function by factor .3 aren't equal with the predicted result => scaled.width * .3. Orginal width is something I don't know but scaled width is something like 420. Now multiplying it by factor .3 the result should be something like 140, now when I put TweenLite.to function to scale my scaled movieclip by factor .3 the width in the end is something like 267.And frankly speakin I really can't imagine where the result came from.

Some back ground:I import three images dynamically. Each of them to their own MovieClip containers. I don't know the dimensions of images so I need to scale them proportionally to their dimensions to fit to the desired size.That was intuitively easy. I managed also to align them horizontally in the center of the screen after the first scaling by the knowledge that their registration point can be found from the top left corner. I also managed to align each of them on vertically in the middle of the 1/3 part of the empty stage with desired marginals: in the top there are 20 pixels space, between the images there are 20 pixels space and in the bottom there are 20 pixels space.

Now the problems comes when I need to tween them to their final positions. Each of them to the top of the stage and each of them in 1/3 part of the empty space horizontally scaled at the same time smaller with factor .3.Intuitively when I think the x position can be found by same way than the way I found y positions (related to the space left after the middle image is positioned). So in theory I thought the x position for the image that comes in the center should be as much as finalX = stage.stageWidth / 2 - current.width * .3 / 2(the center point of the stage minus the half of the width of the image after the scale)but when I give finalX for the tweenLite as a x position and .3 as a scaling factor the result is something different.

View 1 Replies

ActionScript 3.0 :: Flash - Swf Scales Up In Firefox?

Oct 15, 2010

when i put my swf in an html page and view it using FF 3.6.10, it gets bigger and looks ugly (all the photos pixelate). noScale is set and the swf doesn't otherwise scale (e.g. if i minimise the window or press F11), which is the correct behaviour. Problem does not occur in IE8.From reading about similar problems i thought the best embed method was a combination of object tags. I've tried:

Code:
<object
type="application/x-shockwave-flash"

[code].....

View 1 Replies

ActionScript 2.0 :: Make Everything Align To The Bottom Of The .swf When It Scales?

May 13, 2010

I'm using this code:

Code:
Stage.align = "BC";
Stage.scaleMode = "noScale";
var $stage:Object = new Object();[code].........

To make everything align to the bottom of the .swf when it scales, as most of my MC's won't need to scale. The bottom part stays pretty much on it, imagine a desk, with lots of stuff on it, then as you resize, the background extends, which is why it aligns bottom.There is then a bar at the top and a bar at the bottom. the bottom bar is fine, it is naturally aligned to the bottom, so it doesn't need to be told to do anything.The top bar is giving me some grief though. I've tried all sorts of code to try and make it sit up the top, but it just doesn't want to.

View 14 Replies

ActionScript 3.0 :: Decrementing X And Y Scales Of Image (Number Below 0)

Oct 20, 2010

I'm using the following code in an attempt to decrement the X and Y scale of an image the problem is scaleX and ScaleY uses a number between 0 and 1 to do its business. I can't seem to get a number to decrement below zero.

PHP Code:
var b:Bitmap = new Bitmap(c);
var counter0:Number;
var counter1:Number;
for (var i=0;i<100;i++){
if(b.width >204){
counter0-0.1;
[Code] .....

View 2 Replies

ActionScript 3.0 :: Loaded Swf Scales - Screwing Up The X And Y Coordinates?

Mar 1, 2010

I loaded an anim.swf to the main.swf the anim.swf has some animation. in the main swf i have codes that changes the x and y coordinates of objects placed in the stage by there width/height. but the problem now is, since the anim.swf has some animation, it is screwing up the x and y coordinates since, it appears that the anim.swf is changing size (width and height) due to the animation.... Is there a ac3 code or some other settings, that can turn that off, so i have just the actual size of that swf and maintaining it?

View 3 Replies

ActionScript 3.0 :: Scales To Fit The Browser Window When It Resizes?

Mar 23, 2011

i want to know whether the website www.hbo.com is scaling or not and can you give a brief hint how to get same type of resizing effect . Because i found the the website have fixed minimum hight and minimum width  and i scales to fit the browser window when it resizes.

View 1 Replies

Flash :: Actionscript - Still Scales Elements Even If NO_SCALE Is Set

Mar 26, 2012

im trying to set up a simple form where you can type a pin and submit it to switch to another movieclip. Im using Flash CS5 and ActionScript 3. I have some MovieClips which get resized on a RESIZE Event. The movieclips get perfectly resized to the stages size so they fill it out. The problem i have is the scaling. To avoid scaling everything i used the following two lines.

[CODE]...

View 1 Replies

ActionScript 3.0 :: Container Scales Loaded Swf File?

Jul 5, 2010

I have a container on the stage in which a swf is to be loaded when you click a button. This works fine when the content of the .swf being loaded into the container does not have content floating outside of its stage, this is a problem for me because the .swf being loaded in has content that exceeds the width of its stage, but is masked. The masked content on that page will be made visible when the user mouses over the masks. So its essential that the .swf being loaded in exceed the dimensions of its stage.

Initially, when I click a button that is a child to the menu_mc, the swf loads into the container correctly, but when I MOUSE_OUT of the menu_mc the content within the swf scales to reflect any content that exceeds the width of its stage. I'm not sure if this is the result of the way I am the loaded swf. The swf is designed to scale up and down when the user MOUSE_OUT or MOUSE_OVER of the menu. The menu is designed to be hidden when not in use.Here's my code:

ActionScript Code:
import caurina.transitions.*;
import caurina.transitions.properties.DisplayShortcuts;[code].....

Additionally, I ran into a problem when I moused over the buttons that are children to the menu_mc. Whenever I rolled over them the content in the menu would hide itself off stage. So I came up with a solution that may not have been the appropriate course of action, but worked. In the MOUSE_OVER function of the buttons, I provided y coordinates for the other movie clips to prevent them from moving off stage. For the sake of better coding practices, would there have been a much more appropriate coarse of action.

View 0 Replies

ActionScript 3.0 :: Resize All Content On Site Scales?

Dec 14, 2010

Does anyone know how to resize all content on the site scales relative to the browser size of the viewer. Whether it is on a Netbook or a 30 inch screen all contents to fit on? I'm not talking about the basic center resize of stage.with and stage.heigh.

Basically I'm loading a content.swf in a main.swf and from the Main.swf, I want to be able to apply the resize all content method.

View 3 Replies

Actionscript :: Flash Still Scales Elements Even If NO_SCALE Is Set?

May 19, 2007

im trying to set up a simple form where you can type a pin and submit it to switch to another movieclip. Im using Flash CS5 and ActionScript 3. I have some MovieClips which get resized on a RESIZE Event. The movieclips get perfectly resized to the stages size so they fill it out.

View 3 Replies

ActionScript 2.0 :: Change The Scales Of Movie Clip

Feb 15, 2005

i have a problem with flash mx 2004! I have 2 scenes.At first scene i have one button1 into in one movie clip1 and at second scene i have only one movie clip!!!Now, i want when i press the button (at first scene) i can to change the scales of movie clip2 (at second scene)! My code is this and i can go to scene 2 but i don't change the _scales!

on(press){
_root.gotoAndStop("Scene 2",1);
_root.mc2._xscale=200;
_root.mc2._yscale=200;}

View 6 Replies

Remove The Old Picture And Then Start Fading In The New Picture?

Dec 7, 2010

i got five images, and five buttons, every image has a color, and lets say we start at the red one. When i click the the green button i want the green image to fade in.. i fugured out a way to do this on the timeline, but then i have to have a black box first fading in to remove the old picture and then start fading in the new picture..

View 2 Replies

ActionScript 3.0 :: Make Every Picture Go To A URL When The Picture Is Clicked?

May 27, 2011

I made a simple picture slideshow with a timer, prev/next buttons, pause/play buttons and jump buttons. Everything went good so far.Now i'm trying make every picture go to a URL when the picture is clicked but only the link on the first frame goes to the URL when clicked the other 5 buttons do nothing when click.(FYI: I made alpha 0% buttons in a layer above pictures)I tried two different codes but both have no effect.

as layer

Code:
stop();
var nextImage:Timer = new Timer(3000);
nextImage.addEventListener(TimerEvent.TIMER,playNext);
nextImage.start();

[code]....

View 1 Replies

Flv Movie Player Scales Along With Page - Stop Scaling?

Mar 29, 2010

I have a website which im designing exclusively in flash. The project size is 1000x500. The video which im using is 320x150. On the stage ive set the player to 320x150. The stage size is 1000x500 (thats the size and span of the website). When the page works from the internet. It expands to fill the screen of the viewing computer. Which is what i want anyway since Ive set my publish settings to get this. But the video player gets scaled along with the page that scales to occupy the viewing screen. So when the player becomes a little larger than its orginal size the video looks low quality. Is there a way that the player alone could be set to maintain its orginal size of 320x150 and not scale because this is causing the video to get distorted and pixellated ?

View 1 Replies

ActionScript 3.0 :: Creating A Graphic That Scales To The Window Size?

Oct 20, 2009

I have a project where I need to scale a graphic to the exact size as the window at all times. Is thereI have never done anything like this one before.

View 1 Replies







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