Want To Set A Perfect FPS For Your Flash Movie?
What is the perfect FPS for our Flash Movies? Is it...
12? The standart fps Macromedia Flash sets for us!
25? The standart fps for PAL!
30? The standart fps for NTSC televisions!
24? The fps for movies in theaters! 31? The standart fps Holywood sets for their movies!
36? The standart fps I set for my movies!
48? 60? 72? or more higher more better?
fps stands for frames-per-second. Frame rate determines how fast and smooth a movie will run. For example: 12 fps means that 12 frames of the movie will be displayed every second. 15 fps means that 15 frames will be displayed every second.
This does not mean that the Flash movie will always follow the specified fps. Reasons for running below fps:
the movie is too complex the computer is too slow too many programs running at the same time
Think of the fps as a speed limit. A Flash movie is a good citizen who will never break the limit, but it may run slower than the limit.
Having all these in mind i cant figure out what is the perfect FPS for a flash movie. So, please spend a litle time of yours to tell about what speed limit (fps) you set for your movies, and why?
Lets start with mine,
I set 36 as the standart fps for my movies. Why..? I find it doesnt burdon my pc and the movie is running quite smoothly. But i am still not satisfied because i am not very sure whether this is the perfect fps for a flash movie.. OK, now start writing about yours
FlashKit > Flash Help > Flash General Help
Posted on: 10-17-2004, 11:35 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Perfect HitTesting? (Flash 5)
Hey guys. I kinda suck at flash ok? I always used the hitTest command to make collision detections between objects. but now I wanna go to something a little harder. Is there a way to tell Flash that I want the collision to be "perfect"?. I mean that it won't be a damn invisible square all around a custom objet that will touch another object. I guess you know what i mean. Anyway even if it exists I hope it's easy to do.
Thx
Perfect Fade: Flash 4 Version?
How would you do this in Flash 4? Is it possible?
(see http://board.flashkit.com/board/show...ostid=1100467)
Use a MC looping instead of the clip event?
Help?
The Perfect Flash Mx Plug In Check - Take A Look
hey guys here is a project i have just completed:
http://casestudy.passionpixels.com/davidturpin
enjoy the music - you will hear from this artist...
i had to fight a lot to find a good solution to check if the user has the right plugin installed. there is a tiny problem where i would need your help please.
the site uses 3 html files
index.html
[simple html page without any scripts,
one link to the MAIN.html page that holds the site
another link to macromedia to download the flash mx plugin]
index_noflash.html
[this page has a link to macromedia with an explaination about the flash player. you would only see this page if you have flash but not the right plugin.]
MAIN.html
[this page uses a flash 6 command inside an if action that will load the main flash movie inside a movie clip
now if the user plugin doesn't execute this command then the page gets redirected to index_noflash.html.
HERE IS THE SCRIPT I AM USING IN THE MAIN.HTML
var detect;
this.createEmptyMovieClip("main", 0);
if (detect=true) {
main.loadMovie("MAIN.swf");
} else {
getURL("index_noflash.html", "_self");
}
MY QUESTION
is this script right?
someone on windows 2000/ ie6/ flash5 could not see anything.
can we improve the script?
or do i need to use the great but complicated moock way.
jesse and all you great guys, please help me with this.
thank you
Pixel Perfect Flash... Trying To Achieve It.
Ok, here's the deal. I've created the beginnings of a portfolio for a client. I _was_ using 1 pixel thick lines (pencil tool) to outline things, and I was running into the problem of random corner pixels just disappearing, so I switched over to the (I thought) trusty method of a 1 pixel thick rectangle. I redid the whole menu interface with these rectangles as lines, and got it to pixel perfect within the embedded menu movie. Unfortunately, when I render the whole thing out to swf, those lines get a bit slimmer here and there.
I'm wondering what the heck is going on here. It's extremely frustrating to go to such lengths and not be able to get the results I'm looking for. I'm sure flash can do it. Can someone show me how, and explain why it's not working now?
My other problem is a simpler one. I have imported some text from photoshop as PNGs to use in the tabs, and they look great, until I convert them to symbols, then they corrupt enought to be annoying and unacceptable.
Can someone PLEASE take a look at the swf and fla I have put up? The web address is www.lightbulbhead.net/flash
chigasakigaijin
Pixel Perfect Flash...why Won't It Happen?
Ok, here's the deal. I've created the beginnings of a portfolio for a client. I _was_ using 1 pixel thick lines (pencil tool) to outline things, and I was running into the problem of random corner pixels just disappearing, so I switched over to the (I thought) trusty method of a 1 pixel thick rectangle. I redid the whole menu interface with these rectangles as lines, and got it to pixel perfect within the embedded menu movie. Unfortunately, when I render the whole thing out to swf, those lines get a bit slimmer here and there.
I'm wondering what the heck is going on here. It's extremely frustrating to go to such lengths and not be able to get the results I'm looking for. I'm sure flash can do it. Can someone show me how, and explain why it's not working now?
My other problem is a simpler one. I have imported some text from photoshop as PNGs to use in the tabs, and they look great, until I convert them to symbols, then they corrupt enought to be annoying and unacceptable.
Can someone PLEASE take a look at the swf and fla I have put up? The web address is www.lightbulbhead.net/flash
chigasakigaijin
(This message was previously posted, but I didn't get all the answers I needed...sorry for the repeat post)
Perfect Sound Looping? (Flash 5)
how do we make a music loop perfectly? is there a quality to change or something? Each time I try there's a blank before the next loop. You know what I mean?
Can't Get A Perfect Loopable Sound Into Flash
hey all,
having trouble making loopable sounds in Flash... like mp3 format always adds a few microseconds of 'silent noise' padding (like a perfect horizontal line of sound) after you export from any prog, which ruins any clips that are being looped from exactly the start to end, like a short music loop.
so i tried .wav since it doesnt add that, but this seemed unsupported programmatically in flash. i am not sure what to do...
i dont want to make the loopable mp3 very long instead of looping it, as it seems like thats a hack thats not scalable. and Flash developers make games with these kinda effects all the time right, so maybe someone has a solution?
this is the loop from a song:
http://electrotonik.com/temp/loop1.mp3
if loop it, pauses for a small sec, no way to re-edit it, since as i said, mp3s always add a lil space as my research tells me.
Any ideas guys?
here is simple code for looping the clip
ActionScript Code:
var loopChannel:SoundChannel;
var loopSound:URLRequest = new URLRequest("loop1a.mp3");
var loop:Sound = new Sound(loopSound);
loop.addEventListener(Event.COMPLETE, completeHandler);
function completeHandler(event:Event):void {
//trace('start intro');
gotoAndPlay(2);//at frame 2 intro clip plays, and at frame 50, i start the loop.play(), so from there on, it loops over and over, but with small 1sec delay each time
}
Perfect Sound Loops In Flash?
i'm using the loadSound command to bring in an external mp3 and although the file itself is a perfect loop, flash doesn't seem to like playing it back as such using the s.start (0, 5) tag. any suggestions on how to get perfect loops?
cheers
Making Flash Fit Perfect On Browser Window
Hello everyone!
Here is what I want to do.
I want my movie on export to fit exactly the browser window.
I tried 100% dimensions,with all the scale settings.
No luck I'm always getting this 20 pixells( approximatly) blank all around.
Is there a way to have my movie fit exactly to the bondaries of a browser window and how do I do this?
I thank all who will take the time to answer.
Flash Over Menu In Firefox Issue. Looks Perfect In IE.
have the Opencube Menu system above the flash application. It works in IE, but in Firefox, the menu dropdown items appear behind the Flash.
I have tried both:
<param name="wmode" value="transparent">
and
a negative z-index on a div surrounding the flash app.
any other suggestions???
also, the page is being served up by Lotus Notes
The Flash App was created using version 8.
Expandable Flash Banner Issue In Firefox And Safari, Perfect In IE
I put together a little expanding banner, on roll over expand, on roll out contract, and it works great in IE 6 & 7, but in Firefox and Safari, the flash content is fully expanded and it wont let you use the html content below it, since its on top, but with this same code below, it works like a charm in IE.
Any ideas on how to make it work also with Firefox and IE ?
My AS2 Code:
ActionScript Code:
Stage.scaleMode = "noScale";
Stage.align = "TL";
import com.mosesSupposes.fuse.*;
ZigoEngine.register(Fuse,PennerEasing);
function moveMask():Void{
getURL("javascript:expand('flashid');");
var f:Fuse = new Fuse();
f.push({target:masker, width:450, easing:"easeOutBounce"});
f.start();
}
function outMask():Void{
var f:Fuse = new Fuse();
f.push({target:masker, width:190, easing:"easeOutBounce"});
f.start();
if(masker.width == 190){
getURL("javascript:collapse('flashid');");
}
}
masker.onRollOver = moveMask;
masker.onRollOut = masker.onReleaseOutside = outMask;
My Javascript code:
Code:
function expand(divid){
document.getElementById(divid).style.clip = "rect(0px 450px 300px 0px)";
}
function collapse(divid){
document.getElementById(divid).style.clip = "rect(0px 190px 300px 0px)";
}
function makeBanner(){
document.write('<object data="publicidad/banner.swf" width="100%" height="300" type="application/x-shockwave-flash">');
document.write('<param name="movie" value="publicidad/banner.swf" />');
document.write('<param name="quality" value="high" />
');
document.write('<param name="wmode" value="transparent" />');
document.write('<embed src="publicidad/banner.swf" quality="high" width="100%" height="300" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
');
document.write('</object>');
}
My HTML Code:
Code:
<div style="visibility: visible; position: relative; width: 190px; height: 300px; z-index: 12;">
<div id="flashid" style="width: 450px; height: 300px; z-index: 11; position: absolute; overflow: hidden;">
<script type="text/javascript">makeBanner();</script>
</div>
</div>
Hopefully some one can point what I've done wrong to make it work properly in FF and Safari.
Any help greatly appreciated. Thanks!
Allen
Problem With Flash 6 (perfect In Flash 5)
I downloaded this elastic actionscript effect :
http://www.flashkit.com/movies/Scrip...5546/index.php
And it works perfectly if I export the clip into flash 5.
But in flash 6, it does not work. if you hit one clip, then all clip will be moved (elasticing).
Anyone know how to fix this for flash 6 ?
It's very simple codes however :
First set this function prototype in first frame :
Movieclip.prototype.elasticScale = function(target, accel, convert) {
xScale = xScale * accel + (target - this._xscale) * convert
yScale = yScale * accel + (target - this._yscale) * convert
this._xscale += xScale
this._yscale += yScale
}
and in each movie clip, you shoud set
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
elasticScale(150, 0.9, 0.1)
} else {
elasticScale(100, 0.9, 0.1)
}
}
Does The "perfect" Flash/php Form Even Exist?
Hi Everyone
I have been looking around for a good stable flash form on the internet for a long time. I have found some good resources, but all or most of the forms lack something another has.
Where can I find a form that
(a) does NOT use built-in UI components, but where you can make your own assets, like a drop-down menu or a radio button AND that is easily customisable to cater for the look of your website/design
(b) offers user input validation, and gives an error message if wrong information is parsed...IMMEDIATELY after a text field is left empty, before even pressing a send/submit button
(c) utilises automatic tab indexes
(d) minimises mouse movements, for a better user experience
(e) offers security against spam
(f) sends a custom thank-you message to the visitor
(g) has good actionscript as a foundation too...like stage class, and contextmenuitem class, maybe even the tween class, for somthing fresh
Please help. Let us make the perfect form please because everybody is looking for it...or is this perfect form just an illusion?
This Is Perfect
Just what I need!
I've been doing lessons and tutorials (like the ones that come with Flash MX) that seem to assume you already know where everything is and can easily find it.
Someone pointed me in the direction of THIS website today, and most of the tutorials I looked at seem basic enough for me.
I need PICTURES and where something is! Not just "go to_________ and set this" etc.
I did a button tutorial and actually got it to work,(2nd try) but had to import sound from my Coffee Cup html editor- which went into the FLASH library, and I found it and dragged it onto the work area, with the frame I wanted it in selected.
Amazingly it worked! I had little choice of sounds and picked on that sounds like a cash register. One I could have picked was a cow MOO.
Either I couldn't figure out where to find the sounds in FLASH (going by the tutorial, which even had pictures) or, the tut was for another version of FLASH?
I've noticed this a few times, something won't be where the tutorial says, or will be a little bit different. Which usually stops me, but I find another to try and will get back to it.
One thing that stumped me in one, that seemed to have good, clear directions was in one place it was adding a button (to stop the action) and had a script to copy/paste. It said "add the script to (one of) the frames". Without any clue as to HOW one adds a script?
Since then I have seen clues about this, so maybe either adding a keyframe and right clicking (for options and a place to paste the script) or just right clicking and finding options?
Plan to go back and try it again at some point.
But that's what I mean about the tutorials, some of them will say "select a certain frame and add the sciript to it". (for example) like how on earth do you do THAT?
I look in all the tools and right click everything I can think of and look in FLASH HELP (Index) etc.
Some things I have worked out on my own. Some I gave up on for now.
I've been interested in this for a long time, but haven't really gotten into learning it till last week. And I think it's kind of addictive
I've been sitting up till 1-2 AM (like I did when I was learning to make webpages, finding all the ways it didn't work) Just trying to get something to WORK!
I got a ball to bounce across the screen. And a button to click. And also a ball to go around a word, but it does't go behind it on one side. I got confused with that, too. I think I have the idea, though. You have to delete the frames (on one of the layers)so the ball does't SHOW when it goes over that part.
I don't know how much I'm learning but I'm starting to feel a little smarter
And it's such a great feeling to finally get something to work!
One more question (for now) when it's done, I save it and publish it- do I have to copy all the layers onto one? (ONE tutorial I did said this at the end) THEN save it and click PUBLISH.
When I got to my html editor to upload it, there are 3 files with the name of the flash. One is the html one, one is the fla file and I don't know what the other is. Maybe the image in some way?
I have discovered all 3 have to be uploaded for it to show on the webpage.
So, I guess that answers my own question about that.
I have to get off this computer and get something else done, and see if I can still walk.
~ Carrie
The Perfect Fade
praystation has the perfect fade but i have tried many ways to get this...scripting etc. does anyone know how......
Help With The Perfect Menu
I've been searching for just the right nav for a site I'm building for a non-profit free of charge. Bit of a flash newbie so flashkit has been great. I came across my ideal menu at www.weca.net Does anyone know if they did this in-house or if an agency created it? Anyone have a similar menu laying around?
Please e-mail if you can help! Thanks! kp003a4345@blueyonder.co.uk
Ummm... Its Not Perfect
http://www.delaforcephotoworks.com/weddings.html
btw 56k ers please be aware that there is a full song to be loaded... may take some time!
thats what i have, it works great, but its not exactly how i want it
currently everything loads into a container_mc and the slideing pannel is ontop of that in another layer... but when you click the buttons below just for a split second you see the background miage... how do i get the slider to go over the image 1st and then change . that way it allows a smooth flow between images
Making Perfect Gif
i want make perfect gif file from my swf.......
Bcause currently i am not not getting gif file which is animating as
good as swf and also good colors too.......
what should be the properties in publish setting for perfect gif file
The Perfect Preloader?
Is it possible to really preload the entire movie?
I ask this because some of the stuff I am doing, the preloader will completely load, play for about 2 seconds and have a slight pause or seem jumpy. My file sizes range from 10k - 35k.
Does anyone know what might be causing this?
Thanks so much for your help!
/z
Perfect Setinterval?
I want a piece of code to activate every 1000 milliseconds. However, when I check with getTimer() how many seconds actually pass between activating the function, i get a lot of 1000's but also a lot of 1009's and 1050's. How can I rewrite my function here to get it perfect?
Code:
sitime = new Object();
setInterval(sitime, "interval", 1000);
sitime.interval = function() {
box2._x+=1
lasttime = marktime;
marktime = getTimer();
timepassed = marktime-lasttime;
trace(timepassed);
updateAfterEvent;
};
Picture - Not Perfect
Hi all!!
something strange is happening to my images. My image files are in movie clips and I use an easing equation in AS2 to tween them into the stage.
When I test the moving using Control - test, the images are displayed perfectly. But when I export the swf and view the movie in IE7, the images are all jagged and distorted.
Any suggestions? anyone? will be much appreciated!
Cheers!
Perfect Circles?
In the Flash IDE, is it possible to draw perfect (or at least better than the circle tool) circles? I ask because I'm applying math-based physics to an arc and it doesn't quite match up to the visuals in the background.
The Perfect Rollover
Hi, i'm not so familiar with as3 but i decided to take the step and forget as2.
I am now trying to make perfect rollovers. Not the play over on rollover and play out on rollout but play forward on rollover and play backwards on rollout.
Why? because if you have a long animation on that rollover and you go quickly over the button with your mouse the forward and backward technique is the only way to have something that doesn't skip frames.
I found some code on this forum that did almost what i wanted :
var whoami:MovieClip;
var over:Boolean;
over = undefined;
button1.addEventListener(MouseEvent.MOUSE_OVER,ove rHandler);
button1.addEventListener(MouseEvent.MOUSE_OUT, outHandler);
button2.addEventListener(MouseEvent.MOUSE_OVER,ove rHandler);
button2.addEventListener(MouseEvent.MOUSE_OUT, outHandler);
button3.addEventListener(MouseEvent.MOUSE_OVER,ove rHandler);
button3.addEventListener(MouseEvent.MOUSE_OUT, outHandler);
button4.addEventListener(MouseEvent.MOUSE_OVER,ove rHandler);
button4.addEventListener(MouseEvent.MOUSE_OUT, outHandler);
function overHandler(e:MouseEvent):void {
over = true;
whoami = MovieClip(e.currentTarget);
whoami.addEventListener(Event.ENTER_FRAME, playForwards);
if (over) {
whoami.dispatchEvent(new Event("overEvent",true, false));
}
}
function outHandler(e:MouseEvent):void {
over = false;
whoami = MovieClip(e.currentTarget);
whoami.addEventListener(Event.ENTER_FRAME, playBackwards);
}
function playForwards(e:Event):void {
if (over == true) {
whoami.nextFrame();
}
}
function playBackwards(e:Event):void {
if (over==false) {
whoami.prevFrame();
}
I liked that code very much because the same functions are used for all the buttons (overHandler,outHandler,playForwards and playBackwards) but it had a bug : when you go quickly from one button to the other, the animation doesn't have time to finish and the previous button the mouse was on stops in a position between the over and out state.
I fixed this making different functions for each button and i'm quite happy with that but now the code is much longer and if there are more buttons it will get even longer :
var over1:Boolean;
var over2:Boolean;
var over3:Boolean;
var over4:Boolean;
over1 = undefined;
over2 = undefined;
over3 = undefined;
over4 = undefined;
button1.addEventListener(MouseEvent.MOUSE_OVER,ove rHandler1);
button1.addEventListener(MouseEvent.MOUSE_OUT, outHandler1);
button2.addEventListener(MouseEvent.MOUSE_OVER,ove rHandler2);
button2.addEventListener(MouseEvent.MOUSE_OUT, outHandler2);
button3.addEventListener(MouseEvent.MOUSE_OVER,ove rHandler3);
button3.addEventListener(MouseEvent.MOUSE_OUT, outHandler3);
button4.addEventListener(MouseEvent.MOUSE_OVER,ove rHandler4);
button4.addEventListener(MouseEvent.MOUSE_OUT, outHandler4);
function overHandler1(e:MouseEvent):void {
over1 = true;
button1.addEventListener(Event.ENTER_FRAME, playForwards1);
if (over1) {
button1.dispatchEvent(new Event("overEvent",true, false));
}
}
function outHandler1(e:MouseEvent):void {
over1 = false;
button1.addEventListener(Event.ENTER_FRAME, playBackwards1);
}
function playForwards1(e:Event):void {
if (over1 == true) {
button1.nextFrame();
}
}
function playBackwards1(e:Event):void {
if (over1==false) {
button1.prevFrame();
}
}
function overHandler2(e:MouseEvent):void {
over2 = true;
button1.addEventListener(Event.ENTER_FRAME, playForwards2);
if (over2) {
button2.dispatchEvent(new Event("overEvent",true, false));
}
}
function outHandler2(e:MouseEvent):void {
over2 = false;
button2.addEventListener(Event.ENTER_FRAME, playBackwards2);
}
function playForwards2(e:Event):void {
if (over2 == true) {
button2.nextFrame();
}
}
function playBackwards2(e:Event):void {
if (over2==false) {
button2.prevFrame();
}
}
function overHandler3(e:MouseEvent):void {
over3 = true;
button3.addEventListener(Event.ENTER_FRAME, playForwards3);
if (over3) {
button3.dispatchEvent(new Event("overEvent",true, false));
}
}
function outHandler3(e:MouseEvent):void {
over3 = false;
button3.addEventListener(Event.ENTER_FRAME, playBackwards3);
}
function playForwards3(e:Event):void {
if (over3 == true) {
button3.nextFrame();
}
}
function playBackwards3(e:Event):void {
if (over3==false) {
button3.prevFrame();
}
}
function overHandler4(e:MouseEvent):void {
over4 = true;
button4.addEventListener(Event.ENTER_FRAME, playForwards4);
if (over4) {
button4.dispatchEvent(new Event("overEvent",true, false));
}
}
function outHandler4(e:MouseEvent):void {
over4 = false;
button4.addEventListener(Event.ENTER_FRAME, playBackwards4);
}
function playForwards4(e:Event):void {
if (over4 == true) {
button4.nextFrame();
}
}
function playBackwards4(e:Event):void {
if (over4==false) {
button4.prevFrame();
}
}
does anybody have an idea to make this code shorter, maybe by using something similar to the previous code but still fixing the bug. I really need to find a way to make a lot of buttons without writing tons of code.
Another thing i'd like is to have a hand cursor on those buttons, i know i can place a transparent button inside the movie clip but i don't like that, i tried to use useHandCursor but couldn't get it to work.
Picture Perfect
Hey guys...real simple question here!
IN the "cool sites" section there's this post...
http://www.purdesign.ca/
If you enter the flash site you'll notice the big,bright,beautiful background pics
of plants (cool idea)
My question is ...What is the best way to achieve such great looking pictures in Flash?
I've tried photoshop "save for web" gif,png format and jpeg. When imported into flash my pics lose thier vibrance and look "washed"
Anybody?
Perfect Timing
after much deliberation over my goldfish, I'm lost!
nothing seems to work!?
Just for a test run, I have 2 MC's, 1 is of a bland fish swimming happily, and one is is the same fish, fast asleep... I enter the code,
Code:
onClipEvent (enterFrame) {
time=new Date();
seconds = time.getSeconds()
minutes = time.getMinutes()
hours = time.getHours()
if (time.hours >13) {
gotoAndPlay(2);
}
}
in frame 1... and
Code:
onClipEvent (enterFrame) {
time=new Date();
seconds = time.getSeconds()
minutes = time.getMinutes()
hours = time.getHours()
if (time.hours >14) {
gotoAndPlay(1);
}
}
before even testing, I checked for errors, and the output gave me...
Quote:
**Error** Scene=Scene 1, layer=actions, frame=1:Line 2: Clip events are permitted only for movie clip instances
onClipEvent (enterFrame) {
Total ActionScript Errors: 1 Reported Errors: 1
which threw me off course, So I tried removing the onClipEvent, and well the output was fine, but it was 13:20 and the fish was still awake!?
OK, question time
1) Why wont my fish go to sleep?... (i.e fix my code!!!)
2) At the moment he goes to sleep after 1PM (13 hours)... but what if I want him to sleep at say 1:35 (13 hours, 35 minutes) how would that fit in the code??
THANKS!
Perfect Circle
After taking Senoculars (wonderful) trig tutorial, I started messing with trig, and came up with a method to make a perfect circle using ActionScript. Check it out!
The Old Perfect Fade
I'm using the perfect fade for a menu. It's not fading in, it's sliding it. On the rollover, the menu slides out, then the buttons appear at the end.
Everything works fine until I rollover the buttons. They frantically blink on the Rollover. It's almost like the mc is trying to go to the prevFrame but can't.
Anyone know of anyway to make this stop?
The Perfect Preloader
http://www.versusmediagroup.com/kirupa/preloader/
Okay first off I am not going to even try to take credit for this great preloader. I got it from the Macromedia Developers site and its free there but I have been looking for one that had this much freedom and here it is.
When you open the '.fla' file you will see, in the library, a movie clip called progress_mc. The great thing about this preloader is that you can put whatever animation you want and it will play it as the preloader and it will slow it down as needed. It also playes the entire movie clip so you see it smoothly go all the way threw your animation.
Again i did not create this code here is a link to who did...write him and tell him how much you love him!
http://www.macromedia.com/devnet/mx/...preloader.html
Perfect Background
This is driving me crazy. Im doin a FBF and I wanna have a 100% picture in the background. Th problem is, when I scale the flash I want the picture to scale "untouched" with it.
Good examples:
http://www.diesel.com/
http://www.gskinner.com/site2_5/
Ok example
http://www.setvariable.com/elastic/
NO GOOD EXAMPLES:
http://www.secondstory.com/
http://www.revolvercreative.com/flash.html
can somebody PLEASE help me - Im goin crazy!!!
What Is The Perfect Size?
what is the perfect size i should work with? im not too fimilar about sizes and stuff this is going to be for a webpage. Should i be working with a 800x600 template ? and if so does that mean i just set it as 800 x 600 on flash or does it need to be bigger. Kinda confused..like what is the header for the size of this site now? thats the size i need
Almost Perfect Menu
So I made this perfect menu (at least for me ) it does just what I need:
it can be totally configured with XML, it's horizontal and I can define for each button it's size and position. Even I figured out how to do a separation item.
May I say this is my first script?! Well, the first I do heavy modifications, since it's based on the "squirrell finder".
BUT I just can't make it do the link . I think I'm close, cuase it does open a window, but it comes up that nasty "undefined".
I have burned my eyes agains't the monitor doing this thing, and I'm proud, cause I learned a lot, but when it comes to vars... I'm stupid.
Please help me out. It's late, I need to sleep and I just remembered I have a conference call with a client tomorrow morning (thank god is nor related to this)... and I need to get this done.
I just noticed the link thingy work on a iexplorer window, but it doesn't when I open just the swf.... why is that? O.o?
P.S: if you notice any other wrong thing on this script, please tell, I wan't to learn. Also feel free to use it anywhere you want or do whatever you want with this.
How To Do A Perfect Load Of A GIF ?
i have a GIF and i want it to be loaded dymanicly from XML with
Code:
loadMovie("url", loader_MC);
there are 2 issues:
the GIF isn't playing. my GIF has 4 stages (frames) but when loaded, it stays only on the first one. i need the GIF loaded and begin looping all 4 frames... what's happeing ?
i want the loader_MC to be resized everytime i resize my Stage. i did this:
Code:
var myListener:Object = new Object ();
myListener.onResize = function () {
loader_MC._width = Stage.width;
loader_MC._height = Stage.height;};
Stage.addListener (myListener);
The GIF appears distorted, turned upside down and the _x axis very wrong and out of page... what's happening, again?
thanks a lot
Easing But Not Perfect
i add ease for my MC but it doesn't work elasicly. so what is the problem?
here is my code.
ActionScript Code:
cir.onEnterFrame = function(){ this._x = this._x + (_root._xmouse - this._x) * .2; this._y = this._y + (_root._ymouse - this._y) * .2; }
and here is the i copied from onesome's AS.
ActionScript Code:
cir.onEnterFrame=function(){ if (_root._xmouse == this._x){ this._x += _root._xmouse; this._y += _root._ymouse; isFollowing = true; }else if (isFollowing){ speedx = (_root._xmouse - last_xmouse) * .8; speedy = (_root._ymouse - last_ymouse) * .8; this._x = _root._xmouse + speedx; this._y = _root._ymouse + speedy; isFollowing = false; }else{ speedx += (_root._xmouse - this._x) * .8; speedy += (_root._ymouse - this._y) * .8; speedx *= .7; speedy *= .7; this._x += speedx; this._y += speedy; } last_xmouse = _root._xmouse; last_ymouse = _root._ymouse;}
but i think this one is so old. and i tried alot.
but i cann't get. any suggestions?
The Perfect Sounds
Hey.
Most people will argue that the final touch needed to make your site perfect, after you've managed to make it visually appealing that is...
is to make / get / apply the sound effects that make your site stand out.
In my opinion this applies to most everything that has to do with interactivity. Users don't only want to see the effect of their interactions but also hear the effects (especially important in any type of game)...
I dont want to even try to count the hours ive spent on trying to find the perfect sound (given that im not that good at creating them myself).
Most of the sound effects given out as 'Free' are crap and basically the same sound as the next 847345 sites offer...
I was hoping that we... my fellow kirupians, could device the ultimate list to Free or VERY cheap sound libraries (the good ones atleast)...
basically give me you links so i dont have to search so damn much!
(preferably with short description)
Chiao
//VoS
Perfect Circle
After taking Senoculars (wonderful) trig tutorial, I started messing with trig, and came up with a method to make a perfect circle using ActionScript. Check it out!
Looking...4 A Perfect Host
no idea where to post this so sorry its most likely in the wonrg place but i'm looking for a host where i can have a custom url, at least one e-mail, no ads, and enough space to handle a complete flash website. the cheaper the better. thanks
The Old Perfect Fade
I'm using the perfect fade for a menu. It's not fading in, it's sliding it. On the rollover, the menu slides out, then the buttons appear at the end.
Everything works fine until I rollover the buttons. They frantically blink on the Rollover. It's almost like the mc is trying to go to the prevFrame but can't.
Anyone know of anyway to make this stop?
Perfect Curves....
Last edited by Kindsage : 2004-09-06 at 04:52.
Friends,
i'd like to know a simple way to create a perfect curving arc between any two points, provided their x and y coordinates are known. By a perfect curving arc, i mean that a curve which bends nicely in the middle and looks proportionate.
I belive i can use the curveTo method to do it and i've tried, but the PCA remains elusive. I'm using Flash MX.
(Need i say, that i'm pretty bad at maths....and this is like really urgent...)
Any help will be much appreciated.
Thanks a lot,
FF
Perfect Navagation
Does anyone have what they consider to be a perfect navagation
I understand there are many ways to code a nav, but I have never been sure if i have been doing it right.
Main Obstacle Ive run into.
Fast mouseovers may funkify the nav. Where if you mouseOver fast you may trigger onStates that dont go back to offStates. Im guessing if you go to fast flash doesnt detect that you left the button all the time.
And as far as a "perfect" nav, i was thinking...
Mouseover would trigger some simple animation. say a fade of color (fade opposed to a 1 frame hard change)
MouseOut would reverse this action (so it wouldnt just snap back to the original color, it would fade back)
OnState
Ive done all of these in the past through different means but i know some of my code is really old.
Also, ive yet to beat the fast mouseover dilema.
I actually just found this forum. I used to post on werehere and am glad to see that it looks like their is a strong alternate
Perfect Size And Resoultion For The Web?
what is the ideal resolution/size to set my flash movie stage at for an flash web page, also what sort of % works best when combining html and flash? i think 1% HTML and 99% flash works for me (but then again im crap @ HTML)
Wanna See The Perfect Preloader?
Me too
Okay, look, as long as you're here, I have a great preloader...sorta....
What I mean is that it does everything I want it too, and works good when used in a scene in the same movie it is loading, but it's not working so good when I load it into an MC, and use it to preload the main movie.
Don't get me wrong--it works, but it is very inconsistent, and normally never shows up until about 30% of the content has already loaded. That might not sound like much, but it's 1/3 of the content. Not really a good preloader, in my opinion.
Anyway, I figure it must be something in the script itself, since I tested it by creating an MC with nothing in it but a white rectangle and a "load movie" action in frame 1 to load the preloader into the MC. Well, I can see the rectangle flash for a second, so I know that the movie has loaded (i.e, replaced it), but it takes a minimum of 10 seconds for the preloader to actually show up after that, after the rectangle has disappeared, and the preloader movie is only 1k.
So, does anyone know why this is happening, and how I can get it to start preloading within the first 10% of the movie, which would be acceptable. However, I'd like to know the secret of getting it to kick in right away, if anyone knows, because I'd like to use it with smaller movies of around 50k or so. Not much use in it though, if 15 or 20k has already loaded before it shows up.
Here is the script I'm using:
totalBytes = Math.round((_root.getBytesTotal())/1024*1000);
loadedBytes = Math.round((_root.getBytesLoaded())/1024*1000);
percentBytes = Math.round((loadedBytes/totalBytes)*100);
if (loadedBytes==totalBytes) {
gotoAndPlay ("Scene 1", 1);
}
The above is placed in frame 1, of the main timeline, and in frame 2 is:
gotoAndPlay (1);
Then, I have a bar percentage loader with this in frame 1:
this._xscale = ((_root.getBytesLoaded() / _root.getBytesTotal())*100);
And this in frame 2:
gotoAndPlay(1);
That's it, and it works great, when it works great, but it isn't that often. Admitedly, I have modified this script several times, but I can't see any flaw in the logic, or in the construction of the movie.
Any ideas? Anybody?
Who knows the secret to the perfect preloader, all purpose preloader? That is to say, without me having to change my entire script. In other words, is there a better way to construct the movie with the above script, or any additional statements that should be included?
There was once an else statement:
if (loadedBytes==totalBytes) {
gotoAndPlay ("Scene 1", 1);
}else {
gotoAndPlay(2);
}
But that didn't seem to work as well as what I have now, where I replaced it with a frame loop instead.
James
He is risen!!!
A Perfect Circle By AS (This Is A Question Only)
How to draw a perfect circle by curveTo? I looked at the example in the MX reference but it is not that perfect. How, actually, to calculate the coordinates of controlX,Y in respect to the coordinates of anchorX, Y can draw a perfect circle just like drawing one by using drawing tools?
Perfect Drop Down Menus?
I wanna make a perfectly perfect drop down menu...the only problem I'm facing is the part where the dropped menu list disappears or goes back once the mouse is outside the hit area. I tried many ways but none gave the accurate result...just for reference, I've found an example of the 'perfect' menu...if anyone knows how to make it, then please explain or post up and .fla....a simple example that is....thanks...
Reference:
http://www.daihatsu.co.uk/daihatsu/frameset.do
Perfect Pixel Fonts....
The quick fix is to publish the movie at LOW Quality. Alternatively......
In our previous attempts, the text appeared perfect for static text, but not for dynamic text boxes( in particular with embedded pixel fonts ).
I didn't know if we could solve the problem because my dynamic text field was burried deep within nested movieclips, and I wasn't sure whether local or global positioning of the text field needed to sit on exact pixel coordinates( whole numbers ), or if the local and global positioning of all nested movieclips needed to sit on exact pixel coords( also ).
Also, I had set the autoSize property of the text field to "center", which would probably result in the _x value of the text field becoming a floating-point number.
On top of this, I was scaling some of the holding movieclips, and I know blurred text and graphics can result from the use of tweens.
It would appear that the local positioning( or when you edit the text field 'through' the library ) of the text field needs to be exact pixels. A holding movieclip that is a direct parent of the text field, also needs it's local position placed on exact pixels. When trimming some of the coords at design time( I did this by just deleting the floating-point part of the _x and _y properties, in the 'Properties' panel ), I noticed that Flash automagically would sometimes add 0.3% to the horiztontal scale( even though I had the horizontal and verticle scale 'Constrained' ). I then removed the extra 0.3%.
Aswell as making these tweaks at design time in the development environment, it was also necessary to tweak the positioning using code that would be run at run-time ( as the User Interface was being built ).
After any point that I altered the text field, or a parent movieclip, I rounded it's position, e.g.:
mcMainMenu_Title.title.autoSize = "center";
mcMainMenu_Title.title._x = Math.round( mcMainMenu_Title.title._x );
NOTE: use of Math.round() may not work properly if you try to pass an experssion
I would be interested to know if others have come across this problem, and if they can use our solution to solve it.
Credit : kode.co.uk
[Help]'Perfect' Artbased HitTest...
Hey,
I realy need help in making the perfect artbased hitTest. I wan't to do something with my worm's destructably ground engine. Because the ground can get any shape I'm kinda screwed in getting a decent hitTest working.
I´ve already tried this, but everytime there is just 1 thing that screws it up so I had to remove it.
Does anyone has some good advices/samples for me?
SaphuA
PS: Yes, I did read the ReadMe sticky
Menu Headake Can't Seem To Get It Perfect.
howdy FK, I have this problem with my menu where no matter when im getting to the end of it one of the buttons doesnt work.
download it, give it a try.
im sure its a very simple problem, im just lost!
thanks
|