Not Enough Stack Space For Export
I'm doing "straight" animations in Flash CS3. I am now encountering this error on export of the swf:"couldn't complete the operation because there was not enough stack space."I have no kind of action script, and it does not matter what export setting I am using.I have created numerous, more complex animations, so I don;t know what's wrong.please help!
Adobe > Flash General Discussion
Posted on: 09/13/2007 07:15:47 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Cannot Export, Not Enough Stack Space?
i am trying to export a flash file, i have never had a problem with this file before, and it is a fairly light an not complex file. when i try to export i get an error saying "couldn't complete the operation because there is not enough stack space"
does anyone know what is causing this problem and what i can do to get the movie exported?
i can attach the file here if needed.
thanks!
PS, i am using flash mx 2004 7.2 on OSX
Not Enough Stack Space?
I was testing my flash site with "test movie" and Flash came back with a prompt saying "There is not enough stack space to complete this operation." What does this mean. I know it can't be my computer because it loaded with ram and is a brand new model Powerbook G4. Please help if you have encountered this error before. Or if you know what it means.
Not Enough Stack Space? Help
My last post about this subject dissappeared or something from last night.....
I have a movie made in flash that when i run it (test movie) i get the error message "There is not enough stack space to complete this operation." This problem started happening when i imported a file from Adobe Illustrator CS. Now i dont think the file type is of any relevance to this problem. The file size is only 1 mB so i dont think that's the problem either. However this image is 5600 pixels wide x 180 pixels tall. It is being used as a scolling image. I have done things like this before and never encountered a problem before. But up until the point i imported this image the movie worked fine. I have plenty of RAM in my Powerbook G4 - 768 to be exact. Its brand new, up to date, panther and everything. So here's what im thinking... I have read about MAC problems with flash but haven't found anything about this. It's gotta be something with maybe Illustrator? I don't know. If you have any info about this subject please know. If your need the .fla file let me know. Much appreciated.
Stack Space
Hello Everyone,
I am getting a "not enough stack space" available warning when I try to publish my .swf. Admittedly, I have a pretty large (2.2MB ) file in there but I should go. I cut the number of undos in the preferences, thinking that would give more umph but the same warning pops-up. All apps are closed and I have 1.25 GB SDRAM.
What gives? The file is unusable if I can publish the #$%^ thing.
Bowman
Stack Space Error
I got a weird error when trying to publish or preview a project i am working on, It comes up with "Could not complete operation as there is not enough stack space available".....
Can anyone let me know what this means......
Couldn't Complete Operation Because There Is Not Enough Stack Space.
My first post, but I hope to get an answer soon - thanks in advance. I am working on an interactive map. I have exported an .swf from Illustrator and imported into Flash 8. No interaction yet, no action script, yet when I go to test or publish the file - I get an error message:
"Couldn't complete the operation because there was not enough stack space."
I this because my illustration is too complex? Argh! I need help or some advice. Thanks, Jeremy
Can't Publish My Movie On My Mac - "not Enough Stack Space" - HELP?
Hey y'all,
I've got a pretty hefty flash MX file (34mb) with tons of photos involved. It's all been going pretty sweetly until I tried to publish yesterday evening - i'm getting a "not enough stack space" message everytime I try to publish. If it's a memory problem then I'm up **** creek because only half the images are actually in place so far - the rest are sitting in the library waiting to be put in place.
I'm using Mac OSX with Flash MX on a G4. I've also tried to export on a souped up G5 but got the exact same message!
Ideas anyone?
Thanking you in advance.
Pombee Spodge.
Flash Export Movie Size Problem (as In Pixel Space)
when i export my movie it exports everything in the white space,
i know i can just expand the size of my objects to fit the whole thing but suppose i wanted to export a rectangular movie to put on a webpage with other things on top and bottom?
how do i define a smaller export movie area??????
Clip Stack: Objects Assigned To The Property Of A Clip Stack
If I assign arrays and objects to properties in a movie clip, do those items actually reside in that clip's stack?
I figured it would be handy for clean up when switching between levels of a game to assign all my arrays and other objects created from classes to properties in a clip and then when I kill the clip later I know I have cleaned that all out of memory. This way everything gets thrown into a convenient garbabe collector when I'm ready to toss it.
If this is true, would it also be true for assigning everythign to properites in single object created by a class that could be killed later?
Thanks in advance for the help!
? How To Translate 3D Space To 2D Space (sort Of) ?
Hi everybody,
I have a question about coordinate systems. I have a 3D space set up (papervision3d), with an array of 20 objects(planes) sitting on the origin (0, 0, 0). What I'd like to do is evenly distribute those 20 objects across the x and y axis so that they appear to be on a 2D plane facing the viewer.
I imagine that some sort of translation needs to be made between the 2D "stage" and the 3D "scene" (dividing the stage width and height). My first idea was to create 4 Arrays of 5 objects each and position those arrays evenly along the y-axis. Next, I was wondering how matrix objects work and if they would have any advantage over arrays here.
Any ideas?? Does this seem like the right direction?
Thanks for your help!
Brian
MC Stack
I have many MC on a the same layer. They have same size and same position. Is there a command that can move a MC at top of the stack?
Jen Stack Needs Help
Hey guys, here is the code.
btn0.onRelease = function() {
switchMenu(0);
};
btn1.onRelease = function() {
switchMenu(1);
};
btn2.onRelease = function() {
switchMenu(2);
};
btn3.onRelease = function() {
switchMenu(3);
};
btn4.onRelease = function() {
switchMenu(4);
gotoAndPlay("INTRO");
};
menuSlidingOut = false;
menuSlidingIn = false;
currentMenu = 50;
function switchMenu(menuNum) {
if (menuNum != currentMenu && !menuSlidingOut && !menuSlidingIn) {
if (currentMenu != 50) {
slideOut(currentMenu, 384, 1, 5);
}
slideIn(menuNum, 3, 1, 5);
currentMenu = menuNum;
}
}
function slideOut(menuNum, endX, speed, increment) {
menuSlidingOut = true;
slideOutInterval = setInterval(slidingOut, speed, menuNum, endX, increment);
}
function slidingOut(menuNum, endX, increment) {
if (_root["subMenu"+menuNum]._x<endX) {
_root["subMenu"+menuNum]._x += increment;
} else {
menuSlidingOut = false;
clearInterval(slideOutInterval);
}
}
function slideIn(menuNum, endX, speed, increment) {
menuSlidingIn = true;
slideInInterval = setInterval(slidingIn, speed, menuNum, endX, increment);
}
function slidingIn(menuNum, endX, increment) {
if (_root["subMenu"+menuNum]._x>endX) {
_root["subMenu"+menuNum]._x -= increment;
} else {
menuSlidingIn = false;
clearInterval(slideInInterval);
}
}
Layer Stack
I'm not sure where to ask for this so i'm starting in here.
I'm fixing the Olivier Debon's Open SWF player and searched for information on the alghoritm for maintaining layers in Flash. The official specification of the format says nothing precise on this. The natural - keep them as they come - is not good. I did a bit of testing and created some basic heuristic on how this behaves but it still lacks some elements. Can anyone hint me where i can find such information ?
Thanx in advance and sorry if this seems too much off topic.
--jw
Stack Swf Files Help
does anyone know how to make a photo gallery sort of like the one on the vw touareg micro site(http://www.vw.com/touareg). on this page what they do is they load a swf over a swf. i like they way the swf before what ever new one you select stays up under the new one. the difference is, they don't just load to a new level because when you choose a new photo it always loads on top. does anyone know how to stack swf files so what ever one you would load it always goes on top. thanks
rL
Stack Order?
I'm experimenting for the first time with stack order in flash. I'm not sure if that's the right term for it, maybe Z order? What I mean is I want one object to start off behind another and then move on top of it. Specifically I'm creating a menu that I want to have a 3d feel, the menu items would rotate from the foreground to the backround of the menu. Since I don't know what the right term is for this effect I don't know what to search for on the site for examples of how to create this. Can anyone point me to any tutorials or example fla's.
Is This A Stack Issue?
I made an swf that swaps a clip when one of four buttons is rolled over. Each button is on the top layer of an MC.
In the layer below on the button in the second frame, there is a clip that is revealed when the button is rolled over. But this clip is the size of the main stage, and when revealed, it covers up all the other buttons, And disables all buttons.
There is no actionscript in these clips, but is there an AS fix-all that I could use here?
.swf Stack Order
Hi
I have 5 draggable .swfs appearing on stage - I'd like the current .swf clicked to become the top one that appears - so basically clicking the .swf makes its appear on top of the 'stack'.
Any ideas on how this is achieved?
I'm using the basic drag script below to move the .swfs.
Thanx
Dirk
on (press) {
//Start Dragging Movieclip Behavior
startDrag(this);
//End Behavior
}
on (release) {
//Stop Dragging Movieclip Behavior
stopDrag();
//End Behavior
}
Stack Of MCs W/Listeners
I want to create a series of square MCs, edges flush, one on top of the other, which listen to each others positions and sizes and at all times and adjust accordingly. In other words, if there are are 5 10x10 mcs, one on top of the other, if MC1 expands by ten pixels, then MC2 will listen to that and adjust, MC3 will adjust to MC2, MC4 will adjust to MC3, etc. I need it to be pixel accurate, so that there's never any slippage. the MC's are generated via a for loop and attachMovie. I'm assuming I need to assign Listeners to them, but I'm having trouble with Listeners, and would REALLY appreciate any help that can be provided. I'm sure this is something that others have done, it seems like such an obvious implementation, but I cant find it.
thx!
-Z
Stack Overflow?
I'm trying to create a game which involves placing structures. One of the functions involved requires getting permission to place the structure. Currently I'm only using the structure as a placeholder while I work on other aspects. However I'm getting a strange error which I'm hoping to understand.
The problem surrounds the following code:
ActionScript Code:
public function buildingPermission(pPoint:Object,pRadius:Number,pStructureArray:Array):Boolean{
//trace(4);
var permission:Boolean=true;
return(permission);
}
Running this function outputs the following error:
Quote:
verify BuildingManager/buildingPermission()
stack:
scope: [global Object$ BuildingManager$]
locals: BuildingManager Object? Number Array? *
0:getlocal0
stack: BuildingManager
scope: [global Object$ BuildingManager$]
locals: BuildingManager Object? Number Array? *
1:pushscope
stack:
scope: [global Object$ BuildingManager$] BuildingManager
locals: BuildingManager Object? Number Array? *
2:pushfalse
stack: Boolean
scope: [global Object$ BuildingManager$] BuildingManager
locals: BuildingManager Object? Number Array? *
3:setlocal 4
stack:
scope: [global Object$ BuildingManager$] BuildingManager
locals: BuildingManager Object? Number Array? Boolean
5:pushtrue
stack: Boolean
scope: [global Object$ BuildingManager$] BuildingManager
locals: BuildingManager Object? Number Array? Boolean
6:dup
VerifyError: Error #1023: Stack overflow occurred.
at BuildingManager/buildingPermission()
at BuildingManager/placementPermission()
at MouseManager/updateCursor()
Strangely if I remove the commenting from the function so that it actually runs the trace then the function runs perfectly fine, outputs the trace and the function returns true.
What's this all about then?
Stack Bar Chart...HELP
i Have parsed the Xml file,I am able to read the data dynamically,to be more precise,i am able to draw bar chart dynamically but unable to manupilate it to stack bar chart,where i need to draw the bars of different colors one over the other.
That is where i am facing this problem.
Thanks in advance
Overflow Stack Bug
Hello,
I found this strange bug while coding, and wrote it in the simplest way to be sure it was true. Try opening a new AS3 FLA file, and write this code in the Actions Panel:
function someFunc(x1:String, x2:String, x3:Number=0):String
{
var my_result:String = "result";
return my_result;
}
someFunc("someVal1", "someVal2");
Calling someFunc will call a #1023 stack overflow error!!! The only way not to have it is to remove the "x3" Parameter. That's sooooooo strange (and annoying, 'cause before realizing this was a bug i was getting crazy trying to find an error in my original code, which was much more complex).
P.S. i'm using FlashPlayer debugging version 9.0.r47, i hope it's his fault - or maybe there's another reason? Any idea?
Daniel
A Stack Of OnEnterFrames
Hi -
I found this really nice way for btn_mcs to transition but I find I can only apply it to one button!
If I stack up the buttons, give them unique instnce names and use code like attached, they all react in unison.
So - It looks like I'm not using onEnterFrame correctly. Or is there something else I'm missing?
Is there another way for me to pull this off?
TIA some input.
jl
Attach Code
button1.onEnterFrame = function() {
(fade) ? button1.nextFrame() : button1.prevFrame();
};
button1.onRollOver=function(){_root.fade = true;}
button1.onRollOut=function(){_root.fade = false;}
button2.onEnterFrame = function() {
(fade) ? button2.nextFrame() : button2.prevFrame();
};
button2.onRollOver=function(){_root.fade = true;}
button2.onRollOut=function(){_root.fade = false;}
button3.onEnterFrame = function() {
(fade) ? button3.nextFrame() : button3.prevFrame();
};
button3.onRollOver=function(){_root.fade = true;}
button3.onRollOut=function(){_root.fade = false;}
Edited: 11/19/2007 at 07:05:44 PM by jlucchesi
Not Enough Stack Size?
Hi all,
It has been ages since i posted here, ages since i've worked with Flash aswell. But here i am now with a new problem for You all to solve.
Im makin this CD that will have close 20 300 pdf files with various legislation parragrafs, not interesting at all. I have very nice scroller and all the titles are traced from freehand, becouse they had to be layed out in a very particular way and i just couldn't for the life of me get whet i wanted in flash.
So, some of the movieClips i scroll are veeeeeery long, they don't fit on the stage really.
Now, when i try publishing the movie, i get an error sayin more or less (i translate from spanish) this:
Operation could not be completed becouse there was not enough stack space.
I am changing my text to PNGs now to see if this will fix the problem. Just thought i'd post here to see if any of You gurus has anyidea or has seen a similar problem in the past.
Cheers in advance,
Wojtek
Changing Stack Order
Hopefully this is an easy question. How do you change the stacking order of MCs that are on the same layer. I.E. I have two (or more) MCs that depending on events, will pass in front of each other, but I need to be able to change which one is on the top so that it doesn't pass behind the others.
Debugger: Call Stack
Does anyone know where I can get information about the call stack in the Debugger? I searched Macromedia's website for information on the call stack. The search for the 'call stack' brought up a page briefly explaining the new feature of Flash MX.
--------- thanks in advance
Creating Stack Of Texts
hi,
how to create stack of text boxes one by one on a mouse click? I am new to this.pardon me if it is a easy question.
Thanks
John.
Can You Stack Actions Layers?
If I have code for something on one layer thats dedicated to actionscript, can i have another layer on top of that, that is dedicated to different code, or will it be like a blanket and only read the code that is on the top layer?
Stack Object Won't Delete ?
hi
everything (tutorial) working except ... can't delete stack object ?
// code
//-------------------------------------------------------------
// create a stack object
var stack_obj :App_Stack_Interface = new App_Stack() ;
trace( stack_obj ) ;
// Output = [ object Object ] OK new stack object exists
trace( stack_obj . isEmpty( ) ) ;
// Output = true OK new stack is empty
// PUSH elements
stack_obj . push( "test1" ) ;
stack_obj . push( "test2" ) ;
// inspect top element
trace( stack_obj . top( ) ) ;
// Output = "test2" OK last push is top of stack
// POP the top element
stack_obj . pop( ) ;
// inspect top element
trace( stack_obj . top( ) ) ;
// Output = "test1" OK "test1" now last on top of stack
// check is stack empty
trace( stack_obj . isEmpty( ) ) ;
// Output = false OK "test1" is still on top of stack
// POP the top element
stack_obj . pop( ) ;
// check is stack empty
trace( stack_obj . isEmpty( ) ) ;
// Output = trueOK stack is empty ...
// can now delete stack object, right ?
// DELETE the stack object
delete stack_obj ;
// check is stack deleted
trace( stack_obj ) ;
// Output = [ object Object ] NO stack object still exists
// Should be [ undefined ] right ?
// Re-check is stack empty
trace( stack_obj . isEmpty( ) ) ;
// Output = truestill empty
// so, why won't stack object delete ?
//-------------------------------------------------------------
thanks for help
dirge
Accessing The Call Stack
Does anyone know if there is there any way to access the function call stack in AS? For example, if I have a function that can be called from multiple places, is there a way that I can see who called it (other than passing a unique variable from each calling function)?
Movieclip Stack Using Attachmovie
Hi all,
Im trying to load in a stack of the same movieclips from the library which have different instance names (for filling with different images and text)...
Ive got so far as to get the same clip "stacking" with different text on it, but i'm a little bit confused as to how to make them different instances, so i can address them from the root and add dynamic text etc (please see the attached fla)
can anyone help, or give me another solution?
thanks,
hazzus
Mac OS 10.4 Stack Error On Publish
Working with a very large Flash project at the moment that has two source files in the bunch that are 19.8 megs and 42 megs each. When I publish, I'm getting a stack error on these two files.
My mac isn't new, but it should still be able to handle these files. Anyone have any tips on how to get Flash to do it's job and publish through these files? I've also tried publishing them seperate from the project itself, and get the same stack error.
I'm running Flash 9 CS3
My machine is a 10.4 1.67 ghz Powerbook G4, 2 gigs of Ram.
Dynamically Bringing An MC To The Top Of A Stack Of MC's
Hi again everyone.
My last question regarding my map project. It's map which overlay's bus routes as route buttons are clicked. Right now the click of the button simply changes the routes Alpha setting, but I also need each route when clicked to go the top of the stack of routes, while remaining visible or opaque. When the route is unchecked the route needs to disappear. Does anyone know how I might be able to get the last route checked to be the top route in the stack?
If anyone would like to see the project, it's at:
http://www.bigplan.net/sdbp/client/s...ets/secmap.swf
I can send over my code as well if it would help.
Thanks again.
Stack Memory Full
Recently I was working on a huge 120mb presentation from flash exporting quicktime MOV files. That project is over and done with, but now i can't export this new project as a swf and the file size of the fla is only 8mb. Each time i publish or publish preview the warning is can't export because stack memory is full. How do I fix this?
Im on a MAC running the latest version of OSX 10.4.9 Dual 1.8 CHz PowerPC G5 and 3 GB of ram.
here is a screen shot of the warning
http://www.imagefactoryla.com/flashSTACK/
Please help me someone
Thanks for your time
Edited: 04/16/2007 at 09:13:32 AM by Carmelo Di Bella
FMS 2 License Stack Issue
Due to increased traffic on our FMS we need to stack another license. We have 2 licenses on 2 servers. We would like to take the license from server 2 which is not in use and stack with the license already on server 1.
When I try and add the serial via the console it invalidates both licenses and switches to developer edition. I have checked the admin log and this shows the following error - "Volume licenses can not be mixed with any other kind. Switching to developer edition." If I remove either serial key the remaining key becomes valid again and so switches back to 150 connections mode.
Any help would be much appreciated.
Event Stack Problem
Hi,
I've created a movieclip and placed it onto the stage. In this movieclip I've created another movieclip.
On the root I placed this peace of code:
Code:
stop();
_root.test.onRelease = function() { trace("outer"); }
_root.test.testje2.onRelease = function() { trace("inner"); }
The problem is that when you click on the 'root' mc outer is traced but when you click on testje2 placed in test, nothing happens.
Is there a solution for this problem?
Stack Overflow Error
can anybody explain this in newbe terms?
Btn_GemStones_mc.buttonMode = true;
Btn_GemStones_mc.addEventListener (MouseEvent.ROLL_OVER, HomeSparkGem);
Btn_GemStones_mc.addEventListener (MouseEvent.ROLL_OUT, HomeSparkClearGem);
Btn_GemStones_mc.addEventListener (MouseEvent.CLICK, link_gem);
var link_gem:URLRequest = new URLRequest("http://www.blah.net/blahblah.html")
function link_gem(event:MouseEvent):void
{
navigateToURL(link_gem);
}
I get
1023: Incompatible override.
1021: Duplicate function definition.
Get Call Stack Method?
Is there a way for me to find out what function called another function (aside from putting traces in every function call)?
Example:
function func_1(){
doSomething();
}
function doSomething(){
trace("I was called by " + getCallStack());
//something
}
... then the output might be:
I was called by _level0.func_1
(or something to that effect)
MovieClip Stack Problems
Hi guys.
Im trying my luck with a breakout clone but i dont seem to have much luck these days. Anyway, i have a function which manages a stack of "balls" which are movieclips. The problem is when the lowest ball in the stack is removed, all the rest just "stop". Any new ball that is created is written over the next ball in the stack.
Does it have anything to do with duplicateMovieClip()? im sure this is something simple.
Here is my code
Code:
function manageStack() {
for (i=1; i<=balls; i++) {
var tmp = eval("ball"+i);
if (tmp.outOfBounds==false) {
//do nothing
} else {
tmp.unloadMovie();
for(b=i; b<=balls; b++)
{
var oldball = eval("ball"+b+1);
duplicateMovieClip(oldball,"ball"+b,depth+b);
oldBall.unloadMovie();
var newball = eval("ball"+b);
}
balls--;
}
}
}
All help is appreciated.
thanks guys
Using Actionscript To Move Symbols To The Top Of The Stack
Hello there, great to find a good 'Flash' help site.
I was wondering if it is possible, using Actionscript,to rearrange the order of symbols in a stack. I want to make a certain movie clip move to the top of the stack using actionscript in the movie clip itself. Cheers!
[MX04] XML-Driven Stack Menu
Hi there,
I've been sitting on this for a while, and cannot seem to get it working quite as I intended. It is basically an xml-driven menu, in which menu items stack to fit the sizable stage - contained within a scrollable container should they exceed the stage area.
Now all this works perfectly bar one aspect ... I can't get my head around how to build a second level (sub-menu) to fit into this scalable container. At present I have been trying to recycle the main function in order to acheive this, but this is making the actionscript become too busy for me to properly work it out.
Anybody care to help me out!?
Thanks.
PHP Code:
boxLayout.flowBoxes = function (){
var _loccontainer = _root;
var _locthis = this;
columns = (Stage.width - _locthis.margin) / (_locthis.boxwidth + _locthis.margin);
maxrows = Math.floor((Stage.height - _loccontainer.container._y - _locthis.margin) / (_locthis.boxheight + _locthis.margin));
columns = int(columns);
rows = Math.ceil(boxLayout.totalBoxes / columns);
boxheight = _locthis.boxheight;
boxwidth = _locthis.boxwidth;
missing = (rows * columns) - boxLayout.totalBoxes;
evencount = columns - missing;
even = boxLayout.totalBoxes - evencount;
shift = ((_locthis.boxwidth / 2) * missing) + ((_locthis.margin * missing) / 2);
if (_locthis.totalBoxes > _locthis.totalBoxes && columns < !_locthis.totalBoxes){
containerWidth = _locthis.totalBoxes * (boxwidth + _locthis.margin);
} else {
if (_locthis.totalBoxes <= boxLayout.minwidth || columns < boxLayout.minwidth){
columns = boxLayout.minwidth;
containerWidth = boxLayout.minwidth * (boxwidth + _locthis.margin);
} else {
containerWidth = columns * (boxwidth + _locthis.margin);
}
}
for (i = 0; i < _locthis.totalBoxes; i++){
newX = int(i % columns) * (boxwidth + _locthis.margin);
newY = int(i / columns) * (boxheight + _locthis.margin);
if (align != "center"){
_locthis.thumbnails_array[i]._x = newX + _locthis.margin;
} else {
if (i < even){
_locthis.thumbnails_array[i]._x = newX + _locthis.margin;
} else {
_locthis.thumbnails_array[i]._x = newX + _locthis.margin + shift;
}
}
_locthis.thumbnails_array[i]._y = newY + _locthis.margin;
}
difference = Stage.width - containerWidth;
banner._width = containerWidth - _locthis.margin;
_loccontainer.container._x = (Stage.width - containerWidth - difference / 2) - (_locthis.margin / 2);
_loccontainer.banner._x = Stage.width - containerWidth - difference / 2 + (_locthis.margin / 2);
if (allowResize == "true"){
h = container._y + container._height + boxLayout.minwidth;
trace("Resize = true");
}
container._y = 80;
scrollbar.scrolltrackbg._height = Stage.height - scrollbar._y;
scrollbar.scrollTrack._height = Math.floor(scrollbar.scrolltrackbg._height - 2);
maskedView._height = scrollbar.scrolltrackbg._height;
maskedView._width = Stage.width;
scrollbar._x = container._x + container._width;
scrolling();
};
categories.xml
PHP Code:
<?xml version="1.0"?>
<categories>
<category
name="Food"
sponsor="">
<product
name="Apple"
pic="apple.jpg">
<info>
<p>Juicy fruit</p>
</info>
</product>
<product
name="Bread"
pic="bread.jpg">
<info>
<p>Soft and buttered</p>
</info>
</product>
<product
name="Banana"
pic="banana.jpg">
<info>
<p>Yellow and soft</p>
</info>
</product>
<product
name="Cake"
pic="cake.jpg">
<info>
<p>Chocolate or sponge</p>
</info>
</product>
<product
name="Pasta"
pic="pasta.jpg">
<info>
<p>Soft and plain</p>
</info>
</product>
</category>
<category
name="Drink"
sponsor="">
<product
name="Water"
pic="water.jpg">
<info>
<p>Soft and wet</p>
</info>
</product>
</category>
<category
name="People"
sponsor="">
<product
name="Harry Potter"
pic="harrypotter.jpg">
<info>
<p>Overhyped character</p>
</info>
</product>
<product
name="Father Christmas"
pic="fatherchristmas.jpg">
<info>
<p>White bearded hermit that makes a social effort once every year</p>
</info>
</product>
<product
name="Easter Bunny"
pic="easterbunny.jpg">
<info>
<p>Fluffy tailed egg eater</p>
</info>
</product>
</category>
</categories>
Can You Stack Movie Clips On The Same Spot
How can I stack Movie clips on the one spot.
is there some action script that i can say at x and y co-ordinate put a marker and then i can have like 10 different MCs on that spot that depending on what button is pushed launches on of the mc's
[CS3] Singleton1 <-> Singleton2 Gives Stack Overflow. WHY
Hello,
I have been trying to do something which seems simple: namely to let two singleton classes get information from each other, but this generates a stack overflow. I don't understand why!!!
Could someone please tell me why this happens and how I can work around it? I attached the fla and as files
Thanks a bunch
golfjeindezee
How Can I Stack/swap Button Depths?
I have an animation of a map that will have 10 different button areas that when moused over, pop up, and screen back all other graphics/buttons.
The problem is that I can't figure out how to make the last moused over button become the very top layer in the swf file.
Each button is on it's own layer in the timeline. Each button is animated in the "Over" section with a movie clip.
How can I dynamially change layer order or change button stacking order? Is this possible. Was told to try the swap depth method:
myMC1_mc.onRelease = function() {
this.swapDepths(myMC2_mc);
};
myMC2_mc.onRelease = function() {
this.swapDepths(myMC1_mc);
};
but was later told that this will only work on Movie Clips...NOT buttons.
Can it be done with buttons somehow?
See:
http://www.persudiodesign/client/showroom3.html
for the example of what I'm trying to explain. I want the area LGN and DPT to come to the front and screen out each other on mouse-over. Both are buttons not movie clips.
My only button code on the main timeline is:
stop();
LGN_button.onRelease = function(){
getURL("http://www.centralpt.com/pageview.aspx?id=9227", "_self");
};
DPT_button.onRelease = function(){
getURL("http://www.centralpt.com/pageview.aspx?id=9228", "_self");
};
Dynamic Click And Drag Stack
I'm attempting to create a game where the user will be presented a stack of coins. They will then be instructed to click and drag any number of those coins and drop them onto other mc's on the stage.
I'd like to allow the user to click and drag one at a time, or several (or the whole stack) by clicking on any coin in the stack and dragging them over. Meaning, if you've got a stack of 10, and you want to take three over, you'd click on the third coin down and those three would be grouped together and the array split at that point.
I've gotten as far as the code below, which creates an array of coins (10) and stacks them one on top of the other. The click and drag aspect is not working. I can't figure out how to specify the onPress/Release for each mc created in the array so they can be dragged as I mention above.
Code:
import flash.geom.*;
var container:MovieClip = setUpContainer();
var ln:Number = 10;
var spacer:Number = 3;
var duplicate:MovieClip;
for(var i:Number = 1; i <= ln; i++) {
var newY:Number = i * (container._height + spacer);
duplicate = container.duplicateMovieClip("clip-" + i, i, {_y:newY});
trace(duplicate); // _level0.clip-[number]
duplicate.onPress = function () {
duplicate.startDrag();
}
duplicate.onRelease = function () {
duplicate.stopDrag();
}
}
function setUpContainer():MovieClip {
var mc:MovieClip = this.createEmptyMovieClip("container", this.getNextHighestDepth());
var w:Number = 100;
var h:Number = 10;
container._x = 50;
container._y = -50;
var fillType:String = "radial"
var colors:Array = [0xE3E302, 0x000000];
var alphas:Array = [100, 100];
var ratios:Array = [0x00, 0xFF];
var matrix:Matrix = new Matrix();
var spreadMethod:String = "reflect";
mc.beginGradientFill(fillType, colors, alphas, ratios, matrix, spreadMethod);
mc.lineStyle(2, 0x000000, 100, true, "none", "round", "miter", 1);
mc.lineTo(w, 0);
mc.lineTo(w, h);
mc.lineTo(0, h);
mc.lineTo(0, 0);
mc.endFill();
return mc;
}
Thanks so much for any assistance on this.
Current Method Name? (Call Stack)
Currently I use ...
Code:
protected function callingMethod():void {
var pattern:RegExp = new RegExp(".*at .*\/(.*)\(\)\[.*\]");
var e:Error = new Error();
trace("Calling method was:", e.getStackTrace().split("
")[2].match(pattern)[1]);
}
... which in effect will get me the method name which called callingMethod().
In order to support reflection via describeType(), a class has to be extended with the class containing callingMethod which isn't very developer friendly (very fragile in general). Are there any other methods I can use to figure out from within a method, which name it has?
Creating A Dynamic Stack Bar Chart
Hi,
I am trying to create a dynamic stack bar chart,using XML data structure,
can somebody assist me with examples,Help.
Thanks in advance,
Omit Trace Causes Stack Underflow
I'm building a Flash AS3 project in CS3. The SWF works just fine until I change the publish settings and omit trace. When I do this, I always get a stack underflow error when testing the movie from the IDE. When I allow trace I always run without errors.
Has anybody else encountered this problem before?
|