A Flash Developer Resource Site

Search:

Type: Posts; User: Marx

Page 1 of 20 1 2 3 4

Search: Search took 0.83 seconds.

  1. Replies
    9
    Views
    1,526

    Hi... You can set an if statement using the...

    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.
  2. Replies
    9
    Views
    1,526

    Hi.. Similiar principles again: 1) On MC: ...

    Hi..
    Similiar principles again:

    1) On MC:

    onClipEvent (enterFrame) {
    this._yscale += _root.rateY;
    this._xscale += _root.rateX;
    if (this._xscale==150) {
    _root.rateX=0;
  3. Replies
    9
    Views
    1,526

    Hi.. You can use the same priciples as before...

    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 +=...
  4. Replies
    9
    Views
    1,526

    Hi.. You'll have to position your MC precisely,...

    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;...
  5. Replies
    1
    Views
    526

    Hi.. You can only use certain 'tags' in the...

    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...
  6. Replies
    2
    Views
    538

    Hi.. Place this code on the first frame of your...

    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 =...
  7. Replies
    2
    Views
    574

    Hi.. Follow this link: ...

    Hi..
    Follow this link:

    http://www.actionscripts.org/tutorials/beginner/Open_a_chromless_window/index.shtml

    Good luck.
  8. Replies
    2
    Views
    564

    Hi.. You can use: on (release) { ...

    Hi..
    You can use:

    on (release) {
    _root.gotoAndPlay("myFrameLabel");
    }

    "myFrameLabel" can be in any scene.

    Hope this helps.
  9. Cake!

    Hi..
    Fair enough enemem, I'll except half as long as long as I get the half with the most icing on it.

    Cheers.
  10. Hi.. You can use the swapDepths action with...

    Hi..
    You can use the swapDepths action with levels:

    on (release) {
    _level6.swapDepths("_level99");
    }

    Hope this helps.
  11. Hi... Adding to enemem previous post: on...

    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'...
  12. Replies
    1
    Views
    453

    Hi... Your code works fine provided you want to...

    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...
  13. Replies
    4
    Views
    564

    Hi... Is this what your after? on (release) {...

    Hi...
    Is this what your after?

    on (release) {
    output = "Hello"+newline+"thoseguys";
    }

    Good luck.
  14. Thread: stop/start button

    by Marx
    Replies
    3
    Views
    608

    Hi.. Makes know difference, all you need to do...

    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.
  15. Replies
    4
    Views
    637

    Hi... You can only target other scenes, from an...

    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:
    ...
  16. Thread: stop/start button

    by Marx
    Replies
    3
    Views
    608

    Hi... The following example stops and starts the...

    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);
    }
  17. Thread: random frame

    by Marx
    Replies
    3
    Views
    493

    Hi.. The following code will go to a random...

    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...
  18. Replies
    4
    Views
    637

    Hi... You can only target another scene by first...

    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.
  19. Thread: order

    by Marx
    Replies
    1
    Views
    430

    Hi.. Place a button inside an MC then add this...

    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...
  20. Replies
    2
    Views
    497

    Hi.. Place the following code on the MC you wish...

    Hi..
    Place the following code on the MC you wish to drag:

    onClipEvent (mouseDown) {
    if (this.hitTest(_root._xmouse,_root._ymouse,true)) {
    startDrag (this);
    ...
  21. Replies
    2
    Views
    483

    Hi... Try the following link: ...

    Hi...
    Try the following link:

    http://www.actionscripts.org/tutorials/beginner/spawn_browser/index.shtml

    Chromeless windows are altogether a different subject:
    ...
  22. Replies
    1
    Views
    486

    Hi.. One way to accomplish this would be to put...

    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:...
  23. Replies
    2
    Views
    900

    Hi.. The following is placed on an MC. You could...

    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)) {
    ...
  24. Thread: set.volume

    by Marx
    Replies
    2
    Views
    768

    Hi.. If you want to control more than one sound...

    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");...
  25. Replies
    5
    Views
    614

    Hi.. Your codes fine, just needs a couple of...

    Hi..
    Your codes fine, just needs a couple of adjustments:

    onClipEvent (load) {
    _root.rot = 5;
    }
    onClipEvent (enterFrame) {
    _rotation +=_root.rot;
    }
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