Properties, Properties, Properties,
hey there..
I'm so stuck and sick of this one,
I made a function to scale and move my mc, I
want to make a folding paper interface.
then I had to skew it so I put a skew function in it
to skew the mc to the left or right.
The first issue is, now nothing works
Don't know what I'm doing wrong.
Second issue, there's isn't an ease
in the skew.
I don't know where to begin so
I thought maybe you folks could help a little !
thanks
ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 04-28-2004, 05:54 AM
View Complete Forum Thread with Replies
Sponsored Links:
How Do I Trace The Properties Of An Object's Properties?
I forgot to put it in the title so I'll just place it here; I am using AS 2.0. I know that there are other ways to accomplish the goal that am after, but I was wondering if anyone knows of a way to access the properties of an object's properties?
Here is the code that I thought of, even though it doesn't work
var a:Object = new Object();
a.bproperty = 0; //lowerlevel properties
a.cproperty = 1; // lowerlevel properties
var d:Object = new Object();
d.e = a; // upper level properties
for(var i in d){
for(var j in d.i){
trace(i + " = higher level lower level= " +j);
}
}
I know that you can enter the following code to view the 'lower level' properties of d.e:
for(var i in d.e)
This really just boils down to how I am organizing the code(I have ideas on what do next, and i am 99% sure that I can get them to work), and if there is a way to dynamically access the properties of the objects properties, It will save me from creating yet another large block of code for my project. If you want to see the unfinished project, go to http://www.garrettchristopherson.com
View Replies !
View Related
Properties Of .swf?
What is the naming convention used for grabbing properties from the .swf file!?
ex. I'm trying to find the height of the .swf or the x, y co-ords...just not sure what name to use for the .swf
View Replies !
View Related
Take Off All The Properties In A .swf?
I've been doing flash for over a year now, but I've never found out how to take off all the properties in a .swf. I've seen the allowscale = "false" or what not, but I know there's more. How do I make it so that when they right click on the stage, that it will only show "settings, about macromedia flash 6".
Thanks for all your help,
-Kac
View Replies !
View Related
Help~ Getting Properties
Hi there,
I need in getting the name of an movie-clip with in an movie-clip and put it into a variable name....
this is what i have...
(1) an movie-clip; call Cricle
(2) within the movie-clip, i have another 3 objects; Blue_color, Red_color, Yellow_color...
And by clicking on a button beside, i can change the color....
After changing the color how can i get the name of the movie-clip???
thankz in adv....
-----------
J3ff
View Replies !
View Related
X-Y Properties
I am trying to build one of them slidey square thingies, yanno the kind? The ones where you slide the little squares around in an erm larger square trying to reassemble the picture..
There is one blank square of course and I am using this blank square's x and y to determine if and how the clicked picture square can slide.
ie.
If this._y = blanksquare._y(-100)
then set property this._y to blanksquare._y
and set the blanksquare._y to blanksquare._y(-100)
And I can't get it to happen.. anyone built one these things before or can point me to some help it would be appreciated...muchly..urghh.. This is gonna keep me awake I know it..
View Replies !
View Related
Help.. Properties...
i am doing this school yearbook using flash. i have a main movie, and all the rest are sub swfs. the main movie is 800 * 600. and the sub movies are smaller than that. the problem is that i used actionscript in one of my movies that makes snow fall randomly in the movie, with respect to the sub movies' width and height or something else that i dont know. the problem is that when i load that sub movie into the main movie, the whole snow actionscript doesnt work anymore because of the different dimensions or something. is there any way i can make the submovie follow its own properties when loaded into the main movie? i am kinda new to this. hope i can get help asap coz deadline is this week. thanks..
View Replies !
View Related
Properties...
i am doing this school yearbook using flash. i have a main movie, and all the rest are sub swfs. the main movie is 800 * 600. and the sub movies are smaller than that. the problem is that i used actionscript in one of my movies that makes snow fall randomly in the movie, with respect to the sub movies' width and height or something else that i dont know. the problem is that when i load that sub movie into the main movie, the whole snow actionscript doesnt work anymore because of the different dimensions or something. is there any way i can make the submovie follow its own properties when loaded into the main movie? i am kinda new to this. hope i can get help asap coz deadline is this week. thanks..
View Replies !
View Related
Doc Properties
I have a document which is 350px by 350px. then I have an image which get smaller and larger depending on what value it is sent.
left._height = hgt;
left._width = wdt;
when it get larger then 350, the sides get cut off. is there any way to make the document properties get larger as the image gets larger?
i've tried something this, but i can't get it:
document._xscale = hgt;
View Replies !
View Related
Properties
hi,
I asked this question before but I think it was too confusing. I will try again:
I have a movie clip playing in a main timeline. I am controling the frame it plays with a slider (in the main timeline). What would cause the properties of the movie clip to reset without being told (visibility).
Perhaps this is still not worded well (?)...Any suggestions would be appreciated. Thanks
Thanks
View Replies !
View Related
ID Properties
Setting Flash ID in the HTML
I'm following a tutorial it which it says
"you must set both the name and ID properties of the Flash movie on you html page to "shootthemup"
I've managed to set the name of the file to shootthemup, but how tdo I set the ID properties in HTML?
Any help would be greatfully received.
Leroy
View Replies !
View Related
_x & _y Properties
Hey,
same calendar as in
http://www.actionscript.org/forums/s...6&goto=newpost
But another issue.
I need the tooltip to move away from my stage's boundries, for this purpose I am giving it this "frame" action after defining xStageL and xStageR in the root:
_x = this._x;
this.onEnterFrame = function() {
if ((_parent._x - this._width / 2) <= _root.xStageL){
_x = (_x + this._width / 2);
}
if ((_parent._x + this._width / 2) >= _root.xStageR){
_x = (_x - this._width / 2);
}
}
But what I'm getting is the tooltip going in the new x direction indefinetely, not staying in the new x coord...
see attached files (and let me know if you have any answers for the other thread's questions)
thxhttp://www.actionscript.org/forums/s...6&goto=newpost
View Replies !
View Related
Properties - HELP
You know when you right-click a movie you get all the options like 'play' and 'loop' is there a way to disable that? I've seen some movies only have a couple of the options, rather than all the others that are usually there.
Oh, hi, I'm new btw!
View Replies !
View Related
[i] Properties ?
Hello,
Does anyone know why I can't access the _x property of buttonArray[i]._x. Here is my code:
-------------------------------------------------------------
layoutNav = function() {
buttonArray = new Array("aLogo_mc", "bLogo_mc", "cLogo_mc");
buttonsY = 10;
for (var i=0; i < buttonArray.length; i++) {
this.attachMovie(buttonArray[i], buttonArray[i], 10 + i);
buttonArray[i]._x = 10;
buttonArray[i]._y = buttonsY;
buttonArray[i].onRelease = function() {
kickFeed();
}
buttonsY += 28;
}
}
-------------------------------------------------------------
Thanks,
Stephen.
View Replies !
View Related
Set Properties - Get Properties
Hey Guys,
Just been playing around with the tutorials, on the Set properties/Get properties. Everything is all cool, except the "instance name" aspect. I dnt really understand that too well.
Is it possible to change an Mc Name dynamically?
If you look at my FLA when you hit the top left red button you will get a trace of the mcName as "square".
Now if you input a new mc Name on the right hand side, you will see it change on the left hand side. But i want to know why it doesnt remain as the new mc Name, it still goes back to square.
Any suggestions would be great thankyou.
View Replies !
View Related
Properties Bar
Ok a few minutes ago I was happily attempting to use Mac. Flash MX 04 and as I went to open the Actions menu thing it brings up the infamous illigal operation or somthing and basicly the program has had a stroke and needs to close. I restart the program and then I notice no Properties Bar.. I goto 'Windows' and click the Properties bar and nothing happens... I try again and again and same result then I try the shortcut (Ctrl+F3) agan nothing. I try to restart the program and it still dosen't come up so finaly my computer freezes (an internet explorer window froze the computer, unrelated incident I think) so I restart the computer. Upon loging back in and loading up the program I notice that it still won't come up. My only other option is reinstalling the program unless somone here has any ideas.
Any help in any way shape or form is apriciated.
Uni
View Replies !
View Related
Set Properties - Get Properties
Hey Guys,
Just been playing around with the tutorials, on the Set properties/Get properties. Everything is all cool, except the "instance name" aspect. I dnt really understand that too well.
Is it possible to change an Mc Name dynamically?
If you look at my FLA when you hit the top left red button you will get a trace of the mcName as "square".
Now if you input a new mc Name on the right hand side, you will see it change on the left hand side. But i want to know why it doesnt remain as the new mc Name, it still goes back to square.
Any suggestions would be great thankyou.
View Replies !
View Related
Properties Bar
Ok a few minutes ago I was happily attempting to use Mac. Flash MX 04 and as I went to open the Actions menu thing it brings up the infamous illigal operation or somthing and basicly the program has had a stroke and needs to close. I restart the program and then I notice no Properties Bar.. I goto 'Windows' and click the Properties bar and nothing happens... I try again and again and same result then I try the shortcut (Ctrl+F3) agan nothing. I try to restart the program and it still dosen't come up so finaly my computer freezes (an internet explorer window froze the computer, unrelated incident I think) so I restart the computer. Upon loging back in and loading up the program I notice that it still won't come up. My only other option is reinstalling the program unless somone here has any ideas.
Any help in any way shape or form is apriciated.
Uni
View Replies !
View Related
Tab Properties?
ok, i've been looking in my references for a while and i still can't find it.
You know that yellow box that surrounds the movie clip when you tab it? how do i get rid of that? thanks for your help!
View Replies !
View Related
Swf Movie Properties
I want to upload my high dynamic menu-swf; next problem
HOW TO SET THE BACKGROUND of the swf to transparant? I like to use this menu into a frame.....I load it into the HTML page (dreamweaver) but of course you can see the contours because it is white background.I can of course use another layer and show the background ther ....but I am afraight for big download sizes!
I like to set the background of the frame in Dreamweaver to the same background....
Kind regards
View Replies !
View Related
Evaluating Properties
hi,
i'm making a symbol rotate by using the setproperty function on a 3 frame loop. When a button is pressed, it goes to the start of these 3 frames.
The first frame (5) has the following action script:
Set Variable: "rotation" = GetProperty ( "/menu",_rotation )
The second frame (6) has:
Set Property ("/menu", Rotation) = rotation+5
And the third (7) has the evaluating statement that's not working:
If (GetProperty ( "/menu", _rotation ) eq 45)
Go to and Stop (1)
Else
Go to and Play (5)
End If
When it goes to frame 5, it restarts the animation, when it goes to frame 1, it stops the symbol in the last position it was in.
The problem is, the evaluating script doesn't work so it just keeps on rotating it indefinitely. I'm using this script i saw in an open source movie, adapted slightly and used for a different purpose. Can anybody help?
thanks in advacnce.
View Replies !
View Related
Setting Properties
Is this:
for (var i = 0; i<10; i++) {
duplicateMovieClip ("line", "line"+i, i);
setProperty ("line1", _x, 50);
setProperty ("line1", _y, 50);
setProperty ("line2", _x, 150);
setProperty ("line2", _y, 250);
etc etc etc...
}
View Replies !
View Related
Function Properties
From: Bruce Conway
ibconway@home.com
Any help on this would be appreciated.
I shudder to post this being a mere beginner, but I'm currently lacking good books and the online help for Flash is useless on this topic. I'm looking at Moock's code for Multiple Choice Quiz version 2. In short, what is a function property and how do you declare one? Apparently answer.currentAnswer is a function property. It's the very first mention of currentAnswer.
I'm confused about the syntax, i.e. answer.currentAnswer,
which to me means: to declare a function property for the function called 'functionName':
function functionName (parameters) {
functionName.propertyName; //property declared?
}
----------------------------Moock's Code here--------------
// function to register the user's answers
function answer (choice) {
// track the current answer with a function property
answer.currentAnswer++;
// record the user's answer
set ("q"+answer.currentAnswer+"answer", choice);
// go to the next question or the quiz end
if (answer.currentAnswer == numQuestions) {
gotoAndStop ("quizEnd");
} else {
gotoAndStop ("q"+ (answer.currentAnswer + 1));
}
}
View Replies !
View Related
Button Properties
Hi.
There are 4 button properties. I have a Button and when I go over it with my mouse I want a few things in it to change GRADUALLY. The problem is that there is only 1 frame for the "over" option. I dont want a line to instantly move when i go over my button. I want the line to gradually move. So, how can I add more frames to the over property?
Cheers!
View Replies !
View Related
Set Properties Question
I'm trying to load an external SWF which is sized at 800x600 and center it into a new movie sized at 1000x600. Here's the AS I'm using:
loadMovieNum ("quail.swf", 1);
setProperty ("", _x, "500");
setProperty ("", _y, "300");
The SWF loads, but it is positioned at the upper left hand corner. I've tried variations on x and y values, including an attempting at scaling it down as well. But every time it loads it looks the same, no matter what I do. Can someone tell me what I'm doing wrong? Thanks.
[Edited by mikeyzinaz on 01-13-2002 at 04:39 PM]
View Replies !
View Related
Seting Properties
Hi!
I have a question:
I want to set the _x(X Position) and _y(Y Position) properties to a MC from an external txt file.
The txt file has got these variables:
&xmovie=100
&ymovie=100
I load these variables into the swf and i set the _x and _y properties to the MC like that:
setProperty ("movie", _x, xmovie);
setProperty ("movie", _y, ymovie);
Nothing happens, only if i write the values into the variables in the swf file.
So, the question is:
How can i set these properties to a MC from an external txt file values.
Thanks in advance,
Hugo Silva
View Replies !
View Related
Sound Properties
hi flashers...I posted this to the sound forum as well, but it's a little unpopulated...
I'm wanting to do something similar to the loop movies they have here on flashkit: use the properties of a wavform in a sound to dynamically animate my movie (see http://www.flashkit.com/loops/Ethnic...an/more2.shtml for an example. Basically, i'm wanting to use peaks in a waveform of a soundwave to duplicate a movie clip...any idea how they did that? What properties of sound are they using to generate the bar sizes? Any and all help would be appreciated...
View Replies !
View Related
Modify Properties
I have many problems in manipulating properties of objects that are inside buttons. For example, when I want a simple menu with buttons that are "marked" when clicked (to show what topic from the menu is being accessed), like "visited".
- I could use a movieclip, but I don't know how to set mouse events for it. Is it possible?
- I thought that I could use a variable to indicate while a button (topic) is being visited. (I don'd want to indicate it in some other way - with objects outside the button).... i only want to do something like to change the color of the button text and undo this change when another button is clicked (indicating that, at that time, another topic from the menu is being accessed)
could anybody help me, please ??
thanks,
Leandro
View Replies !
View Related
Movie Properties
I'm trying to retrieve the hieght of the movie. I've tried using _root._height but what I get back constanly changes. I'm confused doesn't _root. reference the movie properties? If someone could give me a little direction here I would appreciate it.
TIA,
Dan
View Replies !
View Related
Link Properties
Im wanting a button in flash to open a blank HTML page with certain properties. The same properties the java script
ONCLICK="javascript:window.open('index.html' ,'Demo' ,'toolbar=0,location=0,directories=0,status=0,menu bar=0,scrollbars=0,resizable=0,height=470,width=60 0,left=100'); return true;"
function would produce. How do I use action scripting to spawn a window with these such properties?
Thank you in advance.
btw first post in the forums =D
View Replies !
View Related
Movie Properties
What is the best layout a new movie? I know the default is 550 x 400 pixels. Should I leave it at that or change to inches. Does it have anything to do with the screen resolution?
Any help would be appreciated.
Taz
View Replies !
View Related
Help With _x And _y Movie Properties
I havn't taken any classes on Flash, so bare please.
Let's say I have a scene. In that scene is a movie clip named "Billy Bob". Also in that scence are 4 buttons, buttons that I want to move "Billy Bob" up, down, left, and right with.
My problem is just getting those buttons to access the _x and _y variables of "Billy Bob." Fact is I'm just clueless on the syntax.
Could someone give me an example of what I could put in the actions of one of the buttons? I'm talking an "on (release)" thing, I'll worry about smooth scrolling later.
Thanks!
View Replies !
View Related
Invisbility (and Properties All In All)
Hi there, I have a huge problem (I think). Im my .fla i have a "monster" which consists of different parts (arms, body, eyes and so on). With actionscript i want to make one of his arms invisible. What I have found out is that if i tell his arm to be invisible with actionscript, his arm will be invisible, but so will his body and eyes and the rest of his arms be too!!! Can this be solved by putting ever body part in a different layer and if so, isnt it very stupid to have 71 layers!! Because thats exactly how many body parts he has that i want to change properties on.
Example:
sometimes i want mouth #3 to show, another time it is mouth #2. Sometimes he only has 2 arms so I will have to make the other arms invisible, some times he closes 2 of his eyes so i will have to make the closed eyes visible and the opened eyes invisible. (You see why i need 71 layers? I have 71 body parts)
Hope you understand my question, thankful for an answer to if I really need 71 layers.
Ps. my objects are symbols (graphics) ds.
View Replies !
View Related
Scenes, MC's And Properties
Ok, I have two scenes:
1. Preloader
2. Main
The Main scene contains a MC called 'Cover' which contains an empty MC called 'PicHolder' into which I want to load an external jpg, but I only want the Main scene to appear once the external jpg had been loaded into the MC 'PicHolder'
'Preloader' scene code:-
frame 1:
ifFrameLoaded ("Main", 1) {
if (getProperty(_root.Cover.PicHolder,_width)>0{
nextScene();
}
}
frame 2:
gotoAndPlay("Preloader", 3);
The above seems to ignore the getProperty command and goes straight into the Main scene even though I know the mc 'PicHolder' _width = 0
So my question is ... Is there a means of checking the properties of an MC from an MC in a diffferent scene ?
View Replies !
View Related
Properties Of Attachmovie?
Hi, I have a menu system that loads up MC's by using
on (release) {
attachMovie("qg1", "qg1", 1);
qg1._x = 300;
qg1._y = -100;
}
this works fine and loads the MC in place.
The problem is that I want there to be further functions for some of the attached movies and not all of them.
I have tried setting the properties of the extra menu so that it is invisible to begin and then sending a variable from the attached movie when the attachmovie in invoked, so that the visibilty is set to true, but that did not work.
I have tried picking up the instance name of the attached mivieclip, that did not work, It could have worked but I may have got my code all wrong.
Does anyone have any ideas?
Thanks
View Replies !
View Related
Cant See All Of Properties Menu
Does anyone know how to reduce the size of or change to properties menu to a floating one? For some reason it spills off the right side of the screen and I cant see important information. I have a 21 inch monitor and it is set to 800 by 600. Is the only way to increas the monitor resolution. Im trying to consider the lowest common resolution of users.
View Replies !
View Related
Load Swf Properties
I have a swf that is acting as a shell and dynamically loading other swf's into this. Mostly the swf's getting loaded are the same size, but some are different. The trouble is that I also have to scale the swf's(these are swf's that are used at regualar size elsewhere and remaking all the movies(100's) would be extremly time consuming).
Basically I need to know if there is a way to get the height and width of the swf's stage. When I use the _height and _width, the value changes if there are items off stage and they get included in the value.
Any help would be GREATLY appreaciated.
View Replies !
View Related
Loadmovie Set Properties
I am trying to set the positioning for a loadmovie command. I have a 640X 480 movie with four nav buttons. On release of each nav button I am trying to call a loadmovie varrible that I can place the movie at 0_x by 93.5_y. I have tried set properties commands but I don't think I have the syntex right. If someone could help me with the syntex. I would much appreciate it.
onClipEvent (load)
{ loadMovieNum("segment1.swf", 1);
setProperty("m-loader", _x, "0");
setProperty("m-loader", _y, "93.5");
}
View Replies !
View Related
Problem With Mc Properties
I don't know if i'm wrong but i've noticed a strange behaviour of the "createEmptyMovieClip" method.
I attached 3 empty mc to another called "css" located on the _root, now inside each of the 3 mc created, i create a new empty movieclip with "createEmptyMovieClip" method.
After this i draw with the drawing methods (moveto, lineto, bla, bla...) inside every new mc a box (for example) of 100x100. When I ask for some properties of the last mc (containing the drawed box) like _width, _height it returns a nice zero!
So for example I have:
trace(_root.css.win1.box._width); // returns zero
trace(_root.css.win2.box._width); // returns zero
trace(_root.css.win3.box._width); // returns zero
css is an empty instance, win1-3 are instances created linking to a library clip (that's empty too)
Why does it happens?
maybe too much emptiness...
thank
aoxomoxoa
View Replies !
View Related
Getting All Properties Of An Object
I'm looking for a way to retrieve all the properties of an object, not necessarily knowing what the properties are called.
Something like a 'getpropertylist'-function.
Anybody know how I can do this?
Any help or ideas are highly appreciated!
View Replies !
View Related
MovieClip Properties
Can someone please, please, tell me why when i use the loadmovie function to load a jpg into a movieclip i created on the stage, it does not inherit the sizing of that movieclip, the jpg always seems to find its way out of the movieclip boundry.
In the macromedia load image example i can create another movieclip within the example, and when i set the movieclip width and height, it will automatically scale different sized jpg's in the movieclip, however this only works in the loadimage example not anywhere else!! is there some property that i am not setting?? i know i have set the registration point in the top left corner, but i cant think of anything else!! Trying to set the x scale and y scale doesnt work either because the jpgs are different sizes!! please help
View Replies !
View Related
Dynamic Properties?
Why doesn't this work?????
//on the root
animation = function (mytarget, property, value, speed) {
square = mytarget.property;
diff = value-square;
move = diff/speed;
mytarget.property = square+move;
};
//on movieclip
onClipEvent (enterFrame) {
_root.animation(this,_alpha,50,10);
}
View Replies !
View Related
|