ActionScript 3.0 :: Resizing A MC With A Slider?

Aug 21, 2011

I apologize, the math must be too complicated for my right-brained mind. I've created a slider bar widget with a slider knob thingie who's start/stopDrag is restricted to 100px along the x axis.

I need to resize another movie clip from 25%-400% based on the slider's knob position.

I need slider(and respective MC) to start at 100% by default. I've started with something like this (below) but the math is wrong, and I can't figure out how to do this for the life of me.

[Code]...

View 3 Replies


Similar Posts:


Flash - Create Image Slider Like Nivo Slider With Builder

Jan 10, 2012

I'd like to build image slider like Nivo slider with Adobe Flash Builder.

i'd like to have image controls, image titles displayed above the image(like layers in flash). i'd like to read the data from xml.

i'd like to have nice transitions between images.

mayebe u can provide tutorial or source code.

View 1 Replies

Actionscript 2.0 :: Can't Get Zoom Slider To Work With The Position Of The Slider

Mar 25, 2010

What I have is a map that you can click on points and it will zoom in, you can also click on a "plus/minus" buttons to zoom in and out (I even have the mouse wheel zooming in and out). The client wanted me to add a "zoom slider bar" to it so you know you could move it up and down to scale it. Everything is working except the slider, I can't seem to get it to work with the position of the slider. All of the zoom functionality is there but the slider is killing me.

I am putting up the fla file since there is a lot of code in there and I didn't want to put it all in the forum. if you look in the fla in frame ten on line 726 you can find the function that is supposed to handle the zooming when you move the slider. Up on line 74 you can find the slider onPress and onRelease functions, but those I believe should be fine.

View 2 Replies

Actionscript 3 :: Resizing A Sprite Without Resizing Its BitmapFill (or Its Contents For That Matter)?

Nov 1, 2010

I am not simply trying to contain things and have the container resize without the contents resizing. I would just use a simple MovieClip for that.. My main focus is on the use of BitmapFill. I'm trying to make a repeating background image for a container; thus far I'm able to draw my BitmapFill sprite to the size I want. (Which is the stage's height) but when the stage is resized, I want to re-size my container but have my containers BitmapFill crop or add more as the window is resized bigger or smaller. Allow me to illustrate what I mean:

I've got a simple rectangle sprite that fills with a bitmap from the library and a simple resize handler function that detects when the window has been resized.what I would like to do is have my rectangle resize to the height of the stage.stageHeight maintaining its bitmap fill, but not resizing the bitmap fill or any children within the sprite.

From what I've read, this is a little tricky because the sprite resizes in relation to what it contains.. or.. something like that.. I really don't know any more.. I saw one example where a person extended the sprite class but I don't know why or how..

in my library there is an image called 'pattern' and my code looks like this:

stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.addEventListener(Event.RESIZE, resizeHandler, false, 0, true);

[code]....

View 2 Replies

ActionScript 3.0 :: Smooth Resizing As Opposed Going In And Resizing Every File Manually?

Sep 11, 2009

I'm loading a few pngs/jpgs externally so they can be swapped out occasionally, and the issue I'm running into is when they are shrunk they become fairly choppy. Is there a way to have flash re-render them, or do something to smooth the resizing as opposed to going in and resizing every file manually myself?

View 1 Replies

ActionScript 3.0 :: Resizing A Sprite Without Resizing Its Auto-fill?

Nov 2, 2010

I've got a little problem with BitmapFill, I'm trying to use a sprite as a container for various things and i would like it to have a filled pattern background. my problem is that i want it to resize the sprite to the height of the window but not have the background fill resize, and add more / crop as the window size is changed. to illustrate what i mean, please view the diagram attached to this post .

I have an image in my library called 'pattern' and my code is as follows:

ActionScript Code:
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;

[Code].....

View 2 Replies

ActionScript 2.0 :: Slider To Drag Another Slider On Collision?

Dec 1, 2009

I am trying to create a basic timeline, similar to the timeline we all use in flash (see attached).

I have a playhead slider, which when dragged, just drags within its startDrag() limits.

I also have horizontal window scroller which also when dragged, just drags within its startDrag() limits.

I am trying to work out how to get the horizontal window scroller to scroll when the playhead slider hits the left or right edge. I am using hittest for this collision.

I have the playHeadSlider scrolling along the top. When playHeadSlider collides with hittestThing I want mcContents to then move.

It kind of works.. mcContents moves when the playHeadSlider is in collision with the hittestThing.. but it just moves rather than 'drags' across. I have it set up so that mcContents is twice the width (approx) of mcScrollWindow.

I need to somehow update what I have so that if the playHeadSlider collides with hittestThing on the right, mcContents only moves to the right and if playHeadSlider collides with hittestThing2 on the left, mcContents only moves to the left.

View 0 Replies

ActionScript 3.0 :: Make A Circle Slide ( Slider That On The Shape Of Circle Instead Of Vertical And Horizontal Slider)?

Jul 3, 2009

I'd like to make a circle slide ( Slider that on the shape of circle instead of vertical and horizontal Slider) like this one:

[URL]

Is there a ready Component on the web.

View 0 Replies

AS2 :: IDE - Updating A Slider Bar

Aug 18, 2009

I am just learning AS3, and have no idea whatsoever about the differences between 2 and 3. There is a bit of code from [URL] that I wanted to update to use AS3, but it was written in AS2. Here it is:

[Code]....

I get twelve total errors (there are six buttons with a slider next to them, and there are 2 types of errors). The first is: 1119: Access of possibly undefined property onPress through a reference with static type flash.display:SimpleButton. The other is 1120: Access of undefined property _root. The key parts of the code (I think) are the button names, and slider_mc., a little black square that slides up and down the height of the menu. All of the buttons are button symbols, each with a unique name. I read that to fix the 1119 error, I can convert them to movie clips, but then they no longer function as buttons (which is sort of the point).

View 2 Replies

IDE :: Create This Slider Without XML?

Apr 22, 2010

I was wondering if anyone knew or could point me in the direction of a tutorial that will allow me to achieve this slider effect - but without using xml The effect is exactly what I need but on the particular network I need to upload to it doesn't seem to be able to load the images, I have tested it on other sites so know it is not a error.s there a way to achieve the same effect with the images already embeded in flash?

View 3 Replies

ActionScript 2.0 :: CS3 Set Volume Slider To 50%?

May 11, 2009

I'm a designer that inherited a project with a volume slider. I'm not that good with actionscript yet and haven't been able to figure out the code. The volume and slider starts at 100%, and I need it to start at 50%. Can you tell me how to set both the volume and slider at 50%? I'm sure it is a simple solution but I can't figure it out. I tried a few things but have not been able to get it to work correctly in both the volume level and start position for the sliderHere's the code on the 2nd frame of the mc:

Code:
stop();
var NiVol:Sound = new Sound(_root.Container);

[code].....

View 4 Replies

How To Reverse Movieclip In Slider.fla

Aug 16, 2009

I apologize for being a newbie. I have been trying to figure out how to reverse an EKG movieclip to go from right to left instead of the direction it is currently moving:

View 16 Replies

Create A Slider Bar With Images?

Sep 2, 2009

[url]...Is this done purely in Flash CS4 or is another one of Adobe's products involved too?

View 2 Replies

ActionScript 3.0 :: Add Slider To Datagrid?

Mar 1, 2012

Is it possible to add a slider to a datagrid. Basically, a column of sliders.

View 3 Replies

ActionScript 2.0 :: How To Stop The Slider

Feb 28, 2006

First, when you download attache file, make sure that file will be in same directory(c: emp). in file test.fla in frame 5 in layer snowing is movie clip, name mcPoly. Now, load testing.swf and hit the movie button. The movie(test.swf) is load, now push the play button and wait until the snowing come, then press the pause botton, and you will see that the snowing keep snow.My questions is, how to stop the snow, when the pause button is press, and when you move the slider, where the snow is starting, the snow has to rest until the play button is press.

View 3 Replies

ActionScript 2.0 :: Make Slider Go Right

Jun 30, 2008

I have mad this from a tutorial. Now the slider goes left but i wants it to go right but i just cant seem to get it to work.[code]

View 2 Replies

ActionScript 2.0 :: How To Get Slider To Appear On Rollover

Oct 20, 2008

I have been working through this tutorial [URL] and have everything working pretty well but have two questions/problems:
1. Does this only work with buttons? I have tried to replace the buttons with MC and keep the same instance name but then it does not work - can I get this effect using movie clips instead of buttons?
2. How can I get the slider to appear on rollover (on any button) and then start its sliding effect as demonstrated?

View 2 Replies

IDE :: Volume Slider Using Mask?

Mar 30, 2009

I made a volume slider which works with a draggable mc to control the volume. But I want to do a bit different slider using a mask like the slider in Component box. The aria I want to drag over is a rounded rectangle. I make a rectangle which will be my bound and i use the rounded rectangle to mask it. How should i continue.

View 1 Replies

IDE :: Panning Timeline With Slider?

Dec 30, 2009

I am creating a timeline for a website and there is a slider located at the top of the page where the years are defined on a line. The slider should be able to be moved by the clicking on it with the mouse and dragging it thus moving the timeline information directly below it from right to leftIf ANYONE knows any codeing or how to accomplis this in Flash CS3 actionscript2; If I am able to log onto my tempsite soon... I will upload what I have so far and post it in a reply thread. I have created the pieces of this puzzle in flash just as a motion tween to show the concept that I am trying to create. When the slider moves right to a greater year, the timeline image pans left. Vice versa

View 1 Replies

ActionScript 3.0 :: Slider With Numbers?

Mar 5, 2012

So i got the slider itself working, but how would I, for example with a slider length of 1 to 100 pixels create an array of numbers between 20 and 200? (or simply between numbers x and y)?I figure theres tutorials all over the web for a formula, and that theres even a simple 9th grade math equation for it, but im simply too lazy.

View 9 Replies

ActionScript 2.0 :: Slider And X,y Movement?

Aug 11, 2004

I found some code on your site a while ago that allowed me to click a button and make the movie move back and forth using the x position. I wanted to try moving it around using both the x and y position, but im not sure what i am doing. it is working somewhat, but it is not going to a specific spot. i dont understand if it is working right.

View 2 Replies

ActionScript 2.0 :: Slider - When Go To Drag The MC

Jan 6, 2004

I'm making a slider which will eventually control the alpha levels of a movieclip of mine but I'm having trouble controlling the parameters in the startDrag() function. Here is the

[Code]...

View 2 Replies

ActionScript 1/2 :: Resizing From Xml?

Mar 7, 2010

I'm loading in external images from XML, but they are coming in way too big; i have resized the actual images to the size i want them yet they still come in huge

function drawItem() {
coverImage.loadMovie(mediaFolder + currentNode.childNodes[2].firstChild);
coverImage.width = 600;

[code]....

View 1 Replies

IDE :: Browser Resizing The Swf?

Jan 23, 2009

I have a stage of 600x400 and in the publish settings I chose this same width and height (with pixels dimension, and scale: No Scale).And when I load the swf in a browser:

[URL]

It resizes the swf stage size.(I know this because I have a value which is positioned according to the stage width/height, and also because if I choose an opaque windowless I can see that it is bigger than I want it to be)Am I loading the .swf wrong?

View 2 Replies

IDE :: CS5 Banner Resizing?

Nov 11, 2011

I have made 1 Flash banner 728x90, the next one has smaller dimensions (468x60) but the proportions are the same so, I duplicated the document, grabbed the movie clip containing the animation and used the transform tool to make it the correct size.Some of the images need replacing as resizing didn't treat them well. But since I am trying to add them to the resized movie clip they appear too small.

View 2 Replies

ActionScript 2.0 :: CS3 Slider To Control A Movieclip?

Feb 5, 2010

I need to create a movie (AS2) that the user can control forward and backward by a slider. Moreover the slider should be updated automatically by the movie timeline position.

View 3 Replies

ActionScript 2.0 :: Slider Keeps Moving On Mouse Out?

May 23, 2011

I built a slider that has two identical horizontal MC's nested end to end inside another MC so when you move the mouse left and right over the MC it slides right and left in an endless loop. My problem is that to stop the slider from moving, the mouse must be in the exact center of the MC and if a person moves off the slider somewhere to one side or the other, it keeps sliding. What I would like to do is set it up so that wherever the slider is when the mouse moves off of it, it simply stops moving. I was thinking maybe an _y parameter would do it (the MC is 18 px high) but I'm not sure how to code this.

Here's what I'm working with:

onClipEvent (enterFrame) {
xcenter = 467.5;
speed = 1/15;

[code]....

View 1 Replies

ActionScript 3.0 :: X Slider To Change Frames Of A Mc?

Aug 3, 2011

I am trying to set up a file with a sliderMC that would change frames in another mc when the user drags it left or right. So far I have:

var pos:MovieClip;
pos.onPress = function ():Void{
this.startDrag(true, -10, 0, 600, 0);

[code].....

but I am stumped as to how to code AS3 so that when the instance of

pos is between 0-150 to go to mc frame 1
when x equals 150-300 to go to mc frame 2
when x equals 300-450 to go to mc frame 3
when x equals 450-600 to go to mc frame 4
when x is greater than 600 to go to mc frame 5

View 8 Replies

ActionScript 3.0 :: Trace The Value Of A Slider When It Reaches A New Value?

Nov 25, 2008

How do I trace the value of an slider when it reaches a new value? So that I can change other properties depending on what value the slider has.

View 1 Replies

Make A News Slider In Flash

May 1, 2009

I'd like to make a news slider for flash that not only shows images and text, but can also play videos that are presented as news, through an XML file or something.A good example is the flash news slider that ea.com uses, which can play videos on clal as well.Can anyone direct me to a tutorial or guide me here on how I cna achieve this through Flash CS4?

View 18 Replies







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