ActionScript 2.0 :: Give A Variable To The _xscale Of A Given MC.?

Nov 17, 2002

Is it possible to give a variable to the _xscale of a given MC.? i wonder because I ran into a problem with this example:

I have a MC, that i want to be able to modify the xscale by an input box and button. basically the user inputs a value, presses the button, and the _xscale of the MC chages to what they put in the input box. so my MC is named graph. the input box has a var of xsize. the button works fine if I use on release graph._xscale = xsize

but when I try to give graph._xscale a variable like MCsize

on release
MCsize = xsize
that doesn't work.

is it my syntax or just that I can't give a property of a MC a variable name?

View 4 Replies


Similar Posts:


ActionScript 3.0 :: Give A Sprite Variable?

May 11, 2009

How do I give a sprite a variable?

example (I know this does not work)[code]...

View 9 Replies

ActionScript 2.0 :: Difference Between _x And _xscale?

Oct 27, 2009

i am pretty new to action script. please explain me wats the difference between _x and _xscale...

View 1 Replies

ActionScript 2.0 :: _xscale Loader With SetInterval?

Feb 25, 2010

I've read the Photo Slideshow and the Photo Gallery Using XML and Flash tutorials from Kirupa and I've modified it a little bit to suite my website. Mostly layout changes.What I want to do is for the slideshow() function, with the setInterval, is to have a "time bar" that shows the time of that setInterval function. Just like a preloader.I have a movieclip named time_left and in that movieclip I have a border and also another movieclip called whats_left . The idea is to use _xscale and scale the whats_left moviclip.Here's the actionscript for the slideshow() function

Code:
function slideshow() {
myInterval = setInterval(pause_slideshow, delay);
function pause_slideshow() {
if(p == (total-1)) {

[code]....

If you know the tutorials I've read and wonder where my clearInterval is, it's in my prevImage, nextImage and firstImage functions as I use the previous- and next-buttons to give my users the ability to skip the timer and go straight to the next/previous image.

View 4 Replies

ActionScript 2.0 :: Disabling Movie Clips Via _xscale?

Nov 21, 2006

I have some MC's and they have buttons and other MC's within them. (dynamically loaded). I don't want them to be seen or the buttons enabled until my startbutton is pressed. I tried

mc.enabled = false
mc._alpha = 0

and it didn't work. (If anyone knows why, I'd be curious to know the answer)

So I did mc._xscale = 0

and that seems to do the trick. They aren't visible and there's no fear of anyone pressing any invisible buttons.

View 8 Replies

ActionScript 2.0 :: Determining Correct _xscale And _yscale For TweenLite?

Sep 29, 2009

I've run into a little bit of a wall with TweenLite (AS2). It isn't really an issue with TweenLite so much as my lack of understanding, and I'm hoping someone will be gracious enough to educate me.I'm using TweenLite to tween the _xscale and _yscale of a movieclip The issue is that the end _xscale and _yscale values will differ depending on the original size of the movieclip. I need to reduce the _xscale and _yscale until the movieclip's width is less than 620. I've created a pretty clumsy way of doing this:

Code:
center._alpha = 0;
center.onEnterFrame = function(){

[code]........

View 1 Replies

ActionScript 2.0 :: Tracing _xscale & _yscale - Only Values Returned Are 100

Dec 18, 2006

I'm moving my movieclip around and in order to make things work nicely I need to know the _xscale and _yscale values before and after the clip has been triggered, there are lots of variations but when I trace(myMC._xscale) & trace(myMC._yscale) the only values returned are 100

View 7 Replies

ActionScript 2.0 :: Making A Shooting Game, Would Like The Gun To Flip _xscale?

Jun 2, 2008

I'm making a shooting game, would like the gun to flip _xscale when you move the gun past half the width of the stage. Here's the script I made which doesn't work and is probably not written correctly:

if(_xmouse >= Stage.width/2){
_root.gun_mc._xscale * -1;
}

View 4 Replies

ActionScript 2.0 :: _xscale When Registration Point Is Left Side?

Aug 14, 2003

I've got a scrolling image gallery which I have a zoom button that lets the user zoom in on the images... If they click on the stage, the scrolling stops. Now, if they try to zoom in, the image scales from the left side, since the images registration points are on the left side of the movie clip they're loaded into. This causes the images to shift right, but I want it to appear as if its a straight on zoom...

View 3 Replies

ActionScript 2.0 :: Make _xscale Larger When OnRollOver But Need To Swap Depths?

Jan 4, 2004

I am making a photo gallery with thumbnails and when the mouse rolls over them, they increase in size. Problem: when they increase, they do not cover the other thumbnails completely, since it is only an _xscale percentage increase and not a new movie clip. So you can see all the other thumbnails over the increased photo size. It is a problem of swapping depths I'm sure--but do I have to take off all the thumbnails from the main level and load them dynamically onto different levels in order to be able to swap depths?

View 4 Replies

IDE :: Give URL In The Button?

Apr 11, 2009

I am web designer rite now I am making a banner in which I need to give URL for that if somebody click on it so the particular site will open.

View 2 Replies

ActionScript 3.0 :: Give Data From Swf To Another Swf?

Jan 30, 2010

I'm using UILoader companent and I'm trying to load another swf in my current swf.Can I give data from main swf to loaded swf or get data from main swf by loaded swf.

View 1 Replies

ActionScript 3.0 :: Give Xml That Does Not Exist Value

Dec 14, 2009

I have xml values already and I am trying to add a xml value to it myxml.value[i].@myset = "02"but when I try to add it with the code below it won't work properly and I was trying to figure out if the code is right for checking and adding xml if the xml does not exist.[code]

View 1 Replies

ActionScript 3.0 :: Give Mc's Different Values

Jun 23, 2011

I got a MovieClip which will be a moving platform for a game. And I want to be able to just copy it and place in different places on my game map. But I would also like to give them different values such as, speed, distance to travel, and so on. In As2 I would put all code i needed for the moving platform to work, inside the MoviClip in it's first frame except for the variables, speed and distance which I would put on the MovieClip instead. In a "onClipEvent(load)". Then I could just copy my MovieClip and change those variables. But this do not work in As3 and I wounder if someone knows a good way to do this

[Code]...

View 6 Replies

ActionScript 2.0 :: Give The Swf A Transparent Background ?

Sep 1, 2009

I'm builiding a swf that will play on an html web page. It's a "build" where the page starts as blank and the animation "wipes" on in sections. The web page has a gradient background, and the swf will have a soft drop shadow.Is there a way to give the swf a transparent background so we don't have to try to "match" the gradient it will appear on top of.If this isn't clear I can post the swf or fla file.Also, on this subject, what are the "Window" settings in the html publish settings? The options are Window, Transparent Windowless or Opaque Windowless.I've tried these in the past and they don't seem to have any affect at all.

View 1 Replies

CS3 Give Instance Names Quickly?

Jun 3, 2010

I have 100+ of the same movieclips on the stage at the same time, all positioned differently.i'm getting really tired of clicking on one of them, then clicking in the instance name box then typing "i65", then clicking on one of them, then clicking in the instance name box then typing "i66"...

is there anyway flash can fill this information in for you? or a plugin anyone's heard of? this isn't really an actionscript question, I'm not so fussed about selecting the different movieclips based on getChildAt or any of that stuff, I'd just really like a faster way of assigning instance names.

View 1 Replies

ActionScript 1/2 :: Give A Timeline Command After A Mp3?

Sep 1, 2010

I have a few long pieces of music (10 minutes plus) and was wondering if there is any actionscript 2.0 command I can give to basically say either after X.mp3 ends do Y timeline control or even if there is a way to enter in a time so after X minutes do Y timeline control.

View 3 Replies

ActionScript 2.0 :: Give Swf A Transparent Background

Sep 1, 2009

I'm builiding a swf that will play on an html web page. It's a "build" where the page starts as blank and the animation "wipes" on in sections. The web page has a gradient background, and the swf will have a soft drop shadow.Is there a way to give the swf a transparent background so we don't have to try to "match" the gradient it will appear on top of?If this isn't clear I can post the swf or fla file.Also, on this subject, what are the "Window" settings in the html publish settings? The options are Window, Transparent Windowless or Opaque Windowless. I've tried these in the past and they don't seem to have any affect at all.

View 2 Replies

ActionScript 3.0 :: Give Xy Coordinates To BitmapData?

Dec 19, 2009

is it possible to give specific x and y coordinates to a BitmapData?

you can give the width and height, but no x or y... I dont want it to start at (0,0)

ActionScript Code:
var bmd : BitmapData = new BitmapData( m_mask.width, m_mask.height, true, 0xFFFFFFFF );

View 4 Replies

ActionScript 2.0 :: Give Duplicate It's Own Functions?

Feb 7, 2010

I have an MC (button1). When it is pressed, it creates a duplicate, which is automatically being dragged. When released, the movie clip stops dragging. I can repeat this process with the original a number of times. However, I want to be able to click and drag the MC's AFTER they've been duplicated. Once I have this code, then I can add other functions myself (like hitTests, removeMovieClip and so on).

[Code]...

View 7 Replies

ActionScript 3.0 :: Give Dynamic Type Name From XML?

May 23, 2010

I'm parsing XML file and draw some objects. Each object has it's own class which name is stored in another XML. I also have some .as files with those classes, f.ex[code]...

I'm not shure how to do this. Is it possible to give dynamic names to the types like, khm obj:{classname}=new {classname}?

View 1 Replies

ActionScript 3.0 :: Give Sounds To Letters?

Oct 23, 2011

I want to convert text to audio and I was told that there is a way to assign a sound to every letter and then I would just have to concatenate the sounds to form words

View 4 Replies

Actionscript 3.0 :: Give A Swf Drag Properties?

Jan 14, 2009

I am currently building a site with AS3 and have run into a small problem. I Have my Main swf which is the site. Inside that I have a "gallery" which is full of buttons. I have it set up so when you click a button to view a image it loads a separate smaller swf on top of the main swf. What I would like to do is be able to have the smaller swf open in the middle of the main swf and be able to drag it around. How would I go about controlling a swf inside a swf?

View 5 Replies

Actionscript 2.0 :: Using An Array To Give MC's A Picture From XML

Apr 17, 2009

I'm trying to use XML to put external pictures into a MovieClip. (BTW, all movieclips already exist on stage, given the name instanceName#, where #=something from 0-49)

The first chunk of code here is what I'm working on. There's a section surrounded by slashes, and that's my problem area. what I should put in the parens after "new Array"? (right now it's numOfItems, but I'm pretty sure that won't do anything.)

I need the array to generate the instance names of "a number" of movieclips, so that if I have 3 nodes in the XML it'll generate (instanceName0, instanceName1, instanceName2... etc) and if I have 4, it'll make 0-3, so on.

[Code].....

View 4 Replies

ActionScript 2.0 :: Give An Array Of 6 Items Different X And Y?

May 27, 2005

Is it possible to give an array of 6 items different x and y.. like as in 2 columns

startx = 0;
starty = 0;
for (var i = 0; i<itemArray.length; i++) {
First 3 items:
nav._y = starty+25*i;

[code]....

View 6 Replies

IDE :: Give Links From Homepage To Icons?

Apr 20, 2009

all this pages are in one movieclip called PAG with appropriate names to moviclip and frames. I am having problem with Home page i hv some icons which shld take user to links. but its not working . and same link works fine with training page.

_root.pag.training.gotoAndStop("t2");
}

now how to give links from homepage to icons .

View 1 Replies

ActionScript 2.0 :: Give Acceleration To An Object?

Jan 28, 2010

i have found a code whose purpose is to make an object to follow the mouse arrow. It works perfect, but i would like to add a kind of acceleration to it. That means the closer the object is to the mouse arrow, the faster it moves.

[code]...

View 5 Replies

ActionScript 3.0 :: Give An Initial Value To A InputTextField?

Feb 27, 2010

I have a few inputFields on the stage and I would like to give them an initial value, I know I can put that value directly to the inputField the problem is that this value may change depending on some conditions. how to give an initial value to a inputTextField?

View 1 Replies

ActionScript 2.0 :: Cannot Give Button Instance Name?

Sep 10, 2010

I'm trying to give a button an instance name. The button is situated in the library, and i suppose that's why I cannot give it an instance name (which is really necessary.)It 's in actionscript 2.

View 3 Replies

ActionScript 2.0 :: Why Does Trace Give Undefined Value

Oct 26, 2002

mailObj = new LoadVars();
//send variables to ASP using POST
mailObj.sendAndLoad("sendmail.asp","this", "POST");
trace(mailObj.loaded);

why does this trace give me a undefined value?

View 3 Replies







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