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


Similar Posts:


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 3.0 :: Tracing Variable Values ?

Feb 16, 2009

I sometimes have to test if a specific part of code is executed, and i just write

Code:
trace("ok");

Do you trace some more useful message instead ?

ps. I'm not talking about tracing variable values.

View 1 Replies

ActionScript 2.0 :: Random Movieclip - Tracing All Stars With _x Values

Apr 27, 2009

So. I have this relatively simple code

[Code]...

when I run it, there's this wierd random star just in the middle of the screen. I tried tracing all stars with _x values of 0, 200, undefined; _xscale values of 0, 100, undefined. There was nothing. I don't know why it's there. I don't even know if it has code in it. =/ Does anyone know what it is? Btw, I know it looks like crap ... sorta more like a glue gun than stars ... I have a better looking version, I just used this to try to disect the problem.

View 7 Replies

ActionScript 2.0 :: LoadVars / SendAndLoad - Values Returned To Flash Are Appearing Correctly But Do Not Test Correct

Jan 29, 2009

I'm basically sending some variables to a php script from flash and then returning some values back to flash from the script. The problem is that the values returned to flash are appearing correctly but do not test correct. My actionscript and php scripts are below (just samples displaying the the mechanics of what i'm trying to do):

[Code]...

View 3 Replies

ActionScript 2.0 :: _x & _yscale To Decimal?

Apr 4, 2007

Is there a known way to have _xscale and or _yscale show as if it was say 25% have it show .25, and if it's a 100% it's shows 1?

View 5 Replies

ActionScript 2.0 :: Make This Function Repeat Until _yscale=300?

Oct 25, 2004

i'm using this code to for a button to make a MC "kids1" gradually scale to 300%, in 5% increments, but it only scales it 5% then stop, does anyone know how to make this function repeat until _yscale=300?

Code:
on (release) {
if (_root.kids1._yscale<300) {
_root.kids1._yscale+= +5;
}
}

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

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

ActionScript 1/2 :: XML Are Being Returned As 'undefined'

Feb 24, 2011

I've set up a holder flash file that checks an XML file every 30 secs, and if the content has changed loads a new movie into itself. I am getting mixed results and baffled why this is not working consistently - the XML is being read successfully, but the attributes that should be read from the XML are being returned as 'undefined' for some reason.[code]...

View 3 Replies

ActionScript 3.0 :: Nothing Returned For HttpStatusHandler?

Jun 30, 2010

I'm trying to debug my player, which is having a problem loading xml files from IE over https.

I tried putting in the following code:

[code]
xmlLoader.addEventListener(HTTPStatusEvent.HTTP_ST ATUS, httpStatusHandler);
[code]

With the function httpStatusHandler firing an alert when it is hit:

[Code]....

When I load the player, nothing happens. What does this mean? Have I done something really stupid?

View 1 Replies

Actionscript 3.0 :: Looping Through XML Returned From PHP?

Feb 18, 2010

I'm creating a registration form that contains a 'chain-select' series of ComboBoxes. In other words, select an item in the first CB and display the results from a mysql query in the next CB.

PHP returns the results in an XML String (Code: Select allecho "returnXML="$returnXML; ). All is working great up to that point. What I would like to do is loop through the Code: Select allXMLList, running Code: Select alldataP.addItem({label: newData}); for each node. The problem is that the Code: Select allXMLList.length(); function is returning a value of 1.

Code: Select allxmlList.hasComplexContent() returns 'true' which, i believe, would indicate that the XMLList is being created successfully.

Here's a bare-bones version of the code that should be sufficient for solving this problem.

AS3:
Code: Select allimport flash.net.*;
import fl.data.DataProvider;
var dataP:DataProvider = new DataProvider();
var newData:String;

[Code]....

View 1 Replies

ActionScript 3.0 :: Count Variables Returned From Php?

Mar 9, 2010

I have a PHP file that sends different amounts of variables back to flash depending on what the user has done.

I was wondering if there was a way of counting these variables in the event.target.data so I could make a for loop?

View 2 Replies

Actionscript 3 :: Why Can't Get A Returned Value From Custom Class

Jul 21, 2010

[Code]...

This is my first crack at writing a class and after reading up this is what I have. Essentially, I want to be able to write var txt:adamsboxmaker = new adamsboxmaker(parameters); and have txt be a display object from the returned MovieClip. But that's not happening.

View 2 Replies

Actionscript :: Recursive Function And Returned Value?

Nov 5, 2010

I think I have the recursion working properly, but I'm not able to get the originally requested item's property set to the right value.The goal here is to find the topmost parent (or "ancestor," depth = 0) of the nested item (a taxonomy based on Dictionary "parent" attributes), and assign that originally requested nested item's "ancestor" property accordingly.For instance, in

Apples
- Red
- - Empire
- - - Fresh

"Fresh"'s ancestor should be set to "Apples." While I'm attempting this on an "on-demand" and individual basis, I'm open to a solution that tags all children that are related to the same ancestor in one fell swoop or for statement, since that would probably be more efficient.

REQUEST

for (var mc:Object in taxonomy) {
var term = taxonomy[mc];[code]....

As you can see, while the recursion does find the root, the originally requested item still gets the default value.

View 2 Replies

ActionScript 2.0 :: Undefined Being Returned Instead Of Xml Node Value?

Mar 2, 2004

I am trying to call a functoin which will use the xml object to retrieve data and return the data to the function call. When I trace "test_var" inside the "book_xml.onLoad" functoin, it works. but I can pass the xml data out of the get_data function.

stop();
//define function
function get_data(id) {

[Code]....

View 3 Replies

ActionScript 3.0 :: Array Keys Returned As Strings?

Jun 24, 2009

The more I get into haXe and cpp the more I'm wondering this about as3. Iteration in as3 is easy in comparison to those languages. But if Array extends Object, overriding getters and setters to create what's basically an IntHash<string> or map<int,string>, and which only takes an int as a key, then why shouldn't the key iterator also return an int? Why does it return a string?

View 5 Replies

ActionScript 1/2 :: Unable To Output The Time Returned By The Php

Feb 15, 2011

For some reason I'm unable to output the time returned by the php. This code is on my website and viewrs from different countries see different times.

[Code]...

View 15 Replies

Actionscript 3 :: Stop A Returned Object Being Modified?

Oct 29, 2010

If an AS3 method returns a reference to a complex type, is there any way to make that 'readonly', like how you can have const member functions in C++? An architecture I want to use calls for a class building itself from a passed template object... and really the template object should not be modifiable. I'm currently forced to add call-back enumerators and/or lots of extra accessor methods.

View 4 Replies

Flex :: Jabber Server Returned Data?

Dec 3, 2010

I am developing a chat application using flex, which can use different service providers users like gmail,yahoomail,ami etc. Almost similar like meebo.com.

I am using jabber server. My question is what kind of information jabber returns.I am getting userid,password,status,status message but I am not getting address or phone number of the user or picture of the user..

Please let me know,how can I take these values and what should I pass to jabber server to revcieve full information from jabber for different service provider's users.

View 1 Replies

Flex :: Charting A Count Of Records Returned?

Aug 29, 2011

I am trying to create some charts in Flex/FlashBuilder 4.5The issue I have it that the information I wish to display is the number of events within an area. I am using HTTP service to access a rails controller which is returning an XML list of the events.I need to figure out how to chart the number of events, eg number of records returned. There is no numeric value within chart, as there would be if I was charting sales or prices for example.

View 1 Replies

Actionscript 3 :: Parsing JSON Returned By URLLoader?

Feb 29, 2012

I'm using a URLLoader and URLRequest to make a call to youtube's api. The return is formatted as json and looks like the following: http://pastebin.com/WxPS9NCB. I'm trying to capture the "href" value located on line 42 in the above pastebin. But the code I have isn't working.

[Code]...

View 2 Replies

ActionScript 2.0 :: SendAndLoad - Check Value Of Returned Variable

Aug 31, 2010

I`m using sendAndLoad function to pass some var to serve rside language. ASPX to be precise. Everything works fine, but the problem is I need to check value of returned variable. And variable is returned in XML format.

[Code]...

View 1 Replies

ActionScript 2.0 :: What Is Returned From Database To Populate Menu

May 19, 2005

i've been playing around with coldfusion for the past couple of days. I can make database queries within coldfusion components and call them in flash via flash remoting.what I can't seem to get my brain around is how do I use what is returned from a database to populate a menu (i.e.-attach movie clips based on rows from the database)?How can you do this without the structure found in XML? I know how to do that with Flash (looping through nodes, etc.)without the nodes, what the heck do you loop through? Do i need to use cold fusion to build some kind of structure first? if so does anybody know of a good tute or know how to do it and can explain the very basic concepts involved?

View 3 Replies

ActionScript 2.0 :: F8: Objects Returned From Class Being Overwritten?

May 5, 2007

I have four movieclips on the stage. They can be dragged around. I have a class that creates a segment from two points, and returns the x-intercept, y-intercept, slope, and inverse slope of a linear function going through the two points.On every enterFrame() i create one segment for each pair of points, then the information is displayed in a bunch of dynamic text boxes.

The Problem: whichever object is sent over last overwrites the data from the first. I am creating two different objects with different names, but the first is being overwritten by the second. What is going wrong here?

FLA included. But you will need to make this class file:

Seg.as:

Code:
import flash.geom.Point;
class Seg {
// variables
private var p1:Point;

[code]....

View 2 Replies







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