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

  • SEARCH
  • Home
  • 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 4613398
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:32:34+00:00 2026-05-22T01:32:34+00:00

I have a little project to do in flash and I am new with

  • 0

I have a little project to do in flash and I am new with action script. I am using actionscript 2.0 and I just want to make a alarm app which can ring a sound when the time comes :P.

So I have 2 inputtext’s one called alarm_hour and another alarm_min.

So the user enters the hour and the minute when it wants the alarm to ring. I am using Date class to pick the hour and the minute and my checkAlarm function it looks like this:

var my_date:Date = new Date();
var h:Number = my_date.getHours();
var m:Number = my_date.getMinutes();

var mi:String = alarma_minute;
var ora:String = alarma_hour;

if (((ora == h) && (mi == m))){

    _root.sunet.start(0, 99);
    _root.stare = 'start';
}

sunet its the sound file..
So the problem is that the if statement never activates but I don’t know why because I have made a dinamic text and tested the values from ora and hour and mi and m and all are equals… what am I doing wrong?

Thank you!

  • 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-22T01:32:35+00:00Added an answer on May 22, 2026 at 1:32 am

    I have managed to solve the problem by accessing the inputtext variables in this form: “variablename.text” and to do that I’ve had to change the inputtext instance name to “variablename” and now it works fine 😀

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ActionScript project set up using the Flash Builder IDE. Using the
I have a little project in which I named two same name function in
I have this little java project in which I have to use jsp files.
I have a little project I am working on and I am using jQuery.
After reading some items here I have decided to rewrite a little project using
I'm new to Grails and working on my little project. What I have problem
I have a little Project setup using OpenGL and Core Video. I render to
I have a little C# project and I want to start an application with
hi i'm using ubuntu and i have a little project with several packages i
I have a little project, and I want to have 2 compiled versions of

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.