Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7091713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:13:15+00:00 2026-05-28T08:13:15+00:00

Im very new to actionscript 3 and I just cant seem to convert my

  • 0

Im very new to actionscript 3 and I just cant seem to convert my old action script into the newest version (as3). I am trying to set my movie clips from alpha (transparent) to visible when the mouse is rolled over a button. Here is my old code.

//btnOver is a gaint button over my screen that is transparent

function btnOver(event:MouseEvent):void{
    button_overlay._visible = false;
on(rollOver){
    minutes_mc._visible = true;
    hours_mc._visible = true;
    seconds_mc._visible = true;
}
on(rollOut){
    minutes_mc._visible = false;
    hours_mc._visible = false;
    seconds_mc._visible = false;
}

Here is the rest (or whole) of my code in AS3.

import flash.events.MouseEvent;

var date:Date;
var theDate:Date = new Date(  );
var day = theDate.toLocaleDateString()
var time = theDate.toLocaleTimeString()


addEventListener(Event.ENTER_FRAME, refreshHour);
addEventListener(MouseEvent.ROLL_OVER, btnOver);


function refreshHour(event:Event):void{

    date = new Date();

    hour_mc.rotation = date.getHours()*30 + (date.getMinutes()/2);
    hours_mc.rotation = date.getHours()*30 + (date.getMinutes()/2);
    minutes_mc.rotation = date.getMinutes()*6 + (date.getSeconds()/10);
    minute_mc.rotation = date.getMinutes()*6 + (date.getSeconds()/10);
    seconds_mc.rotation = date.getSeconds()*6 + (date.getMilliseconds()/(1000/6));
    second_mc.rotation = date.getSeconds()*6 + (date.getMilliseconds()/(1000/6));
}

date_txt.text = day;

//btnOver is a gaint button over my screen that is transparent

function btnOver(event:MouseEvent):void{
    button_overlay._visible = false;
on(rollOver){
    minutes_mc._visible = true;
    hours_mc._visible = true;
    seconds_mc._visible = true;
}
on(rollOut){
    minutes_mc._visible = false;
    hours_mc._visible = false;
    seconds_mc._visible = false;
}

Basically Im making a flash watch that glows when you roll over it:)

Thanks
Joe

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T08:13:16+00:00Added an answer on May 28, 2026 at 8:13 am
    const GLOW:GlowFilter = new GlowFilter(0xFF0000);
    
    screen.addEventListener(MouseEvent.ROLL_OVER, _rollOver);
    screen.addEventListener(MouseEvent.ROLL_OUT, _rollOut);
    
    function _rollOver(e:Event):void
    {
        watch.filters = [GLOW];
    }
    
    function _rollOut(e:Event):void
    {
        watch.filters = [];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am very new to Action Script. I am using Flash Professional CS5 with
Im very new to Adobe Flex/Actionscript and am trying to create a person search
I am very new to both JavaScript and ActionScript. I am trying to get
I am very new to ActionScript and Flash development so excuse any incorrect terminology
I'm very new to flash and actionscript 3. I've been reading a lot about
Very new to JQuery and MVC and webdevelopment over all. I'm now trying to
Very new mobile developer here... I am trying to retrieve a list of tweets
I'm new to Flex/Actionscript and have a very basic question. Let's say I have
i'm a very new user to flex (never use flex, nor flashbuilder, nor action
I'm absolutely new to programming and just managed to learn the basics of ActionScript

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.