dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: hum

Page 1 of 20 1 2 3 4

Search: Search took 1.43 seconds.

  1. Replies
    6
    Views
    2,501

    Thanks dawsonk, Can't believe I missed...

    Thanks dawsonk,

    Can't believe I missed that!!!!!

    Nice one:crazy:
  2. Replies
    6
    Views
    2,501

    Thanks for reply, Have checked that.... Here is...

    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...
  3. Replies
    6
    Views
    2,501

    Hi Thanks for reply - like this: A btn_mc is...

    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();
    //
  4. Replies
    6
    Views
    2,501

    Move a clip by referencing arrays??

    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...
  5. Hi:) Here is an example another way, Initial...

    Hi:)
    Here is an example another way,

    Initial var:
    whereToGo_x = 200;

    on your thumbnail:
    on (release) {
    _root.whereToGo_x = 400;
    }
  6. Replies
    4
    Views
    2,202

    Hi Post a basic of your fla, and I can check it...

    Hi
    Post a basic of your fla, and I can check it for you.:)
  7. Replies
    4
    Views
    2,202

    Hi :) :) Try this I am guessing that...

    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) {...
  8. Replies
    6
    Views
    379

    // function shake(myMc, cx, cy) { onEnterFrame...

    //
    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,...
  9. Hi :) Maybe this example found on flashkit will...

    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;...
  10. Replies
    2
    Views
    335

    Hi This should help. :) Have a clip on stage...

    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...
  11. Try this....

    Try this.
    http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00001578.html
  12. Hi You have a typo...in red....

    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 =...
  13. Thread: [MX04]timer help

    by hum
    Replies
    2
    Views
    291

    Hi Something like this? curTimer = getTimer();...

    Hi
    Something like this?
    curTimer = getTimer();
    intervalTime = 200;
    onEnterFrame = function () {
    if (curTimer+intervalTime<getTimer()) {
    curTimer = getTimer();
    trace("place");
    }
    };
  14. Replies
    5
    Views
    476

    Hi Here is also another way: See attached fla....

    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;...
  15. Replies
    12
    Views
    535

    Hey nay worries! We both found a different way to...

    Hey nay worries! We both found a different way to do the same thing. :)
  16. Replies
    3
    Views
    364

    Hi Maybe this attached fla I've knocked up will...

    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 :)
  17. Replies
    4
    Views
    723

    Hi Check the fla attached, I think this is what...

    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....
  18. Replies
    12
    Views
    535

    Hey garbage! Huh? The fla I sent does exactly...

    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...
  19. Replies
    12
    Views
    535

    Hi Here is one way without using tweens. var sp...

    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) {...
  20. Replies
    2
    Views
    481

    Hi You need to include box_mc in the path to the...

    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");...
  21. Replies
    2
    Views
    512

    Hi This example has two clips(Obj_a,Obj_b)...

    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)) {...
  22. Hi Basically, this shape hit test can be put on...

    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)
  23. Replies
    3
    Views
    294

    on (release) {...

    on (release) {
    getURL("http://www.flashkit.com", "_blank");
    }
  24. On your moving clip: onClipEvent (enterFrame) {...

    On your moving clip:
    onClipEvent (enterFrame) {
    if (_root["myClip"].hitTest(_x, _y, true)) {
    trace("HITTING");
    //do something
    } else {
    trace("NOT HITTING");
    //do something
    }
    }
  25. Hi Put these actions on the clip you want acting...

    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.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center