A Flash Developer Resource Site

Search:

Type: Posts; User: sergwiz

Page 1 of 20 1 2 3 4

Search: Search took 13.67 seconds.

  1. Replies
    6
    Views
    387

    It's better to use theXML.onData instead of ...

    It's better to use theXML.onData instead of theXML.onLoad
  2. Replies
    6
    Views
    387

    Try to remove + "\n" from this line: my_txt2.text...

    Try to remove + "\n" from this line: my_txt2.text += nodes[i].firstChild.nodeValue + "\n";
  3. 1. Remove all codes from every symbol and eveкy...

    1. Remove all codes from every symbol and eveкy frame of your movie.
    2. Remove all the frames on "mc1"'s timeline (except first one ).
    2. Put this code onto the first frame of the main timeline:
    ...
  4. Here you go. :) Ups, sorry, I cannot to upload...

    Here you go. :)
    Ups, sorry, I cannot to upload my fla.
    Give me your email and I'll send it to you.
  5. Replies
    2
    Views
    351

    You should just write "stop();" in the second...

    You should just write "stop();" in the second frame of the main timeline. That's all. :)
  6. My code is for 8 buttons test = function...

    My code is for 8 buttons

    test = function (btnX, btnY) {
    myOtherFunction(btnX);
    anotherFunction(btnY);
    };
    for(i=1;i<=8;i++){
    this["but"+i].i = i;
    this["but"+i].onPress = function(){...
  7. Replies
    1
    Views
    334

    var shared_object =...

    var shared_object = SharedObject.getLocal("user_data");
    a=[];
    //--- read the contents of the shared object ----
    for( i in shared_object.data ){
    a.push(shared_object.data[i])
    trace(a);
    }
  8. for(i=1;i

    for(i=1;i<=8;i++){
    this["but"+i].i = i;
    this["but"+i].onPress = function(){
    _root.test(this.i,2);
    }
    }
  9. Replies
    10
    Views
    766

    For rectangle this.onMouseDown = function() {...

    For rectangle

    this.onMouseDown = function() {
    newBox.clear();
    startX = _xmouse;
    startY = _ymouse;
    dragging = true;

    }
    this.onMouseMove = function() {
  10. Replies
    6
    Views
    408

    Let's say we have 4 movieClips "mc1","mc2","mc3"...

    Let's say we have 4 movieClips "mc1","mc2","mc3" and "mc4". Then just put this code on the first frame.


    MovieClip.prototype.dragMe = function(){
    this.onPress = function(){...
  11. Replies
    2
    Views
    1,438

    When you press on the "zoom out" button you...

    When you press on the "zoom out" button you defiantly stopDrag. BUT...! when you press on the "map_mc" you call the function dragMe again. So the code on the "zoom out" button should be:

    on...
  12. Replies
    3
    Views
    572

    1 way: use LocalToGlobal() 2 way: ...

    1 way: use LocalToGlobal()
    2 way:


    mc.onEnterframe = function(){
    if(mc.hitTest(_xmouse,_ymouse)){
    //your action
    }
    }
  13. Replies
    2
    Views
    1,154

    Take a look at the example

    Take a look at the example
  14. Replies
    3
    Views
    388

    Here you go

    Here you go
  15. Replies
    8
    Views
    444

    Here you go... If you want to print every...

    Here you go...
    If you want to print every colorised picture you have to change the structure of your movie.
  16. Replies
    6
    Views
    637

    If I understand your question correctly (How can...

    If I understand your question correctly (How can I adapt this to send the variable when the page loads?...), then...
    <BODY bgcolor="#FFFFFF" onLoad="doPassVar(this)">
    If you try something different...
  17. Thread: Time delay

    by sergwiz
    Replies
    4
    Views
    604

    timeDelay = 3000//in milliseconds mc.onLoad =...

    timeDelay = 3000//in milliseconds
    mc.onLoad = function(){
    tt = getTimer();
    }
    mc.onEnterFrame = function(){
    if((getTimer()-tt)>timeDelay){
    //what to do after time delay
    }
    }
  18. Replies
    8
    Views
    444

    I cannot open your zip file. System says...

    I cannot open your zip file. System says "incorrect file format or file is corrupted".
  19. How about this variant?

    How about this variant?
  20. Thread: Draggable mc

    by sergwiz
    Replies
    2
    Views
    294

    onClipEvent(mouseDown){...

    onClipEvent(mouseDown){
    if(this.hitTest(_root._xmouse,_root._ymouse)){
    this.startDrag(false);
    }
    }
    onClipEvent(mouseUp){
    stopDrag();
    }
  21. Replies
    6
    Views
    345

    function pauseIt(){ if(pl){ tt= getTimer();...

    function pauseIt(){
    if(pl){
    tt= getTimer();
    this.onEnterFrame = function(){
    ((getTimer()-tt)>2000) ? play() : stop();
    }
    }
    }

    If you want to define time of pause, you can make it...
  22. Replies
    8
    Views
    444

    Take a look at the example

    Take a look at the example
  23. Replies
    8
    Views
    444

    Something like this

    Something like this
  24. Replies
    14
    Views
    1,193

    Ups, there is some correction in the code...

    Ups, there is some correction in the code
    this.onMouseDown = function() {
    if (bg.hitTest(_root._xmouse, _root._ymouse, true)) {
    d = true;
    rCenter.x = _root._xmouse;
    rCenter.y =...
  25. Replies
    14
    Views
    1,193

    Hi, guys. Hope this example will help you.

    Hi, guys. Hope this example will help you.
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