ActionScript 2.0 :: SetProperty - Can See Only With One Coordinate

Oct 8, 2005

first have a look at this: [URL] It loads "auto" coordinates from php file, and makes the "auto" move after timeinterval. It is needed tht it could load infinate coordinates, but i fail to do it. If u change setProperty(auto, _x, kord ) to setProperty(auto, _x, x2 ) , it works, but as u can see only with one coordinate.

View 9 Replies


Similar Posts:


Actionscript 3 :: Find Coordinate Of Child In Its Parent's Coordinate System?

Mar 31, 2010

I have 3 square. smallest square s3 is inside s2. s2 is in side s1. each is 10px larger [code]how can I find the coordinate of child in its parent's coordinate system?

View 1 Replies

ActionScript 3.0 :: SetProperty() Will Not Work?

Jul 27, 2007

I seem to have found a bug.....setProperty() will not work

View 5 Replies

Flex :: Difference Between SetProperty And RemoveChild

Jun 15, 2011

When state is changed, we can define the new properties for the new state overidding the properties of the base state.

But, I had a doubt. What is the difference between using setProperty() and removeChild() in Flex ?

Take the following case.
Suppose there are 2 Vbox inside the application container. When the state is changed by some event, I need only 1 VBox in the appln container.

(a) Should I set setProperty for that particular VBox of width and height to 0 ? or (b) Should I remove the VBox from the new state by using removeChild() property ?

View 1 Replies

ActionScript 2.0 :: Unable To SetProperty Deprecated?

Jun 21, 2010

I have read this a few times, however, I never really understood the alternative. Please help me understand.How would I, without SetProperty, change the _alpha of a movieclip defined by a variable.With setProperty I would define the variable(which obviously will be changing, therefore a variable is needed):var movieClip = "_root.someMovieClip_mc"setProperty(movieClip, _alpha , 50)

View 5 Replies

ActionScript 2.0 :: SetProperty Doesn't Work?

Jul 16, 2010

I'm trying to do something pretty simple: I am duplicating a movie clip and setting the _x and _y properties of the duplicate. The reason it is driving me up the wall is that the code works if I export for Flash Player 6, but not for anything later, and according to the sites I've read this code should work. I don't want to get into this project (which is big) and find out later that I can't export for such an old player.Here's the code:

Code:
function createBalls(ballNum) {
var newClipName:String = "ball" + ballNum;

[code].......

View 4 Replies

ActionScript 2.0 :: Create Ball1 To Manipulate Them With Setproperty?

Jun 12, 2005

i want to duplicate a movie clip b1 and create ball1 to manipulate them with setproperty, and the same for b2 but this one into ball2. when i execute this code it would only do it for b1 and not for b2.

Julie(^_^)
var x1=50
var y1=100
var x2=60
var y2=89

[Code]...

View 12 Replies

ActionScript 2.0 :: Using SetProperty Function In Masked Layer

Jul 12, 2002

I'm having some problems setting _x and _y positions of a movie clip attached (into a clip on a masked layer) using attachMovie. The code should position the clips icon1-8 on the y axis (100 pixels Ipart). The destination movie clip (the one with the actions) resides in a masked layer, I remember reading that there were some problems with masked layers in version 5. (i'm using flash MX). The movie clip is _root.openwindow.files

onClipEvent (load) {
for (var counter=1; counter<9; ++counter) {
this.attachMovie("icon", "icon"+counter, counter);
this["icon"+counter]._x= 37;
this["icon"+counter]._y=counter*100;
}}

I am pretty sure there is nothing wrong with the code.. as it works outside the masked layer..

View 2 Replies

ActionScript 2.0 :: SetProperty (multiple Targets, _property, Value)?

Mar 28, 2005

I've 2 mc in timeline instance names are:

form1
form2

in first frame I wrote the following code

setProperty(form1, _alpha, 50);
setProperty(form2, _alpha, 50);

this works ok. but the question is... multiple targets, how could I do something like this:

setProperty((form1; form2), _alpha, 50);

although I know this doesn't work... how could I setProperty of more than one instance?

View 4 Replies

Media Server :: SharedObject - SetProperty/getProperty No Change?

Feb 15, 2012

I can't seem to get setProperty to affect any change detectable by getProperty, or any other means.
 
* Can you please help me find and fix the problems in my code? Also, it would be great if you could provide a snippet of code to both read/write to the SO from the Flash swf client, and changes required in the FMS server-side code to receive events onSync from another FMS server (also sending to another FMS server.. I know it should be very similar in theory).

[Code]...

View 2 Replies

ActionScript 3.0 :: SetProperty Method Only Applicable To Remote SharedObject?

Jan 25, 2011

Is the setProperty method only applicable to remote shared objects and not to local shared objects? The following code works fine:
Code:
web_so.setProperty("web", "someURL");
trace(username_so.data.Name);

Where 'web_so' was earlier declared as a remote shared object. When the above line of code is parsed, the bbc website opens in the browser and the trace statement get's printed in the output cosole. However if I were to replace the web_so...code witht the following:
Code:
username_so.setProperty("web", "someURL");
trace(username_so.data.Name);

Where 'username_so' was earlier declared as a local shared object. The trace statements prints out fine, but the brower dosent fire up at all. Which makes me wonder if the 'setProperty' method is something unique to remote shared objects, but I dont see the API mentioning that.

View 0 Replies

ActionScript 2.0 :: SetProperty Of More Than One Instance (multiple Targets - _property - Value)?

Mar 28, 2005

got stuck with this... I've 2 mc in timeline instance names are: form1 form2 in first frame I wrote the following code

[Code]...

this works ok but the question is... multiple targets, how could I do something like this: setProperty((form1; form2), _alpha, 50); although I know this doesn't work... how could I setProperty of more than one instance?

View 4 Replies

ActionScript 2.0 :: Set Alpha Property In Flash Mx Without Using The Setproperty Action?

Jul 4, 2003

how can i set alpha property in flash mx without using the setproperty action. when i use setproperty action to change alpha value ,the graphic doesn't animate.

View 3 Replies

Actionscript 3.0 :: Translate From AS2: Parallax/ Panning Effect - SetProperty Method

May 18, 2009

Can anyone translate this AS2 code to AS3? I tried myself but I am having a problem with the setProperty method. Code is pasted and here's the link to the source files.

[Code]...

View 1 Replies

ActionScript 2.0 :: CS3 Ease To A Set Coordinate

May 26, 2009

i have a mapMC on the stage and 6 buttons. i need to be able to make the buttons move the mapMC to specified coordinates. the coordinates are set and will never change. i also need an easing from one location to the next. i guess i'll go ahead and throw in a bonus question for any of you aces out there. lets say location "A" is at x=200, y=400. i would like the mapMC to get there and scale 120%. so a button that gets pressed will go to its coordinates and scale acordingly. i can see that this could be script heavy, but for some reason not too difficult.

View 1 Replies

ActionScript 3.0 :: Get The X Coordinate Of Movieclip?

Jul 13, 2011

I have a movieclip with a drag function, and after each drag I want it to trace the x position. I tried the following code but it always outputs 0.

ActionScript Code:
sliderMC.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToPosition);
function fl_ClickToPosition(event:MouseEvent):void

[Code].....

View 5 Replies

Actionscript 3.0 :: Position Of The X Coordinate?

Apr 20, 2009

to get the position of a movieClip in the x axis, we use: trace(movieClip.x);is there an alternative for ".x"???

View 3 Replies

ActionScript 2.0 :: StartDrag Restrict X & Y Coordinate?

Jul 28, 2009

[URL]

If you drag the map, it moves even beyond the edge of the map so the map eventually gets dragged off the screen. Is there any possible way to stop the map moving any furthur than its boundry?

The source is here - [URL]

View 3 Replies

ActionScript 3.0 :: Track Y Coordinate, Then DoSomething?

Nov 12, 2009

I am trying track to see if mouse is between 0 and 200 pix in the Y coordinate, then do an if statement.

stage.addEventListener(MouseEvent.MOUSE_MOVE, mousePosition);
// I use this to track readings.
function mousePosition(event:MouseEvent) {

[code].....

View 3 Replies

ActionScript 3.0 :: 3D RotationX/Y/Z With Local Coordinate?

Jan 28, 2012

When I use 3D rotation tool, there is an option called global transform, if it turned off, the object would rotate by its own axes, this is exactly what I want. How can I do rotatation like that with AS3 code? Is there any property if changed then rotationX/Y/Z would rotate object by its axes?

View 4 Replies

Copy X And Y Coordinate From One Flex Component To Another?

Mar 17, 2010

I would like to base one component's x and y cooridnates according to another, I tried using the binding notation but it doesn't seem to work

[Code]...

View 1 Replies

How Do Flex Developers Coordinate With Designers

Oct 18, 2010

I've usually designed Flex applications myself but this time I'll need a designer to assist with skinning the application. I've worked with this designer for a while, and we could work well on an HTML/CSS environment. He can't code, he sends me sliced PSDs which I could convert to clean code. But I'm not sure how to have him assist me with Flex UI as he's not familiar with the components.How do you guys interface with designers for your applications?

View 2 Replies

Flash :: Prevent Showing MC When His _y Coordinate Becomes To The -100?

Nov 7, 2010

I have a problem when one B.swf file is loaded to another A.swf file.A.swf file size is 400x400.B.swf file size is 100x100.B file has a movie clip (MC) which is animated and position of this movie can be from Y:-100 to Y:200. B file is loaded into the center (X:150, Y:150) of the A file.When B file is loaded, then animation starts. I have a problem: I can see animated movie clip B out of B screen scope (for example: when B.swf file movie clip has _y = -100 I still can see that movie clip in A.swf). I am expecting that movie clip will not be shown if Y position becomes negative

View 1 Replies

Flash :: Papervision3D Coordinate Axes?

May 25, 2011

I have a flash application and I use papervision3d library. I put my objects to the scene, no problem but I also want to show the coordinate axes (x,y and z) to user. Is there any way to show these axes?

View 2 Replies

ActionScript 2.0 :: Absolute MC Coordinate Values?

Jan 6, 2009

our collaborators misposition the registration points of MCs.Here's the deal: we need to recover the REAL MC's coordinates (not the ones based on registration point). Is it possible? How? I've tried some code already (like getBounds and getRect functions) but all of 'em consider the registration point.

View 4 Replies

ActionScript 2.0 :: Putting A Bitmap Into A MC At A Certain Coordinate?

Jul 27, 2009

I'm trying to make a 2d birds eye map for my user to move around it, and the map moves around instead of the user MC because I always want the user to be in the middle.

Problem is I load the map into an instance of a blank movie clip on the stage from a jpeg on the server, but I want to be able to put items on the map that the user can interact with at certain coordinates, after the map has been loaded, from some gifs I imported into the library as bitmaps.

I can't seem to find a function that will let me load the bitmaps into the MC that already has the map in it though, is it possible to do it that way? If not then any recommendations?

View 1 Replies

ActionScript 3.0 :: Finding A Class' X Coordinate?

Nov 27, 2009

I have enemies being dynamically spawned from a Class. They are constantly moving but I need them to shoot at the player when their X is the same as the Players. I have the enemies being put into an array for collision detection

View 1 Replies

ActionScript 2.0 :: How To Prevent Showing MC When His _y Coordinate Becomes To The -100

Nov 7, 2010

I have a problem when one B.swf file is loaded to another A.swf file.

A.swf file size is 400x400.
B.swf file size is 100x100.
B file has a movie clip (MC) which is animated and position of this movie can be from Y:-100 to Y:200.
B file is loaded into the center (X:150, Y:150) of the A file.

When B file is loaded, then animation starts. I have a problem: I can see animated movie clip B out of B screen scope (for example: when B.swf file movie clip has _y = -100 I still can see that movie clip in A.swf). I am expecting that movie clip will not be shown if Y position becomes negative. how I could prevent B.swf files movie clip appearing on A.swf file?

View 2 Replies

ActionScript 2.0 :: Average X Coordinate With Arrays?

Jan 16, 2012

I am wanting to take the average x co-ordinate of several movieclips, mc_01, mc_02, etc. using arrays. That is, I would like to sum all the x co-ordinates and then divide by the number of movieclips.

View 1 Replies

Actionscript 3.0 :: Tracking A Movieclip's X Coordinate?

May 11, 2010

I am currently in the process of creating a scroller that would take in movieclips comprised of images and video. It will continually scroll to the left, and the animations and video will play at a certain point on the stage.

The problem I am encountering right now is how to place the movieclips on the scroller. my first thought was place them in the actual movieclip, but then you can't access them on stage.

My second thought was to assign their x coordinate to a certain part of the scroller and just increment the x coordinate with the same system to make it look like it was attached. The only problem with that is I would need to track the scroller's x coordinate so I would know when it gets to the middle of the stage (so I could play the video inside of the smaller movieclip at that location.)

track a movieclip's x coordinate like that? could I run through it and trace, and then act on that trace? I'm so confused.

Will my first attempt at this work? Is it somehow possible to access movieclips within a bigger movieclip and treat them as if they were on stage?

View 1 Replies







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