Symbols Overlap - Flash Chokes
Hi
For the past weeks i`ve been working on some animations in flash. After i was done with the first one i realised that for some reason the final swf file (about 200kb) was choking when it got to the the part where an object faded out while other object was changing both alpha and position on the layer above. Again .. when it got to that part it was like slowmotion. I didnt give it much thought because i was using the school's computers and i thought its video ram related or something like that.
Today i was animating some rain drops to where they fell and produce waves wich eventualy changed alpha to 0. After randomly placing about 10 drops in a 5 sec animation i noticed it started choking again. It was choking when two symbols that fade out overlap.
Any suggestions?
Thanks guys!
p.s. I'm 100% positive it's not my computer because i rendered a houdini 3d animation in parallel with the swf and the 3d animation was pristine while the swf choked like i had 10Megs of ram.
Adobe > Flash General Discussion
Posted on: 04/17/2007 10:23:39 PM
View Complete Forum Thread with Replies
Sponsored Links:
Compile As Flash 7 And Now Remoting Chokes - Help
I have a large project using flash remoting to .NET that has been working great compiled as Flash 6. If I try to compile as Flash 7 netservices locks the player into an endless loop and then times out as it tries to resolve its first remoting call for .NET.
I verfied I have the the Flash MX 2004 flash remoting components and the first update for ActionScript 1. I also have the latest flash remoting on the server.
Anyone run into this, where Flash 6 works but Flash 7 dies?
View Replies !
View Related
Flash 8 Chokes On XML From Excel 2003
Using Flash 8's XML object and trying to read in XML created in Excel 2003 I get error -6 back from the XML.status property which means "An XML element was malformed."
If I export the same data in Excel 2002 it loads corectly. Further investigation showed that Excel 2002 exports at the begining this
<?xml version="1.0"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
And Excel 2003 exports an extra line at the begining like this
<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
If I remove the 2nd line the file works! Any ideas why Flash chokes on this line?
This is an issue as I am building an application for a client who only has Excel 2003!
Thanks for any input on this.
Kevin
View Replies !
View Related
Is It Not Possible To Assign Instance Names To Symbols Within Symbols In Flash CS3?
Detail question on nha khoa Adobe group
OK, so I have a player object. I created a symbol that is linked to the player. Inside the symbol I have 2 symbols. 1 is the sprite that displays the player, the other is a rectangle box that is used for collision detection.
I tried giving the collision box an instance name in the property editor so I could reference the collision box from code. The Player symbol is linked to a Player class I wrote earlier so it creates an instance of the Player class. The error I get is this:
ReferenceError: Error #1056: Cannot create property myCollBox on Player.
myCollBox was the instance name I gave that collision box symbol. I thought maybe I had to make the collision box also linked to a class to be exported for action script, but that didn't seem to help.
View Replies !
View Related
XML Chokes
Anybody know how to place anchor tags in xml? I'm trying to put anchor tags in my xml, but it keeps choking when flash imports it and makes arrays. Here is what I have tried:
HTML Code:
<portfolio>
<sample id="masterpieceministries.org" proj="mm" pic="mm-1.jpg" totalpics="5" />
<sample id="inthebeginningbook.com" proj="itb" pic="itb-1.jpg" totalpics="3" />
<sample id="thisiswestchicago.org" proj="tiwc" pic="tiwc-1.jpg" totalpics="4" />
<sample id="little-little.com" proj="llc" pic="llc-1.jpg" totalpics="4" />
<sample id="yfinministries.com" proj="yfin" pic="yfin-1.jpg" totalpics="3" />
<sample id="East West Identity" proj="ew" pic="ew-1.jpg" totalpics="2" />
<sample id="RR Browne Identity" proj="rrb" pic="rrb-1.jpg" totalpics="4" />
<sample id="Freddie the Firefly Book" proj="freddie" pic="freddie-1.jpg" totalpics="7" />
<sample id="Huntin' The Truth Logo" proj="huntin" pic="huntin-1.jpg" totalpics="3" />
<sample id="Forever Family Identity" proj="ff" pic="ff-1.jpg" totalpics="1" />
<!--
<sample id="![CDATA[<a href="http://www.masterpieceministries.org">masterpieceministries.org</a>]]" proj="mm" pic="mm-1.jpg" totalpics="5" />
<sample id="<a href="http://www.masterpieceministries.org">masterpieceministries.org</a>" proj="mm" pic="mm-1.jpg" totalpics="5" />
-->
</portfolio>
Both of those don't work, so they are commented out. Here is the actionscript:
Code:
var x:XML = new XML();
x.ignoreWhite = true;
x.load("portfolio.xml");
x.onLoad = function() {
samples = this.firstChild.childNodes;
for (i = 0; i < samples.length; i++) {
names.push(samples[i].attributes.id);
pics.push(samples[i].attributes.pic);
totals.push(samples[i].attributes.totalpics);
proj.push(samples[i].attributes.proj);
//trace(names);
}
View Replies !
View Related
Newbie: Key.isDown() Chokes With HTML?
Hi!
Just getting my feet wet in Action Scripting Flash 5 style, I made a simple script attached to a movie that jumps to a new frame of animation when you hit a the down key. Everything works fine when I play the published .swf with my standalone Flash player, but when I try to use my Flash plug-in for Internet Explorer (playing the published HTML page), the keys have no effect on the animation. I made sure that I have the most recent Flash plugin for IE. Am I being a butthead about something? Thanks!
Cheers,
Dave
View Replies !
View Related
When I Put Quotations Marks ", He Chokes
I have in my flash some animation with MCs and dynamic filds, I am pulling some texts from my PARAM in the HTML, and he works normal, but now I got some problems.
The first Product in de PARAM from my HTML I have this (NOVO+Produto+1+")
when I put quotations marks ", he stop de animation from my MCs, it does not bring the outhers texts, he chokes.
I try to put quotations marks ", dynamic text "Character" but nothing.
I have this in my PARAM HTML.
Code:
'barra17?i1=imagemVertical&t=Destaques&n1=NOVO+Produto1+"&n2=Descrição.......'
Somebody knows because it does not appear the quotations marks ", or somebody knows what I have that to do for he works.
Sorry about my English.
View Replies !
View Related
When I Put Quotations Marks ", He Chokes
I have in my flash some animation with MCs and dynamic filds, I am pulling some texts from my PARAM in the HTML, and he works normal, but now I got some problems.
The first Product in de PARAM from my HTML I have this (NOVO+Produto+1+")
when I put quotations marks ", he stop de animation from my MCs, it does not bring the outhers texts, he chokes.
I try to put quotations marks ", dynamic text "Character" but nothing.
I have this in my PARAM HTML.
Code:
'barra17?i1=imagemVertical&t=Destaques&n1=NOVO+Produto1+"&n2=Descrição.......'
Somebody knows because it does not appear the quotations marks ", or somebody knows what I have that to do for he works.
Sorry about my English.
View Replies !
View Related
When I Put Quotations Marks ", He Chokes
I have in my flash some animation with MCs and dynamic filds, I am pulling some texts from my PARAM in the HTML, and he works normal, but now I got some problems.
The first Product in de PARAM from my HTML I have this (NOVO+Produto+1+")
when I put quotations marks ", he stop de animation from my MCs, it does not bring the outhers texts, he chokes.
I try to put quotations marks ", dynamic text "Character" but nothing.
I have this in my PARAM HTML.
Code:
'barra17?i1=imagemVertical&t=Destaques&n1=NOVO+Produto1+"&n2=Descrição.......'
Somebody knows because it does not appear the quotations marks ", or somebody knows what I have that to do for he works.
Sorry about my English.
View Replies !
View Related
Movie Chokes With Button Across Multiple Scenes
Hi, I'm making a banner for a website and decided to do each 'frame' in its own scene just as it kept things a bit tidier.
There needs to be a clickable area with this code throughout all the scenes...
Code:
on (release) {
if (_level10.linkTag.substr(0,5) == "http:")
getURL(_level10.linkTag,_level10.targetTag);
else
getURL("http://www.zebra-club.com","_blank");
}
It works fine when I have a button with this code on the first scene but as soon as I add it to any of the rest I can't even publish the .swf.
Any ideas?? I've attached the .fla with the issues, to see it working remove all the 'button' layers on the scenes.
Hope someone can help!
Many thanks
View Replies !
View Related
Movie Chokes With Button Across Multiple Scenes
Hi, I'm making a banner for a website and decided to do each 'frame' in its own scene just as it kept things a bit tidier.
There needs to be a clickable area with this code throughout all the scenes...
Code:
on (release) {
if (_level10.linkTag.substr(0,5) == "http:")
getURL(_level10.linkTag,_level10.targetTag);
else
getURL("http://www.zebra-club.com","_blank");
}
It works fine when I have a button with this code on the first scene but as soon as I add it to any of the rest I can't even publish the .swf.
Any ideas?? I've attached the .fla with the issues, to see it working remove all the 'button' layers on the scenes.
Hope someone can help! I need to send this today!
Many thanks
MODS: I posted this in the newbies section but no-one has replied so sorry for the duplication!
View Replies !
View Related
Movie Chokes With Button Across Multiple Scenes
Hi, I'm making a banner for a website and decided to do each 'frame' in its own scene just as it kept things a bit tidier.
There needs to be a clickable area with this code throughout all the scenes...
Code:
on (release) {
if (_level10.linkTag.substr(0,5) == "http:")
getURL(_level10.linkTag,_level10.targetTag);
else
getURL("http://www.zebra-club.com","_blank");
}
It works fine when I have a button with this code on the first scene but as soon as I add it to any of the rest I can't even publish the .swf.
Any ideas?? I've attached the .fla with the issues, to see it working remove all the 'button' layers on the scenes.
Hope someone can help! I need to send this today!
Many thanks
View Replies !
View Related
Flash Overlap With Z Index
Hey all,
I have a menu drop down issue that was looking to get some help with. I have a flash drop down menu that overlaps a separate flash piece in an HTML page. The example of what I am talking about can be found here: http://www.cspa.org/cleaning
When you hover over product types, you'll notice that the drop down falls under the 'water banner'. I have set the z-index of that specific banner to be lower than the flash header but it still did not work. When I change the 'water banner' to a static image instead of a flash file, the menu overlaps without a problem.
This is the style that I have applied to the navigation bar
#flash_piece {
z-index: 1;
position:relative;
top:0px;
}
I made another div for the banner and set the z-index to 0. Any help with this would be most appreciated. Thanks!
Vation
View Replies !
View Related
Can Flash Overlap HTML?
OK here is the problem. I want to make it so my flash menu can overlap the hTML part of my website. Is this possible through Layers in FP or Dreamweaver? I have seen adds with flash that overlap HTML but i KNow thats with some transparent background so i think its possible. Thanks
Mike
View Replies !
View Related
Flash Overlap Iframe
I have a header that contains a flash menu. I have it in a div so that when a button is rolled over there is a drop down menu that overlaps the iframe below it. When the iframe contains only HTML this works out perfect. However, if the iframe contains flash, the flash in the iframe is set on top of the drop down menu.
I was hoping someone has dealt with this before and has a solution. I'm thinking z-index, but i haven't gotten it to work so far.
Thanks for your help!
View Replies !
View Related
Can Flash Overlap HTML?
OK here is the problem. I want to make it so my flash menu can overlap the hTML part of my website. Is this possible through Layers in FP or Dreamweaver? I have seen adds with flash that overlap HTML but i KNow thats with some transparent background so i think its possible. Thanks
Mike
View Replies !
View Related
Flash Movie To Overlap Html...?
Hi
I am building an intro page on a website in flash. The menu appears on the left hand side. Some of the menu items have sub menus which need to fly out over the rest of the page.
This is not a problem on the intro page, because its in flash...but when linking to another page the sub menu items need to overlap html pages.
Is there a way to do this using transparencies or .... anything else other than reverting to java script....
I have a feeling the answer is no - but thought i'd ask anyway
View Replies !
View Related
HTML And Flash Overlap Issue
Hi, i am making a game, in which, i need to show and hide HTML content with Flash event. but want to purly hide and deactivate the HTML links.
Basically i have made such application through hiding div parameter. but after hiding that HTML area... It will overlap on Flash content. and because of that i am unable to access Flash textbox or buttons.
So what is the best way to hide HTML content after event generate from Flash.
I have done with External Interface, div hiding through javascript.
View Replies !
View Related
How To Overlap Flash Movies Like On Homestarrunner.com?
Hello,
I think I finally figured out how they overlap the menu flash movies on homestarrunner.com, yet when you check the html coding for their pages it only refers to one flash movie in that place. Apparently, their base flash movie has actionscript at the beginning telling the external movie clips (the other flash menu movies) to load into a target movie clip on a higher level than the base movie. I'm trying to pull this off, but I need to know the coding to make this happen. Right now, I put in loadMovie("name of flash movie here", target_mc, (for the target movie clip, of course) method="GET);
At this point I'm getting an error message saying "method name must be GET or POST"
Anyone know what I do to correct this and am I on the right track here? I just need to know the full code needed to load the external movie SWF items to complete the main menu.
Thanks!
Rob
View Replies !
View Related
Sound Overlap In A Flash Video
I have an aplication.
It calls and runs flv videos inside a flash screen (fla)
The problem is that three persons claim that they hear the audio of the first video over the second one.
Each video has it's own frame and each frame is in a diferent scene.
Video 1 is in Scene 2 Frame 1 and Video 2, is on scene 3 Frame 1.
I have run the aplication in three computers and every things seems okay.
I don't hear any double sound.
Any ideas what can be wrong?
View Replies !
View Related
Dhtml Menu & Flash Movie Overlap
Is there a way to get a dhtml menu to overlap a flash movie? I tried the obvious - I put the menu and flash movie in separate layers, then adjusted the z-index, but no luck there.
Other options?
Should I just do a Flash-based menu? Any good one's you've seen with dhtml-ish sublayers?
Thanks in advance,
kk
View Replies !
View Related
Javascript Menu - Overlap Flash Banner?
Hi,
I recently created a website with a javascript dropdown menu ( on mouseover ). Just underneath the menu, there is a flash banner. The javascript works ok on it's onw but it gets displayed behind the flash banner.
Do you know how to set my script to the front / push the flash to the back?
Thanks
View Replies !
View Related
Flash MX Style Menu - Stopping Window Overlap
I've created a series of draggable windows that are a arranged in their minimised state down one side of the page. Trouble is that when they are maximised they overlap each other making it difficult to see the content.
I want to make them shift any window below down if maximised...kind of like the toolbars in Falsh MX i guess.
Any ideas people?
View Replies !
View Related
Overlapping Symbols Inside Symbols With An Alpha Tween
Hello,
In the attached example, Is it possible to prevent the purple overlap area from showing and just be red since red's on top? I have characters that use symbols for arms, legs, etc. and I want to fade them in and out sometimes. The problem is, the areas where the limbs overlap look weird so I have to resort to converting them to shapes on one keyframe. This seems limiting and annoying. I was wondering if there's a command, extension, or property to fix this. Thanks in advance.
View Replies !
View Related
Listeners On Symbols With Symbols Inside Of Them?
I have a symbol (a) with a symbol (b) inside. I have a rollover listener on symbol (a) however, when I roll over symbol b inside of symbol a I loose my "MOUSE_OVER".
It is as if symbol b stops its parent from being considered "rolled over"
Am I building these wrong? or mis-understanding something?
I need it so that the rollover for symbol a works no matter what is inside it.
Thanks!
View Replies !
View Related
"while" Loop Chokes Movie
I'm attempting to create a simple fade from one movie object with a jpg in it to another. It works (although it loops indefinitely) when I call the fading up and down functions from a within a third, without a "while" loop. The fading methods ("increMethod" and "decreMethod") use onEnterFrame to change the alpha of the jpgs. But when I try to limit the fades to within 0 and 100 alpha values, the whole thing stops working. Does anyone have an idea of what's happening?
Here's the relevant code. Sorry about all the "trace"'s:
increment=10;
MapObject.prototype.decreMethod = function() {
this.onEnterFrame = function() {
this._alpha -= increment;
trace (this + " alpha: "+ this._alpha);
updateAfterEvent();
} //end onEnterFrame function
}//end decreMethod()
MapObject.prototype.increMethod = function() {
this.onEnterFrame = function() {
this._alpha += increment;
trace (this + " alpha: "+ this._alpha);
updateAfterEvent();
} //end onEnterFrame function
}//end increMethod()
MapObject.prototype.fadeMethod = function(mc) {
trace("increment equals "+ increment); //working
trace(this + "'s alpha is starting at: " + this._alpha);
trace(mc + "'s alpha is starting at: "+mc._alpha);
//the problem is here: *****************/
while (this._alpha < 100) {
this.increMethod(); //NOT BEING CALLED IN WHILE LOOP
}
while (mc._alpha > 0) {
mc.decreMethod(); //NOT BEING CALLED IN WHILE LOOP
}
//and this is not being called: ***************************/
mapUp=this;
trace ("new mapUp: "+ mapUp);
} // end fadeMethod function
THANKS!!
View Replies !
View Related
Div Overlap
Hello,
I have two flash objects in div.
One DIV - A of flash should overlap the other DIV - B
So i mean two flash should overlap each other.
Can anyone help ?
Thanks.
View Replies !
View Related
Sound Overlap
Hi ,
I have made two different swf files.First one of them contains some annimations along with a sound file that i want should play continously in the background. Then after finishing out the animations in that movie i loaded 2nd swf file in the level1.
This file contains the main movie and has many voice over files in it , and some buttons on which these voice overs are called accordingly....
Now what i did was on pressing any of these buttons i used "stopallsounds" and then played the corresponding voice over ..... this was done to stop any sound file playing in this 2nd swf .... but it also stops the main music in level0
Now what should i do ... i want the background music to play on continously and to change voice overs according to the button clicked on....
Please help me out....
View Replies !
View Related
Movieclip Overlap
need some help!
I have 8 buttons that I have programmed to show MovieClips when pressed. Problem is,if I click on Button 1, it displays MovieClip 1, which is what its suppose to do. But when I go to click on Button 2, the MovieClip 2 that is programmed to play when button 2 is clicked, overlaps the movieClip 1 that was activated with button 1.
How do I get the previous movieclip that is showing, to disappear when you click on another button to view its movieclip, there for not having any of the movieclips over lapping etc.
this is the actionscripting I'm using for button 1, although the rest of the buttons have the same scripting just different tellTarget info numbers. Info stands for MovieClip:
on (release) {
tellTarget ("/info1") {
play ();
any help would be great, Thanks!
}
}
View Replies !
View Related
Overlap Swf Inside Swf
Ok, I have already once asked this question and got no answer. I think it is a pretty easy one, so i attached the zip file of what i am talking to make it easier.
I want to load a external swf into another swf. (loadmovie command i know). I got that part happening.
First question : How do i tell this window where on the screen to load? rathan then position x=0 y=0
Now whilst the window is loaded if you move the mouse around it and pass over the links from the main swf file you are able to click on them. I don't want to be able to click on them.
How can I prevent this??
files are attached. anyhelp would be great. Thanks in advanced
Trent
View Replies !
View Related
Movie Overlap
I am trying to play movies over each other in my scene using the instance.play(); command, however they just overlap and I want the existing movie to dissapear first, I plan to use this system for thumnails and wiuld be using about 12 movies. Is there away to give the button a command to clear the other movies before playing the new one?
I would really appreciate anyones help on this.
Thanks
View Replies !
View Related
Sound Overlap Through AS
is it possible to over lap music using AS like.....
---- = music
-----------_________
________------------
coz i made a little loop in FLstudio, and it has like 1/2 second gap at the end. the thing is it is for my site, so there is only one frame to have it on, so i cant just overlap it manualy. or if theres any other way that would be appreciated thanx
View Replies !
View Related
Hit Test - Don't Allow Overlap
Hi. I'm trying to make a basic game to use with my pupils. It's like dominoes, I have 13 movieclips on the stage and when they press play then words related to our study appear in the movieclips. I have the movieclips dragging and stopping. Ideally they would move the movieclips next to each other as you do in dominoes. But i would like to make it so that when they touch each other then the can't move or overlap each other. Should i seach under collision or hit test?
I have attached the fla file - hopefully
Cheers
Lesley
View Replies !
View Related
Can't Overlap Buttons...what To Do?
I have created 5 buttons that point to an object. When each buttons rolls over the object animates with a background fading in.
However, when you roll off one button and onto another, it starts the animation over. How can I set it so that when you are over the image or any of the buttons, the animation starts and doesn't stip until you roll out of this entire area.
I trie dusing a big button over the area, but the overlapping buttons cause a problem. Only the button on top worked. Any help would be greatly appreciated!!
My flash is too big to attached here, but I have posted the swf so you can see how this is working currently.
View Replies !
View Related
Sound Overlap ~_~
Here's the code for frame 1 of the main timeline;
Code:
stop();
introsound = new Sound;
introsound.attachSound("intro");
introsound.start(0,999);
However the problem I have with this code is that evertime it returns to this frame, the sound starts, overlapping with the original;
I have a button that moves to frame 2, another button that moves back to frame 1, and so the problem starts;
Is there anyway to have a sound object play through multiple frames?;
View Replies !
View Related
Stage Overlap
Hi. I'm not a complete newbie to flash- have made a few sites in it and learned some basic action script. I'm wondering if I'm missing something really simple which has changed in more recent versions of flash.
When I first published my movie (with scaling set to 100% x 100%) I got everything off stage also viewable in the browser. No problem, I simply erased excess graphics that overlapped the stage.
The problem reoccured when I wanted to load an external SWF. I made a movie exactly the same size for it to load into. (138h x 900w). The external swf was made in Swish Max with a stage of the aforementioned size, scrolling a long jpeg across the stage. Now when I publish the movie the external swf loads and plays correctly but the whole long jpeg is viewable overlapping the stage and crossing the width of the web browser!
Once again, I'm sure there must be an easy way to deal with this. As far as I know, only the stage is supposed to be viewable when published in a browser, right? Any help would be much appreciated.
View Replies !
View Related
Using HitTest For No-overlap
Hi All
I'm trying to use hitTest so that if any images overlap they will be replaced on the canvass.
ActionScript Code:
function imgSeed(){
for(i=0; i<5; i++){
a += 1;
duplicateMovieClip(test_mc, ["newImg_mc"+a], this.getNextHighestDepth());
_root["newImg_mc"+a]._x = myRandom(50,450);
_root["newImg_mc"+a]._y = myRandom(50,450);
//below code is for checking no overlap of images. Its with this that I'm having problems
if(_root["newImg_mc"+a].hitTest(HIT ANY OTHER EXISTING IMG){
//new random placement }
}
}
I'm stuck with the hitTest bit I want it to take the current mc and hitTest it for all the other existing mc's and if hitTest == true then I can re-run for a new placement.
Can anyone help?
Thanks
edit--
i've narrowed it down to a function
ActionScript Code:
function overLapCheck(){
for(k=0; k<5; k++){
if(_root["newImg_mc"+a].hitTest(_root["newImg_mc"+k])){
trace ("hit test == true: newImg_mc"+a+" hit newImg_mc"+k);
}
}
}
although this works, It checks against itself, so it always true at least once, how can I tell it not to check against itself?
View Replies !
View Related
Help With Overlap Test
Hi. I would like to know if this is possible or not and how it might be achieved. Once I draw shapes on the background, i have actionscript code to dynamically create about 1000 small squares on the background which are movie clips. I would like to test if the movie clips -squares are "inside"/overlapping/contained withing/... the drawn shape. So if I draw some circles/rectangles, I would know if the squares drawn by actionscript overlap or not. Is there any simple way to accomplish this test? I dont even know what keywords I would search for this either to find help.
Thanks
View Replies !
View Related
LoadMovie Overlap Help Please
hi.
i have 5 different buttons on my website. 2 of them
call seperate swf's to load into my main.swf and the others
are a part of main.swf- they're on the same timeline/scene, etc...
the other buttons are text pages, and now seem to appear behind
the loaded movie swfs....basically the loaded movies wont go away
upon clicking another button.
do you know why this is happening?
here's what i have on the buttons calling external files
on (release) {
loadMovieNum("accessories.swf", 1);
gotoAndPlay("accSF2005");{
}
}
View Replies !
View Related
Object Overlap
I have made a series of MC's on a single layer. Each is triggered by a button, however I am having trouble getting the imgs to remain on top of the others for the MC. Does anyone know how to get multiple images to the same depth on the stage? Cheers.
View Replies !
View Related
Button Overlap Tip
Here's the situation:
I have an expandable banner, that when the mouse moves off of it should go back to it's original size. The way I would normally do this would be to add a big button over the expanded banners full size and put a onRollOut action to it.
Trouble is, this specific banner has three other small buttons in it. So what happens is, when I move over one of the three small buttons the onRollOut action is called since these small buttons are in the way.
What would you guys suggest in this case? I tried calling faking the onRollOut by just getting the mouses coordinates onEnterFrame, but that is kinda buggy since if you move the mouse out of the banner too fast it doesn't detect the roll out.
View Replies !
View Related
Button Overlap?
I am working on a map of the usa that as you roll over each state the name of the state appears and the state is highlighted. I had no problems until I was done and tested it. Some of the roll over parts of the button (the text of the state names) fall underneath of the button (state) right next to it. Why would the rolled over button be affected by the untouched button to it's sides?
I do have all of these buttons on the same level and they are close/touching each other. How do I make it so that the button that is rolled over and it's text are in the forefront and exposed?
Any thoughts? Thanks.
View Replies !
View Related
Overlap Function Help
Hi, wonder if anyone could help me with this problem.
Basically the following code is creating concentric circles.
I've got a collision detection and overlap function script at the end which is telling me if two or more circles have interacted with another.
What i'm basically after is for flash to give me a string of numbers to tell me how much of an overlap is occuring.
I know the end of this script is wrong - I'm getting a boolean outcome instead of a number, I think "return true;" needs to be "return dist;" and "return false;" should be "return 0;" but if I try and change that then I get:
"The Expression returned must match the function's return type"
and if I try and change :boolean to :number in that function then I get:
"Type mismatch in assignment statement: Number where Boolean is required"
Any ideas?
Heres my script:
circles = new Array();
circle._visible = false;
var drawCFlag:Boolean = true;
listener = new Object();
listener.onMouseDown = function(){
_root._quality = "MEDIUM";
instructions._visible = false;
msDown = true;
}
listener.onMouseUp = function(){
msDown = false;
drawCFlag = true;
}
Mouse.addListener(listener);
var circleCount = 0;
this.onEnterFrame = function(){ // updates every frame
if (msDown==true && drawCFlag == true){
circleCount++;
var newCircle:MovieClip = _root.circle.duplicateMovieClip("circle"+circleCou nt, circleCount);
circles.push(newCircle);
_root["circle"+circleCount]._x = _root._xmouse;
_root["circle"+circleCount]._y = _root._ymouse;
trace ("[x value= " + _root._xmouse + "]")
trace ("[y value= " + _root._ymouse + "]")
trace ("[circleCount= " + circleCount + "]")
trace ("[circles size = " + circles.length + "]")
_root.max.send("; x_value " + _root._xmouse + ";"); //send info to max/msp
_root.max.send("; y_value " + _root._ymouse + ";"); //send info to max/msp
drawCFlag = false;
}
andgo();
}
function andgo(){
//Collision detection:
for(var i:Number = 0;i < circles.length;i++)
{
var src:MovieClip = circles[i];
for(var j:Number = 0;j < circles.length;j++)
{
if(i == j) continue;
var dest:MovieClip = circles[j];
var touching:Boolean = checkOverlap(src,dest);
if(touching)
{
trace("Circles : " + src._x + " " + src._y + " : " + dest._x + " " + dest._y + " overlap");
}
//else
//{
//trace("No overlap between : " + src + " : " + dest);
}
}
}
function checkOverlap(c1:MovieClip, c2:MovieClip):Boolean
{
// distance between centers
var dx:Number = c2._x - c1._x;
var dy:Number = c2._y - c1._y;
var dist:Number = Math.sqrt( (dx*dx) + (dy * dy) );
if(dist < c1._width + c2._width)
{
return true;
}
else
{
return false;
View Replies !
View Related
Image Overlap Each Other
Why Does my photo's dont make a space between them .. but overlap each other
ActionScript Code:
var i = -1;
function loadContent(aImage:Array) {
var nxFrame:Number = 3;
var nyFrame:Number = 3;
//var i = 0;
//for (var i = 0; i<aImage.length; i++) {
i++;
if (i<aImage.length) {
var my_mcl:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
var nxBlok:Number = 0;
myListener.onLoadComplete = function(target_mc:MovieClip) {
target_mc._y = nyFrame;
target_mc._x += nxFrame;
nxFrame += 50;
};
myListener.onLoadInit = function(target_mc:MovieClip) {
// you can now do any setup required, for example:
target_mc._width = 40;
target_mc._height = 40;
showImage(target_mc, aImage);
};
myListener.onLoadError = function(target_mc:MovieClip, errorCode:String) {
trace("*********First my_mcl instance*********");
trace("ERROR CODE = "+errorCode);
trace("Your load failed on movie clip = "+target_mc+"
");
};
trace("BLAAAAAAAAAAAAAAAAAAAAAAAA");
my_mcl.addListener(myListener);
this.createEmptyMovieClip("clip_mc"+i, this.getNextHighestDepth());
my_mcl.loadClip(aImage[i], "clip_mc"+i);
}
}
function showImage(target_mc, aImage) {
target_mc._alpha = 0;
var nAlpha = 5;
target_mc.onEnterFrame = function() {
nAlpha += 3;
if (target_mc._alpha<95) {
trace("alpha"+target_mc._alpha);
target_mc._alpha += nAlpha;
} else {
loadContent(aImage);
target_mc._alpha = 100;
delete this.onEnterFrame;
}
};
}
View Replies !
View Related
AS2 - Overlap Problem
I have problem in new created movie clip position because it's dyanamic.
if i create new movie clip it is not overlap on previous movie clip. that position will be new or different place.
find attachment show this problem
so please give me code of positioning movie clip without overlap
thanks
Dars
View Replies !
View Related
Overlap Sounds
At the moment I have a flash menu, and each button has an over state keyframe, and for the over state keyframe I have set a sound to play ('event' in the drop down box), but the problem is, when the user moves the cursor quickly across the buttons, they play consecutively, therefore delaying the sounds.
I want each sound to overlap the other so that the sound plays at exactly the same time as the cursor is over the button, but I don't know any methods of doing this. If you know how, please tell me!!!
Thanks alot!
Mike
View Replies !
View Related
|