Moving bars to conceal/reveal text - how?

Hello
Using Flash Prof 8...Couple of major things that I have no
idea how to do...if you go to
http://www.enhancedwireless.net/Technology/keyMechtest.shtml
and press play on the "ODMA" demo graphic (it's a work in
progress not complete), you'll see the vise-like bars closing and
shutting - I need for the text to be hidden then revealed as the
bars move across the text...how do I do this? I'm newish to Flash
so as detailed (code whatever) as you could be, would be
appreciated greatly. Thanks in advance for your time.
And if you let the whole clip play to end (under :50) it
jumps back to the beginning, which I want, but you'll notice that
the "play_mc" button pops up then immediately disappears...I need
it to stay on as at the beginning.
On the last frame (actions layer) of my main mc called
keyMech_mc is this code:
gotoAndStop("Scene 1", 1);
_root.play_mc._alpha = 100;
My play button which is actually a movie clip, play_mc, has
various alpha code for it on my main timeline on actions layer
first frame as follows:
_root.KeyMech_mc.stop();
play_mc.onRollOver = function(){
this.gotoAndStop("over");
play_mc.onRollOut = function(){
this.gotoAndStop("out");
play_mc.onRelease = function(){
this.onEnterFrame = function(){
so = this;
rate = 5; // choose number between 1 and 100
newAlpha = so._alpha - rate; // subtract rate from current
visibility
if(newAlpha > 0) { // continue fade
so._alpha = newAlpha; // set newVolume to decrease visibility
}else if(newAlpha == 0){
so._alpha = 0;
===========
Just wanted you to have all the info possible re: this
play_mc so I can get it to stay back up at the end of the movie...
And I'm really stumped as to how to do the revealing bars
thing.
Thanks for any help!
KB

OK got the bars to work, courtesy a good suggestion from some
one (just put a white rectangle behind the lines) - but what about
this play button reappearing?
KB

Similar Messages

  • How to link one scroll bar with two dynamic text boxes.

    How to link one scroll bar with two dynamic text boxes.
    If i move scroll bar in one text box,automatically text will
    be moved in another text box.But scroll bar is not visible.
    Can you please help me.
    Thanks in advance.

    See the following article:
    JavaScript - setFocus Method for tabbing to next form field
    And see if iOS can even handle the sample form.
    iOS and android devices are not a powerful as your desktop of laptop computer and have limited support for JavaScript within PDF forms. This limitation for specific apps ranges from none to quite a bit but not all JavaScript.

  • Making a moving bar

    I'd like to make a box move back and forth in a bar. I know this sounds vague, but I'll try to draw a picture:
    |                   [ ]                 |Now, I want that [ ] to move back and forth a varying speeds as I want to make a game where you have to try to press a button as it is in a specific area, kind of like this:
    |        [ ]   |    here    |           |So when the box passes through that area and the player presses a button, they will get a point. Now, my question is, how do I go about to making that? As of now, my idea is very inefficient but I'll explain it anyways.
    I'll make several images of this bar and box with the box in a different position each time. Then I'll make a loop with a timer and it'll go through to make the box go one way, switch to another loop and make it go the other way. When the player presses a button, it'll record what number the loop is at (like a for loop for example, and the counter) to determine if it's in the area or not. As the player consecutively hits the area, the timer's increments will be changed.
    Now, I assume there's a easier way, but I could be wrong. If there's another way to do this, could someone just explain how to do it? Thank you very much in advanced.

    * MovingBar.java
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.Timer;
    import javax.swing.border.*;
    public class MovingBar extends JFrame implements ActionListener{
        public MovingBar(){
            setTitle("Moving Bar");
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JPanel mainPanel = new JPanel();
            bar = new Bar();
            mainPanel.add(bar);
            getContentPane().add(mainPanel,BorderLayout.CENTER);
            btn.addActionListener(this);
            toolbar.add(btn);
            results.add(label);
            getContentPane().add(results,BorderLayout.NORTH);
            getContentPane().add(toolbar,BorderLayout.SOUTH);
            setSize(500, 130);
            setLocationRelativeTo(null);
            setVisible(true);
            bar.setPosition(0);
            Timer timer = new Timer(1,this);
            timer.start();
        public static void main(String[] args) {
            new MovingBar();
        public void actionPerformed(ActionEvent evt){
            if(evt.getSource() instanceof JButton){
                if( newGame ){
                    label.setText("");
                    points=0;
                    newGame = false;
                if( position>200 && position<300 ){
                    if(speed<=11){
                        points++;
                        speed++;
                        label.setText(points+" points     ");
                        if(speed==11){
                            label.setText(points+" points       Game Over");
                            speed = 1;
                            newGame = true;
                }else{
                    if(speed<=11){
                        points--;
                        label.setText(points+" points     ");
                return;
            if(rightDirection) position += speed;
            else               position -= speed;
            if( position >480 ) rightDirection=false;
            if( position <0 )   rightDirection=true;
            bar.setPosition(position);
            bar.repaint();
        private boolean rightDirection = true;
        private boolean newGame = true;
        private JPanel toolbar = new JPanel();
        private JPanel results = new JPanel();
        private JButton btn = new JButton("Hit");
        private JLabel label = new JLabel();
        private Bar bar;
        private int position, points;
        private int speed = 1;
    * Bar
    class Bar extends JPanel {
        public Bar() {
            setPreferredSize(new Dimension(10, 30));
            setBackground(Color.red);
            setBorder(new LineBorder(Color.BLACK));
        public void setPosition(int position){
            setLayout(null);
            setLocation( position, 0 );
    }

  • Removing object to reveal text

    Afternoon All
    I have a piece of footage where a car mechanic opens a bonnet to revel the cars engine. It's a wide angle with the mechanic in front of the bonnet (if this helps). I'm looking to reveal text underneath the bonnet as it is lifted and the mechanic moves out of shot. Is this doable?

    It's too bad the mechanic has on a virtually black jumpsuit; your task would be sooooo much easier with a lighter-colored one.  Any chance of re-shooting with lighter clothing?
    Here's why: there is almost ZERO difference between the jumpsuit and the interior of the engine compartment.  Your task becomes one of animating a mask that moves precisely as the jumpsuit moves on a frame-by-frame basis.... but how do you tell where the jumpsuit ends and the engine compartment begins?  With a lighter-colored jumpsuit, Rotobrush could do the chore in several minutes... as opposed to the days it would take you to get the mask right.
    If you can't re-shoot, you could TRY Rotobrush, but I don't predict much success.  Rotobrush is pretty darn good at separating subject from background, but it can't work miracles; it appears that this shot as shown to us would take a miracle.
    And of course, what Mylenium, Rick and Todd have told you is take-it-to-the-bank true.  I merely point out a way that the job could be made much easier.

  • Converted file is pic not text - how to make text?

    Converted file is pic not text - how to make text?

    Hi,
    I am moving your posting to Adobe ExportPDF forum as you posted this at Acrobat.com forum.
    It seems that you did not turn on "OCR" when you convert your PDF file or your PDF file contains too small text/graphics/complex layout. 
    Please send your file to us if possible using below site so that we can look into the problem:
    https://adobeformscentral.com/?f=qJiclooYWGGNFtWfj8g3wg#
    Thank you.
    Hisami

  • I need to know how to edit a drawing - basically remove the arrows and text but at the same time match the background of the existing pic. then re add new text. how do i erase the arrows and text and arrows but match current background of pic. step by ste

    i need to know how to edit a drawing - basically remove the arrows and text but at the same time match the background of the existing pic. then re add new text. how do i erase the arrows and text and arrows but match current background of pic. step by step explanation please beginner

    Please post (a relevant section of) it right on this Forum.

  • Hey! recently my key board settings has changed and now my volume buttons are no longer F10 and F11, now if i want to change the volume i have to do it on the top bar of the screen! how do i change it back to work normally on my wireless keyboard?

    Hey! recently my key board settings has changed and now my volume buttons are no longer F10 and F11, now if i want to change the volume i have to do it on the top bar of the screen! how do i change it back to work normally on my wireless keyboard?

    Hi, did you upgrade the OS lately?
    I think Spark cured this for another person and the same problem...
    http://www.shadowlab.org/Software/spark.php

  • Can I get rid of the flashing bar of words while texting? Or even writing this post?

    Can I get rid of the flashing bar of words while texting? Or even writing this post?

    Settings - general - keyboard - turn off predictive text.

  • When i go to new sms typing their is always show a text, how can solve this problem?

    when i go to new sms typing their is always show a text, how can solve this problem?

    Delete them and then download them from the desired Apple ID. This may require repurchasing paid applications.
    (95675)

  • ITunes 12-Please please restore side bar functions for playlists -and how can i tell when and if it is safe to "eject" devices after synching

    ITUNES 12-4points
    1) Please restore the easy function whereby the side bar easily accommodates playlists
    2) How do i know when devices can be ejected following synch--no visible drop down ?
    3) How can i change the fonts and font sizes of the library-over and above the noddy large/small toggle in preferences
    4) Look forward to a proper Apple update which includes  full functions of iTunes radio. Hurry up with the latter-Spotify is overtaking you guys!

    How do i know when devices can be ejected following synch--no visible drop down ?
    I can only tell you based on what I see w/ my iPhone...
    When I plug in my iPhone I get the following icon on the top bar:
    If I click on that (that's when it turns blue), I get a sidebar.  At the top I see this while it is syncing:
    The circle-arrows spin.  Once the sync is finished, I see this:
    I then know the sync is over and I click on the Eject icon that replaced the circle-arrows.
    Are you seeing something different?

  • Moving bars In score

    Anyone else having problems moving bars downward in the score window. It seems they only go up even when you grab and pull them down. I've set the max limit in score preferences. Perhaps just another score bugger in 8.01.

    Hello Pianoman,
    I read your problem. If you use the lay out tool their should be no problem moving bars downwards. But there are many bugs in the score set window.
    Do you know why the scale function does not apear when you open it for the second time?? Or why you can't divide the brackets in the score after 28 tracks?
    Can you help me with that?
    Harold

  • My phone displays numbers instead of contact names for incoming calls and text - how do I fix?

    My phone displays numbers instead of contact names for incoming calls and text - how do I fix?  It used to display the names if there was a contact listed, now it just shows numbers regardless of whether or not the number corresponds to a contact name in the contact list.  Can anyone help?  I googled this problem and lots of folks have experienced it, however there is not a consensus for a resolution.

    Alexandribill, I have been having the exact same issue.  I got a new phone and restored my contacts.  If the # doesn't have the area code first then the name isn't shown.  I just added my husbands area code to my phone and called my phone from his and now his name shows up...Ugh, I have to go through and manually add the area code to all my contacts....
    I'd say Verizon needs to rewrite their program to include the area code in the restoring from backup process!

  • Stuck on moving bar and black screen?

    Hi, I have a Toshiba Satellite A300 Series. Windows Vista. My laptop was working perfectly fine last night and when I woke up this morning, I turned it on and it was stuck on the Windows Corporation where the green bar is moving from left to right. I tried doing pressing F8 for safe mode and it went pass through the moving bar but then the screen turned black and all I can move is the cursor. I left it there for good hours just to see if it'll work but it stayed like that. I also tried start up repair and it said if the start up repair fixed the problem, windows should start normally. Then I clicked finish, but it still did the same, still stuck on the moving bar. It showed me a code 0x0 after the start up repair if that will help?
    Any suggestions? Greatly appreciated! Thank you!

    Try the solutions in this article.
    What can I do if my Windows 7 or Windows Vista laptop won't start?
    - Peter

  • Mask erases pixels instead of conceal/reveal

    OK I've got three different exposures of the exact same scene all layered together in CS4. In the past, i'd use the magic wand to broadly select parts of the photo and then Shift-F5 fill with black/white on layer masks to conceal/reveal various pixels from the underlying layers to blend exposures. Then, i'd just fine tune with a black/white brush. Today when i've done this, it seems to erase the black mask pixels from the image instead of just concealing them with the mask. Can't think of anything i've done to cause this. (I'm for sure using brush, not the eraser). Any help?

    In LR2.5 i select three images, and choose to edit with "Open as layers in photoshop." Once open, i apply a black layer mask to top two layered images to conceal everything in those layers. I want to reveal the sky on top layer by revealing with white on the layer mask. So i use magic wand (yes, it is the magic wand, not eraser) to select the sky. Then, using shift-F5 i fill with white with Normal mode, 100% opacity. However, the parts that are left black are now erased pixels. Since i applied white to the mask only, i can't see why it's erasing actual pixels. Kind of defeats point of using mask, and now i can't fine tune edges etc. with brush tool because pixels are missing. Two screenshots below:

  • Receiving Group Text : How do i see who else is in the distribution list???

    Receiving Group Text : How do i see who else is in the distribution list???
    other phones seem to have this, how can i see this? 
    Post relates to: Pre p100eww (Sprint)

    Use his/her Apple ID for iMessage on your phone...you'll actually receive the messages in real time.

Maybe you are looking for

  • Duplicate / multiple events in iCal on iPhone

    Just lately I get duplicate and even multiple (up to seven or eight) repeats of various events when I sync my iPhone with my MacBook Pro. I do not use the iCloud feature on the iPhone, and don't have it on the Mac -- in System Prefs and on the very t

  • Error while changing Service Order in CRM

    Hi, After creating Service Order in CRM, i click on change mode, it shows the following error: An error occurred in system ECC during account assignment Message no. CRM_ORDER_MISC 060 Diagnosis Errors occurred when assigning an account assignment obj

  • Startech Displayport to hdmi

    Hello, I recently purchased a Startech Displayport to HDMI adapter for my Lenovo 420s Thinkpad. I was hoping that I could just plug it into the laptop and my TV, and it would work. Are there any other steps I need to take to hook this up? Thanks for

  • Structuring a multi-segment movie

    Five years ago, I made movies for students using Flash MX. These movies are between 15 and 50 minutes long. They are on the course website; students click on them and watch them on their Flash Players. I now have CS3 and want to update the movies to

  • Problem : create new role

    Hi, I'm using webservices to create a new role in OCS. It' OK to create the but I have a problem when I try to add some capabilities to this role. I use this code. NamedValuesList nvalues = new NamedValuesList().addValue(Attributes.NAME, "SYSDOC PROJ