The 4th Circle Hates Me
4th circle "contact" won't keep in line...what is wrong with my script?
you can see the swf here:
http://www.eight.nl/test/circletest.swf
my script is
Code: onClipEvent (load) { navigation = ["info", "divisies", "agenda", "contact"]; max = navigation.length; i = 0; function Circle() { Radius = 200; Speed = 3; for (i=0; i<max; i++) { _root.attachMovie("Box", "Box"+i, i); var targ = _root["Box"+i]; targ.attachMovie(navigation[ i ], "mc"+navigation[ i ], 1); targ.Rotate = i*(360/max); targ.onEnterFrame = function() { xpos = (targ._x - _xmouse); if (xpos<=0) { this.Rotate +=Speed } else { this.Rotate -= Speed } this._x = 380+(Math.cos(this.Rotate*(Math.PI/180))*Radius); this._y = 280+(Math.sin(this.Rotate*(Math.PI/180))*Radius); }; } } Circle(); } does anyone know what i'm doing wrong in my script?
(problems: contact doesnt keep in line, when mouse is held still the rotation jerks)
FlashKit > Flash Help > Flash ActionScript
Posted on: 07-08-2002, 04:24 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Frame Independent Circle To Circle Detection
I am having trouble trying to get my head round this part of programming.
I know it is used for detection between movieclips such as snooker balls. I just cant get my head around it and it is driving me nuts!
Does anyone know of any good tutorials that I can use to solve this problem?
Thanks
The Toffee
Something Out There Hates Me...
Do you ever have one of those days where nothing goes right?
I need help and I need it bad, and nothing seems to be working...
I have 4 buttons inside of a movie clip. the first button goes to frame 1 in the first scenes ( I have two scenes ) The code I am using is
on (release) {
tellTarget ("../") {
gotoAndPlay("Scene 1", 1);
}
}
for the second button I want it to do the same but go to the second scene frame 1 but its not. I figured if I used this script it would work...
on (release) {
tellTarget ("../") {
gotoAndPlay("Scene 2", 1);
}
}
....but it doesn't....
someone suggested using labels but i dont know how, please help me...
Flash Hates Me
Alright I have the following code in a button(except the things in parenthesis):
on (release) {
if (_root.sub_open == 1) {
_root.submenu(); (a function call)
_root.new_bg = 2; (setting a variable)
_root.slider.gotoAndPlay(2);
_root.gotoAndStop(13);
gotoAndPlay (5);
} else {
_root.submenu(); (function call)
}
}
now, inteas of going-to-and-stopping frame 13 in _root, it's starting the whole movie over. Frame 13 in NOT the last frame in the movie, and there is a stop(); action on it... any ideas?
Charlie
MY PRELOADER HATES ME
I have a simple problem (not to me) but my thing is that I have a flash movie that is 140kb and I have placed a preload animation on a seperate scene....when I check it online, the preloader does not work and the movie takes its own sweet time to load. Can anyone tell me what I am doing wrong??
Scene 1 of my movie is called "portfolio_movie"
Scene 2 of my movie is called "preload"
This is my code for my preloader:
Frame 1
ifFrameLoaded ("portfolio_movie", 50) {
}
gotoAndPlay ("portfolio_movie", 1);
Frame 2
gotoAndPlay ("preload", 1);
Please help if you can.........THANX!
MY PRELOADER HATES ME HeLp
I have my preloader set on a seperate scene. when I try and "TEST SCENE" flash gives me this error message:
Error creating flash movie file.
Be sure the destination file is not locked or on a locked drive. Also check to see that the filename is not too long.
The file name is simply "introduction"....and I don't know what the h#$$ a destination file is and why it would be locked???
Pleaze HeLp!!
FRONTPAGE HATES ME
ok go here http://dycapz.tripod.com
then right click in the flash window
- normally you should be able to do this anywhere on the screen and get the flash options of play back forward or whatever, BUT HERE, frontpage has done something weird and not only does the right click work on letters but it doesn't respond to certain actionscripts or recognize that i just want it to embed the flash file. I think frontpage has tried to turn the flash into its own script and turned into something strange.
ANYONE HAVE BETTER THEORIES?
OR HELP?
I DON' want people to watch the loading sign forever
LOADMOVIE Hates Me.
Hi everyone, I was wondering if you could help me (hopefully, I'm just doing something stupid here). A lot of my stuff is still under construction so ignore the mess.
I am ATTEMPTING to use the "loadmovie" function but with not much success. On the following site:
http://www.utilitybelt.net/JSA/FLASHproblem/
main movie:
JSA.swf
Movies loading into it:
GLmovie.swf
movie02.swf
When you click on JSA.swf you will see the movie load. When it's finished, there are buttons at the bottom of the page. The first two buttons will load "GLmovie.swf"
on (release) {
loadMovie ("GLmovie.swf", "CenterStage");
}
and the third loads "movie02.swf".
on (release) {
loadMovie ("movie02.swf", "CenterStage");
}
The large "screen" in the middle of the page has been converted to a movie object and named "CenterStage". The problem I am having is that the new movies don't load into this target? Can anyone take a look at this and see if they know whats wrong?
Thanks for the help!
My Script Hates Me
Could someone check out my script and fix it up?
either email me or post your email on the post please. I'll send you the .fla file.
Thanks.
Flash Hates Me >_>
i check, i check, i check.....
what is wrong with this code?
code:
i=0;
while(i<20){
duplicateMovieClip (_root.3dpoint, "3dpoint"+i, i);
i++;
}
here is the error message
Quote:
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 3: ')' or ',' expected
duplicateMovieClip (_root.3dpoint, "3dpoint"+i, i);
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 5: Unexpected '}' encountered
}
what...just WAHT IS WRONG WITH FLASH?
for the curious i am making a 3d engine :-D
Browser Hates PHP?
Here's one I've never met before.
So I have a flash movie which works with a PHP file to import data from a text file.
I set up the usual loop which waits for a variable from the PHP file to tell it to go ahead so Flash knows all PHP data is loaded.
The problem is this, when I test the flash in the player or when I open the SWF file, all works fine. But if I open the SWF in the HTML file which Flash produces, the movie never passes the "checking" loop.
Is there anything in an HTML page which could cancel out a variable passed from PHP???
My Preloader Hates Me
I have a MC of a preloader that I want to use with an animation of a load bar, the MC is 40 frames long and set to Go to and play start on the last frame.
Ive used this action script in the 1st frame of my main movie:
totalBytes = this.getBytesTotal();
loadedBytes = this.getBytesLoaded();
remainingBytes = totalBytes - loadedBytes
percentDone = int((loadedBytes/totalBytes)*100);
bar.gotoAndStop(percentDone);
if (_framesloaded == _totalframes) {
gotoAndPlay(3);
}
and this script in the second:
gotoAndPlay(1);
With my main content on the 3rd frame and my Preloader MC on the 1st
I managed to preview the loader at sum stage and when I saw it the animation of the bar didn't loop, It was Jerky (which I'm sure is just a frame rate issue) and now i can't preview it at all.
I've attached the fla. if you wanna take a look.
Can ayone help?
Cheers Chris.
HitTest Hates Me.
Hello, all. I have been pulling my hair out on this one all day, so maybe someone can help.
What I am doing is setting up a dynamic image gallery with scrolling thumbnails. I have the thumbnails dynamically pulling into a empty movieclip just fine, but the hitTest action I have applied to my button to scroll the movieclip absolutley refuses to work. I get the happy little "rollover" finger like it acknowledges it's probably supposed to do something, but won't recognize anything inside the hitTest command. I am attaching the file, and you can see the problem code on the invisible movieClip placed over the "up" button (also below).
Code:
onClipEvent(enterFrame){
if(this.hitTest( _root._xmouse, _root._ymouse, false)){
trace("hit");
for (i=0;i<5;i++){
if (_root.thumbMC._y > -80)
_root.thumbMC._y--;
}
}
}
I'm doing some other things in the movie as well, but nothing that should interfere with hitTest working....I'm stumped?! Maybe I'm just missing something obvious, I dunno...??
Flash Hates My PC
This is simple enough, there are tons of things I can not do without making flash crash. Among other things, the simple act of closing an explorer window (eg: my pictures) will make it crash.
I tried other versions of flash (Flash MX, MX 2004 and 8) and they all crash the same way it must be a hardware or driver problem.
Windows XP sp2
Graphics card: ASUS ATI X800XL
Motherboard: MSI K8N NEO4-F
Processor: AMD ATHLON 64 3200+ winchester
If you have an idea, please share.
Flash Hates Me....I Think?
Ok so I had flash mx 2004 but when I loaded my website and worked on it nothing worked as in none of the text on the links showed up but when I worked on flash mx at school everything worked fine so I switched to flash mx to see if that was it and of course it wasnt any ideas, suggestions etc... lemme know I need help!!!
My Array Hates Me
I have an array that is meant to pick a number from each of the arrays and them to gether its sort of a game type application.
can some one take a look at my code and tell me why it still picks 1 and 2 even though they arent in the array!!!
please help Im desperate!!
Code:
// rnadom parts of each question
easy1 = [3,4,5,6,7,8,9,10,11,12,13,14,15,16,17];
easy2 = [3,4,5,6,7,8,9,10,11,12,13,14,15,16,17];
boxArray = [a,b,c,d];
randa= Math.ceil(Math.random()*easy1.length);
randb= Math.ceil(Math.random()*easy2.length);
//answer to the question
answer_txt.text = randa+"+"+randb+"= ?";
ans = randa+randb;
//removes from list so there cannot be any duplicates of the same answer
randArray = [-4, -3, -2, -1, 2, 3, 4, 5];
//picks answer
//--------------------------------------------------------
randans1 = Math.floor(Math.random() * randArray.length);
randLetter1 = Math.floor(Math.random() * boxArray.length);
boxArray[randLetter1].text = randArray[randans1]+ans;
boxArray.splice(randLetter1, 1);
randArray.splice(randans1, 1);
//--------------------------------------------------------
randans2 = Math.floor(Math.random() * randArray.length);
randLetter2 = Math.floor(Math.random() * boxArray.length);
boxArray[randLetter2].text = randArray[randans2]+ans;
boxArray.splice(randLetter2, 1);
randArray.splice(randans2, 1);
//--------------------------------------------------------
randans3 = Math.floor(Math.random() * randArray.length);
randLetter3 = Math.floor(Math.random() * boxArray.length);
boxArray[randLetter3].text = randArray[randans3]+ans;
boxArray.splice(randLetter3, 1);
randArray.splice(randans3, 1);
//---------------------------------------------------------
//---------------------------------------------------------
randLetter4 = Math.floor(Math.random() * boxArray.length);
_root.correct.text = boxArray[randLetter4];
if (boxArray[randLetter4]==a){_root.correct = 1; }
if (boxArray[randLetter4]==b){_root.correct = 2;}
if (boxArray[randLetter4]==c){_root.correct = 3;}
if (boxArray[randLetter4]==d){_root.correct = 4;}
boxArray[randLetter4].text = ans;
boxArray.splice(randLetter4, 1);
stop();
Flash Hates Me....I Think?
Ok so I had flash mx 2004 but when I loaded my website and worked on it nothing worked as in none of the text on the links showed up but when I worked on flash mx at school everything worked fine so I switched to flash mx to see if that was it and of course it wasnt any ideas, suggestions etc... lemme know I need help!!!
Flash MX Hates Me And My Preloader
Can someone please help?!?, i just spent literally 8 hours trying to get a preloader to work on my flash site! I read all the messages regarding preloaders and none of them helped.
I have a flash site that is roughly 800kb and i am trying to put a preloader on it, i went through about 10 tutorials...none of them worked, i downloaded preloader .fla files with the script already added to them...none of them worked. My main movie clip is one frame, and i tried to paste the frame as either a new scene in the premade preloader .fla, or as the first frame in the same scene....none of that worked. I am about to loose my mind. Please help me! Let me know what you need to look at....is it my main movie clip that is causing problem? like i said there were some preloaders with the actionscript already added, which it should be a simple as creating a second scene, but it soes not work. when i test the premade preloaders a streaming video they work fine, but once i ad my movie to the file, it does not work.
Firefox Hates Flash?
So I have this site in flash, that is put into a html document, and when opened with internet explorer its fine, but with firefox it opens in a a fraction of the orginal size. It also shows a bunch on comments but i have fixed that since. Any ideas on why firefox is being weird?
website: http://ww2.oxford.k12.mi.us/
the script for the load is:
[HTML]<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100%" height="100%" id="default" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="default.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#053f80" />
<embed src="default.swf" quality="high" bgcolor="#053f80" width="100%" height="100%" name="default" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>[/HTML]
any ideas would be helpful
-themaimedlord
Flash 8 Just Plain Hates Me
Hi
This is the wierdest thing happening to me. In my flash movie totally randomly some movie clips that ive imported just seem to dissapear and get replaced by black squares as if they got deleted. WHich they havent.
Also the biggest issue im now having is that I cant even export my movie or preview it. Flash just instantly crashes and freezes up. Ive never had this problem before.
An observation ive noticed is that since i save interations of my .flas , the last two are showing up as only being 2 megs or so. Whereas the previous ones where 12 megs. Yet the 2 meg ones contain all and more scenes, clips and graphics.
Flash seems to be possesed and acting really random. Ive tried both at my computer and at the school computers and its the same story.
Any ideas?
attached fla: http://www.ianflaig.com/flash42.fla
Help Garbage Collector Hates Me :(
Hey all,
I am in the process of finishing a flash game made in as3. Once the user finishes playing the game, I want them to have the ability to replay the game without reloading the SWF.
During the game I have created many objects and many eventhandlers. I am in the process of creating a reset method which will clear all event handers, set variables back to default values, remove and children that have been added, etc.
The problem is the fact that I have added so many things to the game (with addChild for example) I know I'll miss some. No matter how hard I try there is a very good chance I'll miss a reference to an object and therefore when they play the game again it'll be still in memory from before and loaded twice.
So, my question is : Is there a way to tell the flash swf to clear everything it has in memory and restart the swf as if it was the first time?
Thanks very much for taking the time to help me!
Ryan Ritten
Dynamic Text Box Hates Me
Hey guys, got a little problem that I am sure has a simple answer.
I have a base.swf (level0). This swf has a variable set in it called recmessage.
This base.swf then loads another swf over it, called touchbox.swf.
This touchbox.swf has a dynamic text box in it, which needs to disply the value for the variable recmessage.
I created this dynamic text box on touchbox.swf and called its variable recmessage02 and then used the following code:
recmessage02 = _level01.recemessage;
However, this doesn't work. What am I doing wrong? Heeeyelp!!
MySpace Hates Flash...
Recently MySpace instituted new code that converts Flash embed code to conform to how they want it to behave. In doing so they added new param tags which include: enableJSURL, enableHREF, and saveEmbedTags.
Finding references to these is difficult, doing a goggle search returns source code to flash movies embedded on myspace, not helpful. The only reference I've been able to find was for saveEmbedTags, but was in reference to QuickTime not Flash.
The effect of enableJSURL and enableHREF is evident, they prevent the Flash movie from launching any external urls via getURL.
What I'd like to know is:
a. Any documentation regarding these tags.
b. A way to determine if these tags have been set to false.
c. A way for Flash to access any of the param tags or attributes associated with it via HTML.
It would be great if Flash could determine that enableHREF has been set to false.
On a side note, if anyone knows if an object exists in Flash that contains all of the FlasVars or variables passed via filename.swf?name=value
Cheers
-js
<param name="allownetworking" value="internal" />
<param name="allowScriptAccess" value="never" />
<param name="enableJSURL" value="false" />
<param name="enableHREF" value="false" />
<param name="saveEmbedTags" value="true" />
Security Sandbox Hates Me
Hi all,
I'm looking for some help over coming a security sandbox violation error #2048
when trying to access amazon.
I put a cross domain script on the amazon space to start with
ActionScript Code:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
That didnt work.
I then tried giving my flash movie permission to access the amazon domain
ActionScript Code:
flash.system.Security.allowDomain("http://s3.amazonaws.com/")
flash.system.Security.allowDomain("http://s3.amazon.com/")
var amazonXML:URLRequest = new URLRequest(MixTrackXML);
var amazonXMLLoader:URLStream=new URLStream();
amazonXMLLoader.load(amazonXML);
amazonXMLLoader.addEventListener(Event.COMPLETE,amazonXMLLoaded);
I still am getting the sandbox violation error and I dont understand why.
Would anybody be able to point out to me if I'm missing some code or doing something stupid?
Do I understand this correctly.
If my flash movie wants to access a someDomain, then you must place the crossdomainpolicy file on someDomain?
Also if I tell my flash movie to allowDomain (someDomain) my flash movie should be able to connect to someDomain?
Thanks
dub
Who Hates Fonts And Textboxes? I DO
I've spent a couple hours today d*&king around with Flash's dynamic and static textboxes and i wanted to ask a couple of questions regarding them.
I initially created all textboxes from one (just copied and pasted it).
The font is Arial and it is 12pt. After loading my data from my server I noticed that SOME of the text boxes were changing from Arial to Times New Roman. I checked it out and found out that it was only text boxes with BOLD selected in properties. I chose Arial-Bold and it still did the same thing (Arial-Bold IS installed on my computer). But I noticed that STATIC text boxes i have on my movie have no problem displaying Arial Bold either as the font or just Arial with BOLD selected in properties. This got me wondering.. What is so different about these text fields? Why do the fonts generate differently between static and dynamic fields? To overcome this problem i changed all my fields to dynamic and I embedded html tags <FONT FACE='ARIAL'> and <B> to all fields that needed them. This caused the text fields in question to go to Arial Bold, which is great. Only problem is that ALL my other text boxes went to Times New Roman. Even the ones that had no problems displaying before! So I was forced to make all textboxes html enabled and wrapped every value in HTML tags. This isn't such a bad thing because it makes for easier editing for a user but I was just wondering if this is a bug with Flash or if there is some reason it does this that I am just missing!
Any input would be appreciated.
Also I looked at Embedding the fonts. But it adds so much to the overall file size and it makes the fonts look kind of fuzzy when they are displayed. Is this a 'feature'? If so, how can i get rid of it. hehehe.
thanks
McM
The Slide Presentation Hates Me
It's got something against me, I tell ya! This is the first time I'veusing the Flash Slide Presentation and I can't figure out why my AS2 won't run.
Code:
//Main slide is named "mySlide"
//Button on mySlide has an instance name of "myBtn"
//this works
myBtn.onRollOver = function(){
trace("It's working!");
}
//this does not
myBtn.onRelease = function(){
mySlide.gotoLastSlide();
}
//Why doesn't my code work?
I have other questions as well:
1. Is it possible to make a template which always stays above the content? I want to add a menu which is visible on all slides.
2. I applied slide transitions using Behaviors (cool stuff btw). But when the transition begins, the previous slide always disappears first. Is it possible for the previous slide to remain while the new slide transitions over it?
Thanks so much!
The Media Component HATES Me
in one button:
ActionScript Code:
_root.mdisplay.setMedia("home_bicycle.flv", "FLV");
in another button:
ActionScript Code:
_root.mdisplay.play(2);
this should start the flv "home_bicycle.flv" at 2.0 seconds.. instead, it does nothing at all..
why? because the media component HATES me.
Internet Explorer Hates Me... Well... My Code...
And I (and my code) hate it...
I am not sure if it is a problem with the flash, or with the html, but it's pissing me off...
I've uploaded the project to: http://www.whatadewitt.com/coolriot/menubar.html
(You can ignore the "Expand" and "Collapse", they're just things I was using to test my javascript functions)
If you go there in Firefox, the thing does as it is supposed to... in IE, the damned thing won't load! I mean, look, I know that it's hard to believe that something isn't working in IE, let's just calm down, we can give them this one foul up (if in fact it is their fault).
Anybody know why IE hates me so much?
Thanks,
--D
Text I Hates The Textfields Or Is It That They Hate Me?
tough love, maybe thats what the situation calls for.
i'm really not sure how to go about this, and i'm past deadline, so i'm going to start by just throwing in the comment i wrote myself above the code, because i'm sure it'll take me hours to get it anything like close to right. i guess i used to be kinda intermediately skilled, but then i got really rusty... so now i'm like begintermediate. anyways, people need to be able to type in a word sortof hangman-esque i guess. if worst comes to worst, i could do it by creating an image of a keyboard and having people mouseclick the letters, but that is pretty hack looking, i really want to be able to have people type in the letters.i know enough to do it that way, but that way sucks. but i've next to no experience with the textfields. currently i have the textfield defined as "input text" rather than static or dynamic... i think thats right!
so this is the comment to the as-yet nonexistant code :
/* okay. this is what it is... create a function that listens to the keys input into the "testText"
textbox and adds the key into an array(inputArray). IF the key is a backspace, then 'pop' the last entry
out of the array. otherwise 'push' it onto the end of inputArray
inputArray is then checked against another Array(answerArray). how to best check that the words are the same?
IF the last letter added to inputArray is the same as the corresponding letter in answerArray, all is good
all is good unless its the last letter of the answer, in which case set the visible of answerMC to true (says
"good job, go to the next question" or something like that) if the letters in the Arrays are not the same,
set the visible of wronganswerMC to true (says something like "no, thats not it, press backspace") and then
when the backspace is pressed we can set the visible of wronganswerMC back to false.
also... the function needs to have a var (wrongvar?), wherein every time wronganswerMC visible=true, it keeps track and the
third time it gets a wronganswer, aswerArray is displayed in the textfield (or even as an MC set to visible)
and a message is displayed telling the student to press a buttonMC or maybe press ENTER in order to move on to the
next question.
if wrongvar = 3 and the student has to go on to the next question, the score needs to be reduced from 100 by 10.
the 'cleanest' way to get the next question would be to code it in the same frame where answerArray gets changed
to the next answer (for this example say the the answers are "testA" "testB" "testC" etc)... but my brain is so stretched
at this point that i'll probably just move the whole process on into a new frame which i think is a little easier
to get working properly.
*/
kindof long, i know... does it make sense? any pointers would be great. when i've got the code half written i'll be back to bump the thread
cheers,
will.
Browser Scrollbar Hates Flash
Ok, so check this out. Open this link in a 1024X768 or smaller browser. The side menu buttons work normally(and when scrolled all the way to the bottom), but when you scroll with the browser scrollbar, the hit states seem to stay "stuck" to the bottom.
http://joekromer.com/rob/
If opened on a larger resolution and the browser does not need to scroll, the buttons work fine.
If it matters, I am placing all my clips with attachMovie and entering their x and y values.
Thanks,
Stinoga
Setting Document.title <--IE6 Hates Me
I'm trying to be able to set the browser window's title from inside a flash file. IE6 is being a pain in the *** though and i'm at the point that i'm pretty sure it has to be a browser bug. From inside the flash i'm using
Code:
getURL("javascript: set_title('" + title + "');");
(Edit: theres not really a space in "javascript"...the forum seems to be sticking it in there on it's own)
My set_title function is in the head of the holding document
Code:
<script>
function set_title(new_title) {
alert("Setting window title:
Original: " + document.title + "
New: " + new_title);
document.title = new_title;
return void(0);
}
</script>
Now for the weird stuff. Calling the function from within the page works fine. I can set the title fine. When i try to set it from the flash now though it calls the function and the alert comes up properly but the window title doesn't change. Now setting it from the pages script doesn't work either, and when I refresh the page the window title stays as the last one set by the javascript within the page(doesn't go back to the <title><//title> set title) and nothing will change the title. I have to close the browser window and open a new one to get anything working again.
No problems in mozilla.
My IE version is 6.0.2800(OS: windows XP sp1)
Heres a page I set up to isolate and test it
http://chris.craftyidiots.com/title...title_test.html
If you want the fla you can find it in the dir:
http://chris.craftyidiots.com/title_setting/
Thanks for any help, if you don't think you could help solve it letting me know what happens with older versions of IE that you might have installed would be a big help too. I'm ripping my hair out
Edit:
I've found that calling any getURL from flash seems to keep IE from updating the window title until the browser window is closed or address is changed. I suppose i'm looking for help with a workaround now if anyone knows one or has any ideas that might work. I'd also like to know if this problem happens in IE5.5/5/4 too. What i'm trying to do is update the title of a popup based on data recieved from an XML socket
Circle Collision Plus Direction Circle Should Go
I need help (or code) on how to figure out the direction a circle should go after it is hit by another circle. I know how to get the circles to know when they hace hit each other but i need to know how to find the angle at which the circle would bounce off at. Thanks to anyone who can help.
Moving A Circle Over Half A Circle
how do i move over the half circle
up and donw the circle line?
how do i move it to a certain point?
and how do i calculate it for example 5 point that will be in equal spaces between the circles?
thnaks in advance
peleg
Circle-circle Reactions, With A Twist..?
All right, I'm not as dumb as I sound -- no, really! But here's what's got me stumped:
I have a series of circles that gradually spin toward the center of the screen. The circles are randomly placed at the outer edge of the screen and randomly assigned a speed. Because the balls don't travel in a linear fashion, I'm having trouble figuring out how to adjust their movement. As the circles get closer to the center, they also get "spun" a certain amount -- they have a property called "theta" that gets appended with another property called "spin." Anyway...
I can detect when a collision is taking place: I'm just completely blank regarding how to make the circles react. I've searched a bunch of places, but nothing I've found is making any sense to me...and I'd like to think that I'm not brain-dead...
If anyone has any suggestions, I would LOVE to hear them! Thanks in advance!
Regards,
Blake
Moveable Circle Around Another Circle - No Overlap
Hey all. I have two MC's, circular in shape. One of the circles is stationary and you can drag the other. I'm trying to get the moveable circle to be able to move around the circumference of the stationary circle, but not overlap. I'm able to detect when they overlap, not using hittest. I just can't figure out how to code it so that the draggable circle can't be moved over the stationary circle. Any suggestions, comments, or help is greatly appreciated. Thx.
Drawing A Animated Circle, Dot To Circle
Can some one help me??
Im new in Flash, I want to make an animation of a circle, begining from a small dot and ending in a circle (like wen we draw in a paper), I allready tried everything I know (not a lot!!!! ) .
Is it possible to make this? I will trie to explain:
I want to make a animation of a small pencil drawing a circle from nothing. Begining with the pencil drawing a dot then that pencil will make the complete circle like wen we draw in a paper by hand.
Sorry my English is not very good.
Please Help!
Arcanjo
Experts : Flash 5 Hates This Piece Of Code :( Why ?
hello everybody,
i dont know what is going on , i have created this piece of code with mx (it was working all ok) , but when i tried opening with flash 5 after saving as flash 5 i have faced many problems
1- there is an error in this piece of code , i cant find it this error is very irritating to flash 5 as it makes it un responding sometimes
when i check syntax i find this in the output
Line 22: 'else' encountered without matching 'if'
else if ((_root["answer1"] != _root["correctAnswer1"] && _root["answer1"] != _root["correctAnswer_alt1"]) && (_root["answer2"] != _root["correctAnswer2"] && _root["answer2"] != _root["correctAnswer_alt2"]) && (_root["answer3"] != _root["correctAnswer3"] && _root["answer3"] != _root["correctAnswer_alt3"]) && (_root["answer4"] != _root["correctAnswer4"] && _root["answer4"] != _root["correctAnswer_alt4"]) && (_root["answer5"] != _root["correctAnswer5"] && _root["answer5"] != _root["correctAnswer_alt5"])){
here u r the code , plz try to help
Code:
on (release, releaseOutside) {
for (k=1; k<maxanswers+1; k++) {
if (_root["answer"+k] == _root["correctAnswer"+k] || _root["answer"+k] == _root["correctAnswer_alt"+k]) {
//main if
//if: main if .if 2
if ((_root["answer1"] == _root["correctAnswer1"] || _root["answer1"] == _root["correctAnswer_alt1"]) && (_root["answer2"] == _root["correctAnswer2"] || _root["answer2"] == _root["correctAnswer_alt2"]) && (_root["answer3"] == _root["correctAnswer3"] || _root["answer3"] == _root["correctAnswer_alt3"]) && (_root["answer4"] == _root["correctAnswer4"] || _root["answer4"] == _root["correctAnswer_alt4"]) && (_root["answer5"] == _root["correctAnswer5"] || _root["answer5"] == _root["correctAnswer_alt5"])) {
gotoAndPlay("correctframe");
score++;
//else: main if .if 2 - else
} else {
score++;
gotoAndPlay("case3frame");
}
//else: main if _ else
} else {
//if: main if _ else .if
if (_root["answer1"]=="" && _root["answer2"]=="" && _root["answer3"]=="" && _root["answer4"]=="" && _root["answer5"]=="" )
{ _root.alertmc.gotoAndStop(2);
_root.alertmc._visible=true;
}
//if: main if _ else .if.else if
else if ((_root["answer1"] != _root["correctAnswer1"] && _root["answer1"] != _root["correctAnswer_alt1"]) && (_root["answer2"] != _root["correctAnswer2"] && _root["answer2"] != _root["correctAnswer_alt2"]) && (_root["answer3"] != _root["correctAnswer3"] && _root["answer3"] != _root["correctAnswer_alt3"]) && (_root["answer4"] != _root["correctAnswer4"] && _root["answer4"] != _root["correctAnswer_alt4"]) && (_root["answer5"] != _root["correctAnswer5"] && _root["answer5"] != _root["correctAnswer_alt5"])){
gotoAndPlay("wrongframe");
}
}
//main if end
}
// for end
}
// on release end
THANKS
OMG Why Wont It Work....WHYYY Flash Hates Me ;_;
Hey, I'm trying to build a moving system for an rpg in wich you use your mouse.Instead of moving your character, it moves the entire map around it.
I call up the location of the click by the _xmouse and _ymouse thing and then I math.floor these to get them without 0.524 or something...
Then, I check if mycounter is on so the thing won't go bananas, and I check the position of the Xmouse so it knows what to do with it by an if-statement. Then I see where the myMap has to go by taking its _x and _y minus the move you wanna do.
atlast I check with a while loop 'as long as its not equal to the place it has to be' ---> -1 and -1
The only problem is: THE DAMN THING WONT WORK ;_;
Here is what I got so far, I only managed to do the right-under corner coz its a lot of work...
Code:
onClipEvent (mouseDown) {
myXmouse = Math.floor(_root._xmouse);
myYmouse = Math.floor(_root._ymouse);
trace(myXmouse);
myCounter = 1;
trace("mouseDown Called");
}
onClipEvent (mouseUp) {
myCounter = 0;
trace("mouseUp called");
}
onClipEvent (enterFrame) {
if (myCounter == 1) {
if(myXmouse > 245 and myYmouse > 205){
if(myXmouse > 250){
myMoveX = myXmouse - 250;
trace("myMoveX called");
}
if(myYmouse > 200){
myMoveY = myYmouse - 200;
trace("myMoveY called");
}
mapPlaceX = this._x - myMoveX;
mapPlaceY = this._y - myMoveY;
while( this._x != mapPlaceX and this._y != mapPlaceY){
_x.myMap -=1;
_y.myMap -=1;
trace("while loop called");
}
}
}
}
Circle-Circle Detection
I need some serious circle to circle collision detection. I used one from jobe makar, but I don't think it works for circles that are'nt both moving. Some of the variables are 0, so when it divides by them, it returns NaN. Anybody know any collision detection scripts? <--Sorry, I just wanted to put that in there
Circle Vs. Circle Ricochet.
I'm working on a game that involves circle vs. circle collision detection (More specifically moving circle vs. static point). I am able to project the circle out of the point but I have no Idea how the change the velocity of the circle so that it is physically accurate.
I whipped up a quick thing to Isolate the circle vs. point collision here.
Here's the script:
Code:
var GRAV:Number = .22;
var RADIUS:Number = ball.width/2;
var vx:Number = 0;
var vy:Number = 0;
var dx:Number = 0;
var dy:Number = 0;
stage.addEventListener(Event.ENTER_FRAME, enterFrame);
function enterFrame(Evnt:Event):void {
ball.x += vx;
ball.y += vy;
vy += GRAV;
dx = ball.x - dot.x;
dy = ball.y - dot.y;
if (Math.sqrt(dx*dx+dy*dy)<RADIUS) {
ball.x = dot.x+dx*RADIUS/Math.sqrt(dx*dx+dy*dy);
ball.y = dot.y+dy*RADIUS/Math.sqrt(dx*dx+dy*dy);
// I have no Idea what to put here to simulate ricochet
}
}
If anybody could tell me how I would manipulate the vx and vy variables that would be grand.
Circle
I'm having difficulty making an object (circle) go around a guide layer (also a circle). My circle only goes half way. Is there a way to place the circle at a starting point and have it go all the way around the guide layer and finish at the starting point? I've been able to do essentially creating a duplicate guide layer and a duplicate object and having the object complete the movement of the other half of the circle.
I've seen it done so I know it can be done. Thanks in advance.
Arc And Circle
Hi people. Well here is my question:
I have a big circle which is always a constant size. Now my navigation is dynamic and the amount of small circles on this big circle's arc has to be devided evenly on this arc of the big circle, now what I am trying to do is see ho many menu items I have, work out the angle between them to space them evenly on the big circle....
I'm totally confused in how to approach this. The thing is I have all the functionality for the duplication, all I need is a function to work out the plotting of the small circles on the big circles' arc...
Thanx in advance
Circle..?
emm..could someone tell me..how to write an actionscript..that draws a circle in real time...slowly..or...how to make such animation..or whatever..tnx
What Is The Circle In A MC?
I noticed that MC has + sign (crossed hair) which is the registration point of the movie clip. This is where (0,0) of the object. I also noticed a circle that sometimes it's inside but sometimes it's outside of my movieclip. What is that for?
TIA,
Circle Instead Of Bar
how can i create of a circular preloader, it is just like a normal bar that fills up when loading but instead make it circular
Circle Tween
How do i make a dot on the screen into like a circle. Like... use a tween to start with a point of something similar then go around and extend into a circle. Anyone understand? Basically, it starts out with a point then it goes around and makes a circle.
Rotating 3d Circle
How do i rotate a circle and give the affect that it is 3d, with an image on the 3d circle.
like the 3d circle at matinee.co.uk
Circle's Equation....
Hi
Can somebody tell me what is the equation for the "circle" in maths?
as i am trying to do something in AS to assign the MC to move in a circle...
Thanks in advance...
MKit de HK
Tweening A Circle
Im tired so give me a break on this one, but I want to TWEEN a circle STROKE ONLY! No fill, I want it to tween the outline around the circle. --You know, like start with nothing then start going around with some color to make a complete circle
For the life of me I cannot think of how to do this. I though of making 4 level with four straight lines that cover up the circle and tweening them in order...but is there a better way?
Am I missing something easy?
thanks! tv
[Edited by TVance.Net on 01-30-2002 at 01:51 AM]
Cutting In A Circle? Help
Listen I have pictures that I want to be perfectly round in Flash and cant for the life of me find out how to cut these out!
When I import into Flash it comes in like a square or rectangle or whatever and I break it up, and I want the very center (they are pics of people) in a Circle to be the only thing left...
Someone help..please?!?
|