How To Get Exact Time?
Is there a way to synchronise flash with a internet time server (like time.windows.com)??? Probably not... Has anyone of you faced (and solved) a problem of displaying exact (max. few seconds delay) time in flash?
I already asked this queston in the Flash MX forum and they suggested to call a php script which returns the web server time (web server is synchronised with time servers). Acceptable solution (time delay would be acceptable), but I just want to know if there is a better solution??
Thank you! Kekec
FlashKit > Flash Help > Flash ActionScript
Posted on: 11-07-2003, 09:38 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Exact Time?
anyone know how I can add the time and date in the top left corner
of my personal site? (to the minute!)
thanks..
How To Get Exact Time?
Is there a way to synchronise flash with a internet time server (like time.windows.com)??? Probably not... Has anyone of you faced (and solved) a problem of displaying exact (max. few seconds delay) time in flash?
I haven't found any examples on the web Currently the only solution i see is writing a simple php script which would return web server time (which is synchronised with ntp servers).
Any suggestions, examples, experiences???
Thanx!
Kekec
Trace Exact Time To Load Xml?
Is it possible to find out exactly how long it takes to load an xml file into a flash movie? I have had a look around the net, but have been unable to find anything.
Thanks,
Jake
Stop All Movies At The Exact Same Time?
Hi fellows,
Wondering if anyone could point out if there's an easy way of stopping all movieclips at the same time, kinda like stopall sounds.
I'm developing a game and it has tons of movieclips nested within and etc, and I want to do a pause button that will basically stop all movieclips at the same time and then continue where it last stops when I click it another time.
Also, I realised that with movieclip animations, they don't show when I do an AVI export, is there anyway I can get around that as well?
thanks!
Stop All Movies At The Exact Same Time?
We are trying to create a global stop for all loaded movies & movie clips that stops everything at once and then allows us to resume play upon clicking another button. We have our main time line. On it we have several movie clips and a few loaded movies playing. At any point during the play of our movie, we want our users to be able to click on a movie (lets call it help_mc) that will open above the main content and stop all movies and clips that are currently playing. Once the user is finished reading the help content, they click a button, help_mc should unload, and all movies should resume playing. Anyone have any ideas??
Listeners? Having An Event Happen At An EXACT Time Of An Mp3?
regardless of framerate I want an event to happen exactly when a sound reaches a certain point (in milliseconds). Is there a way I can do this? rather than testing the time of the sound every frame or every millisecond (with setinterval) I want the event to be called at the precise time.
Any ideas?
Thankyou!
Problem In Netstream.seek To Exact Time
Hi
I am new to AS3 programming, I am writing a player, when call netstream.seek() it is not placing to the specified time.
I googled and found that it is seeking to the nearest seek point.
by using a cue point we can seek to that time but I want to add cue point dynamically using Flex builder 3
How to seek exactly, to the specified time.
Thanks
Dear Lord, Help Me Create A Countdown Timer To Exact Time (not Just Date)
Hey guys,
For the life of me, how the heck can a newbie like me in coding, create a friggin' timer to the exact time. I found billions of tutorials to countdown to a day, but NOBODY can provide a sample to countdown to a date and time (i.e. Dec. 25 @ 8PM).
I need this to countdown to a TV show's premier. And I'm a designer not a coder... so there has to be a FLA file out there that I could snag and just update the graphics and plug in a time and date, and then it counts down once I make a SWF? Anybody?
=)))))) Keep in mind, I've Googled for hours.
Exact Fit
Hi,
Would it be possible to "EXACT FIT" a movie without DISTORT the text (a menu for example)?I would like to play a movie clip in the background in a fullscreen (with distortion if needed) with a text menu that won't distort.
THX!
Exact Spacing
Hi,
How do you space stuff away from each other with the exact same distance? I know how to use the alignment tool and spacing things evenly but lets say i want them to be spaced exactly 30 pixels apart? Is the ruler and grid the only option or is there an easier method?
Exact Fit - Without Resize? Pls Help
Hi all,
If you would check out www.salvacampillo.com you'll see that the copyright text in the lower right corner keeps its size when you resize the browser window and the background doesn't.
How can I achieve that? Would appreciate any kind of help
thanks
Cetrez
POP-UP Window Exact Fit
Hi all,
I'm hoping someone can help me with this. I've created a Flash MX movie that is 480 x 360. It has an image with a scrolling diary, so when I have this popup I need it to be exactly this size. Here's the code I have written to have it pop up:
function pop3(){window.open("http://www.corday.net/cordaydiary.html","","height=360,width=480,left=0, top=0");}
When I click on this it does pop up, but it is not coming up the exact size. It is adding space to the top & left and it is cutting off my right side a little bit.
Can someone please tell me what I am doing wrong?
Thanks so much!!
Tracy
Exact Position?
Hi there
I want to place an object in the exact position on the scene as in a mc. I find that difficult. On the scene zero is in the upper left corner and in the mc its in the middle. I think it would be convenient if it was possible to move zero in the mc. How do you with this?
Anders
Exact Fit To Window?
I created flash movie which came out in pop-up window using javascript.
Window successfully cames up, but the movie doesn't fit to the screen, leaving blank spaces around top and left...it looks very poor. I want to know how to fit the flash movie to the screen (pop-up window). Please help!
Exact Size
I want my flash movie to open in a browser at the exact height and width. Is this possible? Thanks.
Exact Size
I made a Flash movie that's 550 x 400. I want it to open up in a browser window that is 550 x 400. Is there anyway to do this? I tried publishing with the dimension set at 100%, but it doesn't work. Here's another catch. I have to dumb it down to Flash 6 so that all my clients can view it. Please help.
Need Exact Window Fit Help.
I need the script for exact fit of my swf size.
For example, my movie is 600x400 and I want the window to be that size when it is loaded.
[CS3] Re Creating The Exact .fla
I have to design a page which the original idea is in the link below. What I know and can do so far: (if I'm wrong please correct me)
I can re create the signature, the left full signature and use loadMovie num to load the large photos, but what I cannot figure out is how the button on the lower left is able to change the background and text on the pages. I know how to do this on an html page but this effect is embedded in the swf. I'm thinking the main movie with the signature, name on top right and menu are are LoadMovieNum in level 1 the large photos changing are on level 2? When you click the menu it loads the bio and other menu choices in level 2? But what gets me is the text and background can be changed in every page! Does anybody know how this was done? So far I coming up with nothing.
here is the original page http://marissakaiser.com/
Exact Size.
I have a movie that I need to open up the exact size of the movie without people being able to resize it. I would like to do this without creating a page in JavaScript that links to the Flash movie. Is there a way to make the Flash movie the exact size that it is created at without having to use JavaScript?
If the question is too vague, please let me know and i'll ellaborate a little further.
Thank you.
Exact HitTest?
How would you make a hitTest, so it would only work when one thing touches the other, not just their bounding boxes?
I'm making a sideshooter kind of game, and when you move, the plane rotates in that direction, but the bounding box just gets bigger and everything crashes into it.
Erm, I guess what I'm trying to say, is how do you get hitTest to work like a button, the way it does it by exact pixels?
(I'm absolutely horrible at explaining things, if you couldn't tell, XD)
Exact Fit Scene?
Hi, I'm making a solar system simulator, where planets are flying around.
The problem is that they are flying outside the scene. So I want to scale the scene in the Enter_frame so I can see all the planets. And of course, they must remain round after the scaling!
[please help me out! I've no idea how to make this]
A picture explains more than 1000 words.
Exact HitTest
I am making a game and it has a very curvy environment I want the chacacter to die when it hits the environment and not the bounding box example included
Exact HitTest?
How would you make a hitTest, so it would only work when one thing touches the other, not just their bounding boxes?
I'm making a sideshooter kind of game, and when you move, the plane rotates in that direction, but the bounding box just gets bigger and everything crashes into it.
Erm, I guess what I'm trying to say, is how do you get hitTest to work like a button, the way it does it by exact pixels?
(I'm absolutely horrible at explaining things, if you couldn't tell, XD)
Exact Way Of Dynamically Loading An Swf
ok, here goes. most of my posts are ignored because no one understand them, i am an idiot, and people mistake this for laziness. therefore, i have stumbled in flash for sometime now, and will make this as clear as possible.
i wanted to make this site entirely in actionscript, down to the graphics.
i use a for..while loop to attach these small menus to the root. the movieclips which i am attaching(lets call 'em "main) contain a small graphic, and another movieclip, inside of which is a transparent button that goes over the graphic
all of these buttons should do something different, but i didnt know how to accomplish this.(before i made this stupid system of transparent buttons and hardcoding and dumb actionscript)
so my solution?the only thing thats different between all these buttons is their parent. thats why i put them inside a second movieclip container thing, if they were just put in "main" theyd have the same parent. so i needed these buttons to load an swf, so i tried this:
on(release){
loadMovie(_parent+".swf", "loaderclip");
}
i named the movieclips accordingly, and it didnt work..what do i do?
'Exact Fit' And MC Distortion Woes
G'day all,
I'm having a little problem and am hoping that there is a little solution.
I want to publish my .swf using the 'Exact Fit' option so that the .swf will expand to fill all availible browser space. Only trouble is, certain movie clips become distorted when the browser window is sized to a non standard ratio ( that being anything other than 4:3 ) such that circles look like ovals, logos get squished, and the text becomes jagged.
Is there some means, via actionScript and maths, to set the property of a movie clip such that it will not distort? I would like the movie clips to scale, but to retain their aspect ratio as well. Can it be done?
Any pointers would be greatly appreciated.
Thanks.
Cant Explain An Exact Subject, But Please Help
I have a problem here
I have a picture of a machine like thing, but its exploded. So you can see all the parts. And ive labeled all the parts, and made little movie clips that play when you mouse over the cartain parts. Each part has its own part number and description. There are about 15-20 parts in all. When im viewing the final SWF everythign moves really slow. Like its too much info to handle.
Also, all the part numbers are in one place. They all overlap each other. The text fades in and out using alpha and so on. But on some of the part numbers, it looks like the text is being covered up by a layer of text above it. BUT the layer above it is set to 0% alpha.
Why is it covering it up?
Please help.
Thanks
How To Get EXACT TIMING IN FLASH MX?
This is probably a question for you hardcore users...
I want to make a simple graphic figure to appear and disappear in sync with a tone (e g a "lamp" that appears lika an alarm signal in a cockpit). It works fine as long as i don't use too tiny intervalls. I can make it work fine if it blinks every 30ms. Then it appears to be synchronized to me anyway. But when i try to narrow the gap to 20ms or even smaller, the sound stops to synchronize with the flashing "lamp". How can i get this to work? This is a part of my master thesis and i need to be able to measure reaction times too, and in doing that i need an accuracy of 10 ms or so...
PLEASE help me with this!!
Exact Url For Flash Movie
Does any one know how you link a flash banner on a newsletter When I try to type in the exact url it doesn't seem to pull up the flash?
Thanks
Betsy
Exact Size Window?
I want to open through a button a swf file with the exact size that it has. I mean when a click a button, open the movie in 550x440 for example, with no explorer, scrollbar, or anything else, just like the preview player. If anyone can help?
Exact Fit Jpeg In Popup?
Java q:
I need to open a jpeg in a popup so that viewers can copy the images to their own hd, so I'm using this script:
on (release) {
getURL ("javascript:NewWindow=window.open('http://www.cscproducts.com/images/sv1000.jpg','newWin','width=750,height=400,screenX =0,screenY=0,left=0,top=0,toolbar=No,location=No,s crollbars=No,status=No,resizable=No,fullscreen=No' ); NewWindow.focus(); void(0);");
}
The image is 750x400, same as the window the script creates. Problem is, the image ends up with a background border at top and left, where I need there to be none. The corresponding amount of the image is pushed off the page at right and bottom. I did a whole bunch of searching here and elsewhere, no luck.
Any help greatly appreciated!
John
Masking An Exact Shape...
hi
i feel like a noob...id like to mask an exact shape so i can do some cool animations that are only seen over that shape.
example:
lets say i have a big letter 'P' that i made in photoshop and import it into flash. i made the background transparent and saved it as a .png file. so then i place a 'P' on stage that i want to be visible and i place another one directly on top of it to act as the mask. when i use set mask in this situation it doesnt use the shape of a 'P' is uses a box of some weird dimension.
anyone know a good way to do this?
should this work?
thanks
Motion Formula Not Very Exact
Hi all,
I've used this formula below for a while since i watched some lynda.com course videos and found it very usefull. Untill now, because it has a minor problem and i wonder if there is another way.
This is what i'm doing:
Code:
//Create interval var
var nInterval:Number;
Ease = 6;
// Calculation to get a nice animated motion to new values.
function Calculation():Void {
mcMask._width += (newW - mcMask._width) / Ease;
}
function startMaskMotion():Void {
newW = 365;
trace("mcMask._width = " + mcMask._width); // Traces: mcMask._width = 365.2
trace("newW = " + newW); // Traces: newW = 365
Calculation();
updateAfterEvent();
}
function endMaskMotion():Void {
newW = 725;
trace("mcMask._width = " + mcMask._width); // Traces mcMask._width = 724.7
trace("newW = " + newW); // Traces newW = 725
Calculation();
updateAfterEvent();
}
btTest.onRollOver = function(){
clearInterval(nInterval);
nInterval = setInterval(startMaskMotion, 30);
}
btTest.onRollOut = function(){
clearInterval(nInterval);
nInterval = setInterval(endMaskMotion, 30);
}
I've given a "new width (newW)" and using an interval it checks the calculation over and over again untill the mcMask._width is equal to the "new width (newW)"
But when i trace it, it's not equal at all. It's near equal and it probably has something to do with the /Ease part since at some point it can's divide anymore.
And this is just an example that pretty much fits, but i've got other experiences with a difference of over 7 px. I couldn't find this example anymore.
How can i get this exact?
Because i want to check if the condition has been met, for instance:
if (newW == mcMask._width) {
"do another animation"
}
Can i use another condition or is there a way to make it 100% exact?
Thanks in advance!
Exact Position On A Vast Bg
Dear all,
i've problems with positioning objects (imgs, clips) on a very large bg img (7680 x 5760).
Flash doesn't accept it when i type in the exact position into the X/Y fields, when i'm going beyond a certain number; when i stay below it's no problem.
Does anybody know why this is and if there is a specification somewhere in the menu that prevents this behaviour?
Thanks in advance.
Best,
Florian
Exact Hit Area Of A MovieClip
Hi all,
I m new to this Group. This is my first Thread in this Forum. Well, here is my problem.
Consider there is Two movieClips ( Outer_mc, inner_mc);
"inner_mc" is inside "outer_mc". and "inner_mc" is having only one circle(width:100,Height:100). Fine.
Now if you trace the Width and height of "outer_mc" it will show exactly the width and height of the circle(100,100).
Now rotate the "inner_mc" about 40 degrees. Now trace the width and Height, it will show you(140.9,140.9). But Actually There is no change in hitArea. Well, I would like to Know the Hit area Width and height instead of the movieClip's width and height. After rotating how to get exact hitarea Width and height.
Alpha Settings Not Exact
Does anyone else have this problem setting alpha for a movieclip?
When you do something like
Code:
my_mc._alpha = 12;
trace(my_mc._alpha)
//trace outputs a fraction of 12 ie "11.71875" or something
Any reason why it's not exactly 12? I've worked around it by using Math.ceil or Math.floor when necessary. Just wondering why it does this.
Exact Position Button Over
I a bit new to flash, so please bare with me. I'm working with flash cs3. I have created my whole menu with photoshop and imported it over in its original position. The button positions are perfect because flash imports them over in their exact photoshop position. But I am having problems getting the rollover images in position. When i am in the button-edit mode I have to drag-and-drop from the library which messes up the original positioning of those "mouse-over" images. Is there any way to have flash place these mouse-over images into the button-editor in their original photoshop positions?
Same Exact Swf Copied And Two Different Results
I have two slideshows, PortfolioA and PortfolioB they are exactly the same except for the pics in each xml file. If you go to the link HERE
select Portfolio A -
if you run your mouse left to right the scroll moves the opposite way (Right to left) This is what I want
select Portfolio B -
if you run your mouse left to right the scroll moves the same way (Left to Right)
I checked the Actionscript, both are identicle except for the name of the xml file it calls
just to be sure, got the original Portfolio A changed the name of the xml file in the AS copied it and the same thing!
I have all files any help here as I cannot figure this out!
anybody?
RD
Masking An Exact Shape
hi
i feel like a noob...id like to mask an exact shape so i can do some cool animations that are only seen over that shape.
example:
lets say i have a big letter 'P' that i made in photoshop and import it into flash. i made the background transparent and saved it as a .png file. so then i place a 'P' on stage that i want to be visible and i place another one directly on top of it to act as the mask. when i use set mask in this situation it doesnt use the shape of a 'P' is uses a box of some weird dimension.
anyone know a good way to do this?
should this work?
thanks
Loading Outside .swf's Into An Exact Position
I swear im loosing my mind over this....
all i want to do is use a button on my main page and make it load a .swf file into an exact position on my main page. and suggestions... i know im missing something really really simple and small here....
thanks!
Papervision - Exact 2d Dimensions
Hi.
Is there some possibility to create a 3D Plane in an exact position and dimension as a 2d MovieClip I have on the scene?
I have a movieclip with a photo, loaded from the internet on realtime. I want to create a smooth transition between the 2D scene (the MC) and the 3D scene (3D Plane), using the same photo as a texture.
How do i do that?
TNX
Masking An Exact Shape
hi
i feel like a noob...id like to mask an exact shape so i can do some cool animations that are only seen over that shape.
example:
lets say i have a big letter 'P' that i made in photoshop and import it into flash. i made the background transparent and saved it as a .png file. so then i place a 'P' on stage that i want to be visible and i place another one directly on top of it to act as the mask. when i use set mask in this situation it doesnt use the shape of a 'P' is uses a box of some weird dimension.
anyone know a good way to do this?
should this work?
thanks
Exact Sound Levels
Is there anyway of ensuring an exact level change in dB for a sound in flash? I'm designing a listening test and need to have a sound at +1dB, +2dB, +3dB and +4dB. I could use seperate sounds, but the download would be too long.
Thanks,
Jon
Exact Positioning - With 'shudder'?
Perhaps someone could shed some light on this little quandry for me!
When i create my html index page and get it to pop up the flash html page with the .swf file inside. How dod I get the window to appear in the centre of the screen? And can this be done with any motion effects or 'shuddering'??
And where does the code I need to input sit (in the dreamweaver html file or the Flash .swf file?)
Also when i have the new window pop-up with the .swf file within and the window is set to the same size as the .swf file - why do I get white space at the foot of the box and the right edge clips slightly - .swf file size 800 x 600 - pop-up window size 800 x 600 tiz very confusing.
Furrball
Exact Pixel For Movieclip
Hi all
Does anyone know of a way to make all movieclips x & y property allways be positioned exactly?
Maybe MovieClip.prototype._x = Math.floor(MovieClip.prototype._x) ;
or something like that?
Dan
|