ActionScript 3.0 :: Wrong Time Zone
Feb 16, 2011var nextDay:Date = new Date("Mon May 1 2006 15:30:00"); // yields Mon May 1 15:30:00 GMT-0400 2006 (I''m in ET zone, so it should be -0500)
View 5 Repliesvar nextDay:Date = new Date("Mon May 1 2006 15:30:00"); // yields Mon May 1 15:30:00 GMT-0400 2006 (I''m in ET zone, so it should be -0500)
View 5 RepliesI need to add in extra hours to the time, and the day will change automatically too. How should I change the code below?[code]
View 1 RepliesHow to convert date and time to CDT time Zone in flex4.
View 1 RepliesI am willing to do something like this in flash. Just 2-3 clocks showing times of different countries will also do.
I figured out that it has to be done by GMT, Time Zone but don't know how. I don't know php or jawa or any other language. Just basic flash scripting.
I have a working USA Time Zone Map. It works, but there are some bugs that I cant seem to get rid of.1st off, the time is based on the PC's clock. ( It's a work related thing, and no need to go from there)I have a clock displaying OUR current time (AST). I have EST, CST, MST, and PST times displayed also.I offsetted the clocks in each zone by simply adding the following code for each clock movie;[code]If I do -4, or -5, and so on, I get a '-' in front of the hours before the hour number, and if I add the AM, PM code in , like in the AST movie, THE movies dont show the proper AM, PM times when it is either AM, or PM.The FLA attached works fine as is, but I want to be able to have the AM/PM after the time on the clocks that are not local to the user 's PC clock.url...
View 3 Replieswhat i should do with this script so that i can run 2 cocks with a different time zone (Miami EST TIME & Frankfurt, EUROPE TIME). I can find a lot of tutorials on [url] but all those are too complex and they have an analog script included.
I[code]...
I am making a website and they are asking for displaying two different time zones. Website will be deployed at USA server. So want to calculate according to that. I don't want to get the system time of the PC
View 1 RepliesI want to make a clock but not just the time straight from my computer. I want to make my sort of own time zone clock. Is there any tutorial on making that here or an explanation?
View 1 RepliesI am working on an application to display GMT time and CST time in a swf. I am able to make the clock display time in GMT. When I check for time in CST it seems to be 1/2 hour behind. I am bit confused and code is junk now (So not up in the forum).
View 2 RepliesI've been using your tutorial for a date countdown timer with great sucess, although now I realise because it took the date from the computer that is viewing it and because the event is counting to an event in India, it would be wrong because up until now, ive just put the date and time so obivously it would be wrong because it would be that time/date of that timezone. Is there anyway I can alter the actionscript for a specific timezone?
View 2 RepliesI am recording FLV videos with Red5 server and playing them back in a Flex app. I am aware that Red5 does not properly inject the FLV MetaData, so I am using an external commandline tool to get the metadata in there.
Because I am injecting the metadata, my duration of the video is correct.
The problem I am having, and this is true with all FLV players I try to play the video with (even 3rd party stand-alone video players), is the PlayHead time is never started at 0. When I load up the FLV to play and lets say the video is 10 seconds long, the current time label on the playhead starts at 1-2seconds instead of 0 and the horizontal slider current time indicator also is moved away from 0 and is set to 1-2 seconds along the slidebar. the video plays back fine from what I can see though.
Is there a byte in the FLV that I need to change so that it will start the playhead at 0? I realize this is probably something to do with Red5, so if anyone has any work-arounds or potential things to watch out for that may be causing this
i made a camChooser using camboBox component.every thing is fine. but first time (page loading) camCombo(video combo) component x,y positions is ok, but micCombo(mic) x,y positions going to 0, 0.after i refresh the page then going to correct position.[code]
View 10 RepliesI am having a problem with a little trivia game that I am in the process of developing. What I am trying to do is have flash fade out one wrong answer at a time. All questions are being pulled from an XML file that has hundreds of questions. Keep in mind that the correct answer will not always be in the same spot. I also have it so that one question fades into another after a specific time. Here is the code
Code:
System.useCodepage = true;
//
function loadXML(loaded) {[code].....
I am somewhat new to Flash CS4 andt am having a problem making simple buttons in Flash CS4 on a Macintosh: I have made a few buttons with a graphic and can go into them and successfully create the Up, Over and Down stages of the graphic. Then when I create a new box for the hit state (which is larger than the graphic and I have deleted the graphic itself from the hit state) it doesn't want to appear correctly when I test the movie. When I test the movie, the hit state is correct everywhere around the graphic (to the bounds of my hit state box), but is not active where the graphic is.
When I go under the Control menu, down to Enable Simple Buttons, the hit zone looks great right in my Flash file, but when I preview it or publish it and look it on different browsers (PC and Mac), I don't get my pointer right over the actual graphic, but get it everywhere around the graphic to the boundaries of my hit box. Why can't I get the actual graphic to be a hot spot in this situation? I have tried leaving the graphic in the hit timeline, and tried putting both the larger box and the graphic in the hit timeline, and still can't get them to respond correctly with the pointer in the browser window.
1- i have a circular menu, with a zoom effect when you hover on it, with the home button in the center, when you click the home button you load the page then reload the scene 1 ( menu idle ).If i put nothing on the button itself on the scene 1, before the zoom effect, i need to move out of the button to trigger the other scritp there that detect the rollover and start the zoom in.i want to have a special behavior for the home button on the idle state of the menu ( scene 1 ) , When you click the home button from anywhere else, you load back the page, then because the mouse is already on the home button, i want flash to do nothing, but at the second you start to move the mouse again ( remember you are still on the home button) i want it to start teh zoom effect again, not before.
Right now, it is either no zoom effect as soon the mouse is on top of it, or imediatly zoom in with the rollover....And i know it is possible with a very simple command, but i forgot it... i did it before.2- for the same menu, i will have a sub-menu unfolding when you click a certain button, that sub-menu is outside the main menu detection zone. Is it possible to make a shape, turn the alpha at 0, put it under the sub-menu, and use it as detection zone
i am working on a drag and drop activity in which i would like a function to be triggered once i drag over the dropzone. i've tried putting the dropzone movie clips into an array, and assigning an "over" state to them - but it would only trigger the function when i rolled over, not dragged an item over them.
Code:
import flash.display.MovieClip;
//assigns everything to the plan buttons;
for (var i:uint = 0; i < planArray.length; i++) {
[code]...
I trying to realise an eraser effect but... no tutorial found... till now I make this... but don't know how to erase at specific zone-under sponge- whitout erase all like in this fla.
Fornow is smth like:I have a layer for car, one for spongee and a layer for dust...Till now I just realize an alpha decrease for each sponge drag...
stop ();var i=2;var d=100;sponge_mc.onDragOver=function() { d=d-i; ****_mc._alpha=d-i; }sponge_mc.onPress = function(){this.startDrag()
}[code].....
Attachments:
Spongee&Tween.swf (407.2 K)
I did a simple flash file to be able to users paint on draw. Now i want to change the icon only on certain zones but i don't know how to do that.. I want the icon to be the pencil when it's on the yellow area and i want it to be red again when it's on the red area.
Here is my fla: [URL]
I've been trying to work around this for a long time and no matter where i ask no one can give me any kind of solution to this... even when the problem itself doesn't look that hard but its hard to explain.I was trying to make a very simple kind of maze game with a flat perspective (like the 90s RPG) the maze walls must be four sided solid, the left and right walls are not a big issue but the top and bottom walls have the problem, for example the top walls must allow the player's head and body to go over it but stop at his feet and the bottom is something alike.My idea to solve this was put another symbol inside the player and put it on the lower part and another symbol inside the wall and make the hittest but it didn't work
I put the walking code and the hittest on the player symbol and it worked, but immediately when i put the hittest code on the symbol at his feet inside the player symbol the code stop working.The walls must contain the solid and graphic part inside the same symbol because some of them will move
Right now I deconstruct the whole thing, any idea will work, i'm just starting pretty much from zero
the website i have is black... and contains large flash galleries... The problem is before the load they look like a large white squares... then they load and look great... is there anyway that it can look like a large black square so that viewers cannot tell that there is something located on the black background until it loads
View 1 RepliesI build flash web sites and have only a limited understanding of javascript. I am trying to monetize a flash page that I have built for myself and is getting an increased traffic. The page has to be flash as it is based on flash dynamic graphic capabilities. Besides I prefer to integrate and customize the ads into my page rather than use standard ad zones offered by the ad networks. I have a permission from a small ad network to convert their ads to flash but I was not able to do it myself. They use a standard java script src code for creating their ads. It looks approximately like this:
<SCRIPT LANGUAGE="JavaScript1.1" SRC="http://bdv.Advertiser.com/Advertiser.dbm?pid=22222&bid=111111" type="text/javascript"></SCRIPT>
They require though that the capturing will be done in a way that allows them to monitor my page. I can publish Flash player 9 so I can work with ExternalInterface.call
how to translate the code to Flash and how to change the html code will be helpful. I am also willing to pay someone who is interested in working with me directly via Email correspondance on properly placing the code.
I am coding a graphical interface using Flex, and I have a qestion related to masks in Flash.I want to create a kind of mask that defines which color and which alpha value a text will have according to its position on the screen. It is very easy to do that with the text being the mask of a bitmap, for instance.
However, I also want to take into account the color of the text itself.for instance, if I create a red text, in some zone it will be red with a modified alpha value, but on another zone, the text will be full white, as if there was a kind of mask which also applies its own color on top of it.
Is there a way to easily do this kind of thing? Of course, I can manually apply the format on the text according to where it is, but I wonder if there is an automatic processing like mask or blend mode using a DisplayObject as a processing pattern.
I have created a short animation in Flash CS4 which has one button with a URL link. the button shows up on frame 217, and on that frame I added the following action script:
[Code]...
however, the 'hit zone' for the button shows up from frame 1 of the animation. is there a way of getting the hit zone to start when the button shows up?
I'm making a flash company profile in the style of a website, except it won't be uploaded online.and i made each button skip to a frame that i already named
some of the buttons are skipping to the wrong frames for some reason,the ones that are not working properly have some pretty big picture files on them,could this be the reason or is it just an action script mistake?
I did a banner in flash CS3. I did 8 things and you see them one after the other one. The first time that it plays it goes on the right order but after it finished, when it normally has to start playing again, it plays in wrong order (the first then the third, the last, the second again the first, last and so on), it just does what he wants and not what I did.
View 1 Replieswhen I type j in the input box (or grid) component it looks like i. is it bug? when typed many j's.only first looks wrong.
View 2 RepliesI have built a website that contains two flash galleries on two separate pages.Each .swf galllery is meant to call a separate xml, loading the relevant text and images.The galleries work perfect when using Firefox-windows, Firefox-mac and Safari and on my local machine(macbook)The galleries do not work using IE-windows, the problem being it loads both galleries with the same xml. [URL]
View 3 RepliesIs there anything wrong with this function?
[Code]...
can u re-write the code? im not sure im getting it.
View 9 RepliesI am not sure why they are not wroking but I have converted the buttons to th button symbol.
View 11 Replies