dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Can you Play a mc in a given area.

  1. #1
    Member
    Join Date
    Oct 2001
    Posts
    30
    Hi Guys,

    I have a bit of a problem, and I wounder if anyone can help.
    If you go to my site http://www.daddyt.freeserve.co.uk when you get to the TV screen, which is after the first mc after pressing the enter button, click on the red Power button.

    Now what I would like to know is, is it possible to make the number buttons inactive till the power button is pressed and the little screen goes up and if so please can you explain how?

    Also what I would also like to know is How do I get a mc to play within the TV screen. so far the movie area is to big for the sreen, is there any way of the mc swrinking when it goes into the TV sreen so it fits or do I have to recreate the mc the size of the screen.


    Please Please Please can you help.

    Mike

  2. #2
    Member
    Join Date
    Oct 2001
    Posts
    44
    1 Question:

    One way to do this is:

    In the movieclip, (if it isn`t a movieclip, then convert it) with numbers button make 2 key frames. In first keyframe
    make buttons inactive (for example by converting them to graphic) in second, make them active (like now)...
    Of course in every frame give action stop();

    On power button give an action:

    on (release){
    numbers_clip.gotoAndPlay("active");
    ..... // some other actions
    }

    Second question:
    You can use two methods:

    1. Use _width, _height properties to rescale movies:
    movie1._width=new_width; // screen width
    movie1._height=new_height; // screen height
    2. Or use _xscale, _yscale:
    movie1._xscale = 40; // 40%
    movie1._yscale = 40; // 40%

    If You need some more explanation, just write...
    ZeroIQ



  3. #3
    Member
    Join Date
    Oct 2001
    Posts
    30
    Hi ZeroIQ

    Thanks, great help, the button works fine.
    with Question 2 where do I put the code that you mentioned.
    What I would like to happen is when you click on one of the channel buttons 1-0 each one shows a different mc within the TV screen also text is writen inside the small sreen on the remote.


    Thanks again

    Mike


  4. #4
    Member
    Join Date
    Oct 2001
    Posts
    44

    Talking

    Place this code in every button action:
    Code:
    on(release){
     _root.movie1._width=... ;// or movie1._xscale=...
     _root.movie1._height=... ;// or movie1._yscale=...
     _root.movie1.gotoAndPlay(...);
     _root.text_in_remote="some text";
    }
    
    or in every clip you load:
    
    onClipEvent(load){
     this._xscale=50; // or _width
     this._yscale=30; // or _height
     _root.text_in_remote="some text";
    }
    I don`t know how your movie is built so you have figure it out by yourself...

    ZeroIQ




  5. #5
    Member
    Join Date
    Oct 2001
    Posts
    30
    So If my mc is index.swf the code would read

    on(release){
    _root.index.swf_width=40
    _root.index.swf_height=40
    _root.index.swfgotoAndPlay(...);
    _root.text_in_remote="some text";
    }
    and would I have to lable the sreen on the remote.
    (eg remote)

    and if I want the text to deplay as if I were typing it with the keyboard sound.



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