Search:
Type: Posts; User: hum
Search:
Search took 0.37 seconds.
-
Thanks dawsonk,
Can't believe I missed that!!!!!
Nice one:crazy:
-
Thanks for reply,
Have checked that....
Here is a fla. with the actual working code showing what i am trying to do - it works when i ref the actual clip name (bean_1)
Then i've repeated the same...
-
Hi
Thanks for reply - like this:
A btn_mc is hitTesting the clips:
var xPosArray:Array = new Array();
xPosArray = [200, 250, 300]
//
var moveBeansArray:Array = new Array();
//
-
Hi
My problem is this:
I have clips on stage named: bean_1,bean2, bean3
I have an array to reference the clips: moveBeansArray[bean_1,bean_2,bean_3]
I have an array that stores _x...
-
Hi:)
Here is an example another way,
Initial var:
whereToGo_x = 200;
on your thumbnail:
on (release) {
_root.whereToGo_x = 400;
}
-
Hi
Post a basic of your fla, and I can check it for you.:)
-
Hi :) :)
Try this
I am guessing that firstItem is a clip inside your mainMC so you could go:
on (rollOver) {
_parent.firstItem.gotoAndPlay(2);
}
on (rollOut) {...
-
//
function shake(myMc, cx, cy) {
onEnterFrame = function () {
myMc._x = cx+(Math.random()*5);
myMc._y = cy+(Math.random()*5);
};
}
mc.onPress = function() {
shake(this, this._x,...
-
Hi :)
Maybe this example found on flashkit will help you:
// dragMe_mc is the instanceName of the movieClip
// Starts the drag onPress
dragMe_mc.onPress = function() {
this.origX = this._x;...
-
Hi
This should help. :)
Have a clip on stage called my_mc then this code on timeline.
Code found here on Flashkit.
// Repulsion for a movie clip my_mc from mouse
// user set properties
// how...
-
Try this.
http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00001578.html
-
Hi
You have a typo...in red.
content_mc.stop();
speed = 3
target = button1._y;
for (var i = 1; i<4; i++) {
this["button"+i].pageNum = i;
this["button"+i].onPress = function() {
target =...
-
Hi
Something like this?
curTimer = getTimer();
intervalTime = 200;
onEnterFrame = function () {
if (curTimer+intervalTime<getTimer()) {
curTimer = getTimer();
trace("place");
}
};
-
Hi
Here is also another way:
See attached fla. :)
Stage size 400 x 400
Movieclip centre stage containing 10 frames all with stop actions applied.
onEnterFrame = function () {
x1 = _xmouse;...
-
Hey nay worries! We both found a different way to do the same thing. :)
-
Hi
Maybe this attached fla I've knocked up will help, it obviously needs better graphics,
But the idea is there!
Feel free to use and edit :)
-
Hi
Check the fla attached, I think this is what you mean. :)
Feel free to use!
Stage size = 750 x 300
6 buttons(btn_1,btn_2...etc)
6 hovers (mc1,mc2...etc)
Code on main timeline....
-
Hey garbage!
Huh?
The fla I sent does exactly that!
You click on a cell then it will rotate
the circle until it reaches the 12 o'clock position.
Can you explain what you mean when you say...
-
Hi
Here is one way without using tweens.
var sp = 5;
var dir = 0;
for (i=1; i<13; i++) {
_root.circle_mc["m"+i].onPress = function() {
this.gotoAndStop(2);
if (_xmouse>Stage.width/2) {...
-
Hi
You need to include box_mc in the path to the text field:
_root.createEmptyMovieClip("box_mc", 0);
box_mc.beginFill(0xFF0000);
box_mc.lineStyle(3, 0x000000, 100, true, "none", "none");...
-
Hi
This example has two clips(Obj_a,Obj_b) inside Obj_c clip on the main stage.
Obj_d is a single clip also on main stage.
Obj_c.onEnterFrame = function() {
if (this.Obj_a.hitTest(Obj_d)) {...
-
Hi
Basically, this shape hit test can be put on any movieclip
to check if it touches the actual shape of another movieclip called "myClip".
(Rather than the bounding box hitTest)
-
on (release) {
getURL("http://www.flashkit.com", "_blank");
}
-
On your moving clip:
onClipEvent (enterFrame) {
if (_root["myClip"].hitTest(_x, _y, true)) {
trace("HITTING");
//do something
} else {
trace("NOT HITTING");
//do something
}
}
-
Hi
Put these actions on the clip you want acting as a button:
on (release) {
getURL("mailto:someone@somewhere.com");
}
You will need to test in a browser.
|
Click Here to Expand Forum to Full Width
|