A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: color of background

  1. #1
    Member
    Join Date
    Apr 2001
    Posts
    35
    How can I let my background change ?
    I mean that the color of the background always change in some colors that I've defined ???

    thanks

  2. #2
    Member
    Join Date
    Apr 2001
    Posts
    35
    I know that I'm difficult today, but I have many questions !!!

    I want that if you click somewhere in my movie that on that spot a symbol appears! If made the symbol, but I don't have a clue how I have to do the rest

    thanks a lot for the patience and the help

    (I'm using flash 5)

  3. #3
    Try this:

    create a new symbol and put there the symbol u want to appear and give a name to that instance, for exemple dot.

    then put the new mc that u created in the main movie , right click on him and chose action and use this code:
    Code:
     
    onClipEvent (load) {
        setProperty ("dot", _visible, 0);
    }
    onClipEvent (mouseDown) {
        ++n;
        duplicateMovieClip ("dot", "dot" add n, n);
        setProperty ("dot" add n, _x, _root._xmouse);
        setProperty ("dot" add n, _y, _root._ymouse);
    }
    align your movie clip to be in the (0,0) position relative to the main movie, use the Info box.


  4. #4
    Member
    Join Date
    Apr 2001
    Posts
    35
    Thanks a lot for the help but I guess I'm still doing something wrong.
    I've made a symbol ( a cirkel that masks into another figure). I gave that symbol a name. Then I made a new symbol and I've put the other symbol to this symbol and named it "dot"( it makes thing easier for me) then I've just the same thing you told to me and putted this action to the symbol :

    onClipEvent (load) {
    setProperty ("dot", _visible, 0);
    }
    onClipEvent (mouseDown) {
    ++n;
    duplicateMovieClip ("dot", "dot" add n, n);
    setProperty ("dot" add n, _x, _root._xmouse);
    setProperty ("dot" add n, _y, _root._ymouse);
    }

    So this is the same as you wrote. But nothing happens like I wanted. I only see the symbol in my movie and when I click on the screen nothing happens !!

    What is wrong because I don't understand it !!

    thanks
    xdufvx

  5. #5
    is not the symbol thats have to call "dot" its the instace i.e. the represetation of your symbol in the movie.

    open the Instance box and put dot in name...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center