Search:
Type: Posts; User: Marx
Search:
Search took 0.83 seconds.
-
Hi...
You can set an if statement using the xscale and yscale properties to set the scale to 100%.
In the above example I used 50, change it to 100.
Good luck.
-
Hi..
Similiar principles again:
1) On MC:
onClipEvent (enterFrame) {
this._yscale += _root.rateY;
this._xscale += _root.rateX;
if (this._xscale==150) {
_root.rateX=0;
-
Hi..
You can use the same priciples as before except you use the xscale & yscale properties:
1) On the MC:
onClipEvent (enterFrame) {
this._yscale += _root.rateY;
this._xscale +=...
-
Hi..
You'll have to position your MC precisely, then you can use:
onClipEvent (enterFrame) {
this._y += _root.dirY;
this._x += _root.dirX;
if (this._x>=300) {
this._x=300;...
-
Hi..
You can only use certain 'tags' in the Flash enviroment, heres an example:
on (release) {
text = "<FONT face=\"onyx\" size=\"15\" >Here is some size 15 onyx font. </font>";
}
Its...
-
Hi..
Place this code on the first frame of your menu MC:
function randColor () {
c = new Color(this);
r = (Math.random()*256);
g = (Math.random()*256);
b =...
-
Hi..
Follow this link:
http://www.actionscripts.org/tutorials/beginner/Open_a_chromless_window/index.shtml
Good luck.
-
Hi..
You can use:
on (release) {
_root.gotoAndPlay("myFrameLabel");
}
"myFrameLabel" can be in any scene.
Hope this helps.
-
Hi..
Fair enough enemem, I'll except half as long as long as I get the half with the most icing on it.
Cheers.
-
Hi..
You can use the swapDepths action with levels:
on (release) {
_level6.swapDepths("_level99");
}
Hope this helps.
-
Hi...
Adding to enemem previous post:
on (release) {
eval("_level"+n).myMc._x=345;
}
The above code targets the MC 'stageMc' and changes it's position to x=345.
I set the variable 'n'...
-
Hi...
Your code works fine provided you want to go to frame 2 of the MC which has the code on it. If you want to send the main timeline to frame 2 then use the root prefix:
onClipEvent...
-
Hi...
Is this what your after?
on (release) {
output = "Hello"+newline+"thoseguys";
}
Good luck.
-
Hi..
Makes know difference, all you need to do is adjust the scripts so they point to the MC your targeting.
on (release) {
myMovie.play();
gotoAndStop (2);
}
Hope this helps.
-
Hi...
You can only target other scenes, from an MC, if you target the root and a frame label:
1) Select a frame in another scene and label it 'sceneTwoLabel'.
2) Add the code to the button:
...
-
Hi...
The following example stops and starts the main timeline:
1) Insert/New Symbol/Movie.
2) Frame1: Add a button with the script:
on (release) {
_root.play();
gotoAndStop (2);
}
-
Hi..
The following code will go to a random frame between 1 & 5:
ranNum = Math.floor(Math.random()*5)+1;
gotoAndStop (ranNum);
Adjust to the amount of frames your targeting.
Hope this...
-
Hi...
You can only target another scene by first targeting the root and then a frame label in the other scene:
on (release) {
_root.gotoAndPlay("sceneTwoLabel");
}
Good luck.
-
Hi..
Place a button inside an MC then add this script:
on (release) {
this.swapDepths(10);
}
If you've used duplicate movie or attach movie and set 'depth' levels higher than in the code...
-
Hi..
Place the following code on the MC you wish to drag:
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse,_root._ymouse,true)) {
startDrag (this);
...
-
Hi...
Try the following link:
http://www.actionscripts.org/tutorials/beginner/spawn_browser/index.shtml
Chromeless windows are altogether a different subject:
...
-
Hi..
One way to accomplish this would be to put your button in an MC with two frames, one frame has the active button and the other has a dud.
1) Frame1:
Place your button and add the script:...
-
Hi..
The following is placed on an MC. You could place a button in the MC for the desired effect:
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse,_root._ymouse,true)) {
...
-
Hi..
If you want to control more than one sound then you have to place those sounds in individual movie clips:
s=new Sound("mc1");
s.attachSound("mySound1");
m=new Sound("mc2");...
-
Hi..
Your codes fine, just needs a couple of adjustments:
onClipEvent (load) {
_root.rot = 5;
}
onClipEvent (enterFrame) {
_rotation +=_root.rot;
}
|
Click Here to Expand Forum to Full Width
|