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


Similar Posts:


ActionScript 3.0 :: SetProperty() Will Not Work?

Jul 27, 2007

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

View 5 Replies

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

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 :: 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 3.0 :: How To Manipulate Instances

Feb 3, 2009

I am having trouble manipulating instances of xml loaded pictures. I want to change their x and y position and tween them etc. I have loaded them onto the stage from an xml file, and given them all individual names but the most I can do now is either move them all together, spread them evenly on an x or y axis, or remove one of them using getChildByName. What I can't do is what I want to do, which is place 20 or so images in an exact place, ie. a square.My main difficulty seems to be that I don't know how to reference an individual xml node and move it.

View 2 Replies

ActionScript 3.0 :: Use An Object To Manipulate Another?

Jan 12, 2011

When Object A (player controlled) overlaps Object B and left mouse is clicked and held Object A locks with Object B and Object B becomes player controlled while the LMB is pressed so that it can be moved around screen etc and when button is released Object A becomes player controlled and Object B becomes static.

View 9 Replies

ActionScript 3.0 :: Manipulate A Sound / Track?

Mar 19, 2009

I know that manipulate sound with as2 is limited. I wondered is it possible to manipulate a sound/track is possible with AS3?

View 3 Replies

Manipulate A Specific Object's Timeline?

May 7, 2009

I'm using AS 3.0, and I'm trying to change the frames inside a specific object's timeline.The change will be triggered by keyboard events, but I don't know whether to add the eventlistener to the stage or to this. Also, it doesn't seem to be responding to anytime I use a gotoAndStart() or gotoAndStop() it just ignores it completely. Is it calling the stage's timeline when I call this? It also doesn't help when i add this.gotoAndStart() or this.gotoAndStop(), so how do you change the frames outside of the main timeline?

View 3 Replies

Flex :: Manipulate Shapes In Adobe?

Sep 18, 2009

I'm working on an application where I'm drawing some rectangles on the screen, and then will need to manipulate the shapes (change their size, location). I tried to do something with .drawRect and clearing the shape each time I was manipulating it, but the RAM usage was spiking and then falling (presumeably because i keep reinitializing a new component and then removing it, and garbage collection was cleaning it out). This seems like its probably not the most efficient way to do it.

Is there a way for me to just create a shape once, and then move it around on a canvas (and change its width and height without all this RAM usage?

View 2 Replies

Django :: Manipulate My Flash Depending On A URL?

Nov 8, 2009

I have a flash map of the UK which is divided up into the counties, a user clicks on a county and is then directed to a new url, eg. [url].... The flash map remains on that new page in case they wish to select a new region.

What I want to know: is it possible to manipulate the flash so that if the [url]...then london remains highlighted on the flash map. I presume I will have to use some AS which is fine as long as it is AS3.

View 2 Replies

Flash :: Manipulate UI Elements Via DispatchEvent()?

May 13, 2010

I'm trying to manually dispatch events on a textfield so I can manipulate it indirectly via code (e.g. place cursor at a given set of x/y coordinates). However, my events seem to have no effect.

I've written a test to experiment with this phenomenon:

package sandbox {
import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.text.TextField;

[Code].....

As we can see, the events are being captured and replayed successfully. However, no change occurs in tf2 - the mouse cursor does not appear in tf2 as we would expect. In fact, the cursor remains in tf even after the tf2 events are dispatched.

View 1 Replies

Xml :: Flex - Manipulate Elements Inside A XML?

Mar 17, 2011

What are the inbuilt functions available in flex,actionscript that I can use to find a node with a specific name inside xml variable and what functions could help me manipulate it? Something like Xquery in SQL! I dont want to use for loop everytime I want to manipulate a xml variable. For example, if I want to "cut" node inside this xml and add another attribute to it named enabled pro grammatically. Or how could I find "Find Next" node and delete it?

<menuitem label="Edit">
<m label="Cut"/>
<m label="Copy"/>
<m label="Paste"/>

[code]....

View 2 Replies

ActionScript 3.0 :: Possible To Manipulate UI Elements Via DispatchEvent?

May 13, 2010

I'm trying to manually dispatch events on a textfield so I can manipulate it indirectly via code (e.g. place cursor at a given set of x/y coordinates). However, my events seem to have no effect.I've written a test to experiment with this phenomenon:[code]Essentially, all this test does is to use setTimeout to effectively 'record' events on TextField tf and replay them five seconds later on TextField tf2. When an event is dispatched on tf2, it is traced to the console output.The console output upon running this program and clicking on tf is:[code]As we can see, the events are being captured and replayed successfully.However, no change occurs in tf2 - the mouse cursor does not appear in tf2 as we would expect. In fact, the cursor remains in tf even after the tf2 events are dispatched.

View 2 Replies

ActionScript 2.0 :: How To Manipulate / Control Javascript

Jun 6, 2003

How do you use Actionscript to control Javascript? (Maybe through FX Script?)

View 2 Replies

ActionScript 2.0 :: How To Manipulate Text Fields

Jan 17, 2008

I am creating an xml slideshow off of the tutorial on this site and its working great. Im hung up on one thing though. I need to be able to manipulate text fields depending on which slide is being loaded, and im not sure how to do it.

here is my code:

var delay:Number = 5000;
var init:Boolean = false;
// Load XML //
function loadXML(loaded) {

[code]...

View 9 Replies

ActionScript 3.0 :: Manipulate UI Elements Via DispatchEvent()?

May 13, 2010

I'm trying to manually dispatch events on a textfield so I can manipulate it indirectly via code (e.g. place cursor at a given set of x/y coordinates). However, my events seem to have no effect.

I've written a test to experiment with this phenomenon:

Code:
package sandbox {
import flash.display.Sprite;
import flash.events.MouseEvent;

[Code].....

View 4 Replies

ActionScript 2.0 :: Using Variables To Manipulate Flash Movie?

Apr 26, 2009

I am trying to create an interactive flash that users will be able to manipulate certain events in the game. I was was wondering if it was possible to1. Make objects appear or disappear in a frame if a variable is set to a particular number.n example being a window, if you click on it, it opens and closes if clicked on again. If you open the window and go to a different frame, is there a way to make it be open when you go back? 2. Determine the next frame. An example being a door, if the variable is 1 then the door would open when clicked, to the next frame. If it is 0 then it would tell you you need a key or such.I wrapped my head around creating variables and manipulating variables using basic functions.The only thing I am having problems with is if there is an "if"chieve these two tasks.Edit: Figured out number 2:'blueButton' is the variable, when pressed it changes its stored number by two. I linked it to another button which this code is attached to...

PHP Code:
on (release) {
if (_root.blueButton == 2) {

[code].....

View 1 Replies

ActionScript 3.0 :: Manipulate Movieclip From Custom Class

Aug 12, 2009

I have a movieclip (instance name preload), inside of it, I have another movieclip (bar) ... what i'm trying to do is a preloader for external files... i have a custom class and i what to manipulate my movieclip preload from it... you know verify the progress of the load:
 
Inside my class a have this function
 
public function loadProgress(e:ProgressEvent):void {                        percent=e.bytesLoaded/e.bytesTotal*100;            rutaDos.preload.bar.scaleX=percent;
}
 
rutaDos is a reference to the stage... it works, I'm sure of it... the problem is:rutaDos.preload.bar.scaleX; I upload the files but it doesn't verify the progress of the load.

View 6 Replies

Actionscript 3 :: Manipulate A 3d Model In Flash With Mouse?

Feb 24, 2010

Using a common flash 3d library such as Papervision3d or away3d & as3dmod or better create a Flash 3d object manipulator that:[code]Finally Allows a user to capture & download a picture of said object after manipulation

View 1 Replies

Actionscript 3 :: Manipulate Different Instances Of A Class From The Timeline?

Feb 17, 2011

i am trying to create a menu using as3 and i cant seem to find a way to finish it.this is what i got so far

so i wrote a class that is attached to a movieclip and i put several instances of it on the stage.

package {
import flash.events.Event;
import flash.events.MouseEvent;
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;
import flash.display.*;

[Code]...

I wanted the animation to not roll back once i click on a certain button and i wanted the animation to go back once i click on a different button. My question is, how do i proceed from here, i searched online for clues and from what i understood i could set variables within the class and change them on the timeline and use event listeners to catch the changes. I tried doing that but i always end up with some redundant way that gets me nowhere...

View 1 Replies

Javascript :: Pause/resume/manipulate A Swiffyobject?

Aug 2, 2011

There seems to be little support or discussion around regarding Google Swiffy [URL]

Is it possible to effectively pause/resume/manipulate a swiffyobject from JS?

Using standard Google output, I noticed the swiffyobject could be found in console with a few properties; notably frameRate.

View 1 Replies







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