Highlighted

question about flash clock

Community Beginner ,
Apr 22, 2019

Copy link to clipboard

Copied

I have analog clock that runs fine I have the stage set to transparent windowless

this is code I am running

var now:Date;

var ct:Timer = new Timer(1000);

ct.addEventListener(TimerEvent.TIMER, onTick);

ct.start();

function onTick(event:TimerEvent){

now = new Date();

var s:uint = now.getSeconds();

var m:uint = now.getMinutes();

var h:uint = now.getHours();

second_hamd_mc.rotation = 180 + (s * 6);

minute_hand_mc.rotation = 180 + (m * 6);

hour_hand_mc.rotation = 180 + (h * 30) + (m * 0.5);

}

once I insert it into the game redlight center clock still runs fine

Sketch.png

but once I turn on transparent the hands get all messed up for the next image I placed a white sign in behind so clock hands can be seen easier

Sketch2.png

as can see between two pictures only change is turning on transparent

any suggestions

jeff

TOPICS
Discussions

Views

303

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

question about flash clock

Community Beginner ,
Apr 22, 2019

Copy link to clipboard

Copied

I have analog clock that runs fine I have the stage set to transparent windowless

this is code I am running

var now:Date;

var ct:Timer = new Timer(1000);

ct.addEventListener(TimerEvent.TIMER, onTick);

ct.start();

function onTick(event:TimerEvent){

now = new Date();

var s:uint = now.getSeconds();

var m:uint = now.getMinutes();

var h:uint = now.getHours();

second_hamd_mc.rotation = 180 + (s * 6);

minute_hand_mc.rotation = 180 + (m * 6);

hour_hand_mc.rotation = 180 + (h * 30) + (m * 0.5);

}

once I insert it into the game redlight center clock still runs fine

Sketch.png

but once I turn on transparent the hands get all messed up for the next image I placed a white sign in behind so clock hands can be seen easier

Sketch2.png

as can see between two pictures only change is turning on transparent

any suggestions

jeff

TOPICS
Discussions

Views

304

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Apr 22, 2019 0
Adobe Community Professional ,
Apr 23, 2019

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 23, 2019 0