Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




How To Limit Scrolling Using SetInterval



Hi,

I have created an interactive map in Flash that scrolls up and down, left to right through the click of a button. Right now if I click and hold a button, my map image scrolls on for eternity. How can I set a limit to how much the map image can scroll in each direction?

Right now I have the following ActionScript on a separate layer:

function moveimage (movex, movey) {
_root.mapmc._x += movex;
_root.mapmc._y += movey;

}
function zoomimage (xfactor, yfactor) {
_root.mapmc._xscale += xfactor;
_root.mapmc._yscale += yfactor;
}


This is an example of the code that I would use to get the map image to scroll in a certain direction:

on (press) {
var intervalID = setInterval (_root.moveimage, 0, -1, 0);
}
on (release, releaseOutside) {
clearInterval (intervalID);
}

Please somebody help me, I can't get it to stop scrolling once it pasts the width/height of the image. I would greatly appreciate it if anyone can be of any help.



ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 11-03-2006, 09:57 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Help How To Limit Scrolling Using SetInterval
Hi,

I have created an interactive map in Flash that scrolls up and down, left to right through the click of a button. Right now if I click and hold a button, my map image scrolls on for eternity. How can I set a limit to how much the map image can scroll in each direction?

Right now I have the following ActionScript on a separate layer:

function moveimage (movex, movey) {
_root.mapmc._x += movex;
_root.mapmc._y += movey;

}
function zoomimage (xfactor, yfactor) {
_root.mapmc._xscale += xfactor;
_root.mapmc._yscale += yfactor;
}


This is an example of the code that I would use to get the map image to scroll in a certain direction:

on (press) {
var intervalID = setInterval (_root.moveimage, 0, -1, 0);
}
on (release, releaseOutside) {
clearInterval (intervalID);
}

Please somebody help me, I can't get it to stop scrolling once it pasts the width/height of the image. I would greatly appreciate it if anyone can be of any help.

How Do You Limit Scrolling?
I've wrote a listener to scroll a window that has been masked.  So far I have come up with this:

CODE// Attach mouse wheel scroll listeners.
_global.mWheel = new Object ( );
        mWheel.onMouseWheel = function ( delta:Number )
        {
            // Recalculate delta.
            delta *= 3;
            
            // Shift being held down?
            if ( Key.getCode( ) == 16 )
            {
                // Speed up more.
                delta *= 2;
            }
            
            // Get new position.
            newPos = _root.catpg._y + delta;
            
            // Scrolling Down?
            if ( newPos < _root.catpg._y )
            {
                // Reached end of page?
                if ( ( _root.catpg._height - newPos ) )
                    ;
                trace( _root.catpg._height - newPos );
            }
            
            // Scrolling up?
            else
            {
            }
            
            _root.catpg._y = newPos;
        }
Mouse.addListener( _global.mWheel );

How To Limit The Scrolling Area
hello...
i'm newbie in actionscript. Please help me on how to limt the scrolling area. Actually i'm developing the scrollable interface (map).now my map can be scrolled (up,down,left and right0 but the problem is if i click outside of the map, it still scrolling.Same problem occured when i press button outside of the map. the actionscript is like this:

var trackFlag:Boolean;
var yChange:Number;
var xChange:Number;
function onEnterFrame() {
if (trackFlag == true) {
xChange = (200-_root._xmouse)/20;
yChange = (200-_root._ymouse)/20;
if (_y+yChange<0 && _y+yChange>-500) {
_y += yChange;
}
if (_x+xChange<0 && _x+xChange>-500) {
_x += xChange;
}
}
}
function onMouseDown() {
trackFlag = true;
}
function onMouseUp() {
trackFlag = false;
}
function mapClass() {
}

thanks alot
-jacklynn-

Is There A Limit To Scrolling Dynamic Text?
I have a pretty large amount of text that I need scrolled. When i enter the text and add a scrollbar from the flash components it works but doesn't scroll all of the text for some reason. Is there a reason for this? Is there some sort of limit on the amount of characters it will scroll?

Scrolling Movie Clip That Use's Get Property Need To Set Max Scroll Limit Any Ideas?
i have a movie clip which use's the set, get property commands.

the problem is setting a max scroll point so that the clip stops scrolling at a certin point.

i have a set of actions on piticular frames.

for example

y = getProperty("office", _y);
setProperty ("office", _y, Number(y)-10);

what happans is a have a set of buttons which on roll over go to these frames.

im trying to set a max limit by using the if command but im having trouble

Any help people would be great. Always appreciate it

Mo...

SetInterval And Scrolling Type
I've written this little code and it works just fine.

But it feels kinda clunky since I have to initialize maxCount to be greater than zero because the setInterval fires before the .length is set.

Is there a way to streamline this?

I tried doing the setInterval in the onLoad but I think my scopes were all wrong.

Any suggestions on how to make this more efficient code?


Code:
var loadText:LoadVars = new LoadVars();
var intervalId:Number;
var count:Number = 0;
var duration:Number = 5;
var maxCount:Number = 1000; //<--------------Here I have to prime

my_txt.wordWrap = true;

function flowMovingText():Void {
my_txt.text = loadText.mainStory.substr(0, count);
if (count>=maxCount) {
clearInterval(intervalId);
}
count++;
}

loadText.onLoad = function(success:Boolean):Void {
if (success) {
maxCount = this.mainStory.length;
} else {
my_txt.text = "Unable to load external file.";
}
};

loadText.load("story.txt");
intervalId = setInterval(this, "flowMovingText", duration);

[AS2] Help Scrolling News - SetInterval?
I need some help with this section of a site I am working on. It is a small news area. It pulls news in from an external .xml file.

Everything works fine pulling in the information and changing it when clicked on the the news selector buttons ( I, II, III, IV ), however, I'd like it to initially display the first news story and the at a determined rate go from one story to the next (ala slideshow). Then if they click one of the selector buttons, the slide show stops and displays the corresponding story and it either just clickable from there orrrrrr after a predetermined time it goes back to the slideshow (this orrrrr part is very optional). But I do really need to get the initial story to display and the "slideshow" function to work for sure. Can you help?!

Stop Scrolling With SetInterval
Hi! Searching for a way to continuous scroll a loaded MC (with static text and buttons to different frame labels) , i´ve found this code

on(press){
scrollI=setInterval(scrollF,100,-1)
// use setInterval(scrollF,100,1) attached to your down button.
}
on(release){
clearInterval(scrollI);
}

attached to a frame:
function scrollF(dir){
_root.myText2._y += 10*dir;
}


on the Macromedia Forum (form kglad), which I think is very simple and works great. My question is, is there any way I can stop scrolling (up or down) when my loaded MC (myText2) has reached certain _y position?

I hope i´m posting in the right forum and i´m clear enough (sorry if my english is not so good).

Thanks in advance.

Iceman.

Problem With Scrolling Image - SetInterval
Hello, I'm having a problem with my scrolling image box. The purpose is to have the image change every 3 seconds(there are five different images). I have set up a movieclip with five different frames and given them 5 different buttons for the user to click, which is working correctly as does the scrolling through the images which is set up with a setInterval function.

The problem is when I click on the "back" and "next" buttons. They advance the images, but don't do so at the correct speed. I think it has something to do with my set/clear Interval, but I'm not exactly sure how to fix it. I've attached the file below. Any help would be greatly appreciated!

Thanks.

Scrolling Text Have A Limit On Amount Of Text It Can Scroll?
Hi all,

I've created a dynamic scrolling text field with two buttons up and down. It seems to work fine except that it won't scroll the entire document. It gets about half way and just stops and won't let you scroll any further. I can't figure this one out and I can't seem to find any info on any forum. The file was created in text edit and doesn't have any funky characters in it and the down button code is:
on (release) {
biosText.scroll+=5;
}

the text code is:
stop();
loadVariables("biosText.txt", this);

Thanks

Scrolling Text Have A Limit On Amount Of Text It Can Scroll?
Hi all,

I've created a dynamic scrolling text field with two buttons up and down. It seems to work fine except that it won't scroll the entire document. It gets about half way and just stops and won't let you scroll any further. I can't figure this one out and I can't seem to find any info on any forum. The file was created in text edit and doesn't have any funky characters in it and the down button code is:
on (release) {
biosText.scroll+=5;
}

the text code is:
stop();
loadVariables("biosText.txt", this);

Thanks

Scrolling Text Have A Limit On Amount Of Text It Can Scroll?
Hi all,

I've created a dynamic scrolling text field with two buttons up and down. It seems to work fine except that it won't scroll the entire document. It gets about half way and just stops and won't let you scroll any further. I can't figure this one out and I can't seem to find any info on any forum. The file was created in text edit and doesn't have any funky characters in it and the down button code is:
on (release) {
biosText.scroll+=5;
}

the text code is:
stop();
loadVariables("biosText.txt", this);

Thanks

Scrolling Text Have A Limit On Amount Of Text It Can Scroll?
Hi all,

I've created a dynamic scrolling text field with two buttons up and down. It seems to work fine except that it won't scroll the entire document. It gets about half way and just stops and won't let you scroll any further. I can't figure this one out and I can't seem to find any info on any forum. The file was created in text edit and doesn't have any funky characters in it and the down button code is:
on (release) {
biosText.scroll+=5;
}

the text code is:
stop();
loadVariables("biosText.txt", this);

Thanks

Custom Objects And Internal SetInterval Loops -> A Problem Stopping The SetInterval
Let's say I had a class like this:


PHP Code:



var someVar = new Widget();

function Widget() {
    // Some variables, etc...
    this.int_someCommand = 0;
    // Activate the function on instantiation
    this.someCommand();
};

Widget.prototype.someCommand = function() {
    clearInterval(this.int_someCommand);
    this.int_someCommand = setInterval(this, 'someCommandLoop', 50);
};
Widget.prototype.someCommandLoop = function() {
    trace("THIS IS A WIDGET LOOP!");
}; 




...now, I was always under the impression that if you delete an object in Flash, the setInterval loops associated with it would die as well. But when I try to:


PHP Code:



// At some other point in my timeline...
delete someVar; 




or:


PHP Code:



someVar = new Object(); 




...the original loop is still running (I can tell just by reading the trace). How do I go about properly terminating a setInterval loop inside an Object without having to call a clearInterval()? Or is a clearInterval() the only way?

Thanks.

Tween Class, Does It Use Setinterval? Getting Strange Setinterval Type Problem
I have a gallery with small thumbnails. Upon clicking a thumbnail, I am using the Tween class to pull clips from an array and fade them between each other, loading the clips into a container.

When I click the thumbnail it loads the .swf fine and plays the Tween Class animation just as it's supposed to, however if I click any other thumbnail and go back to that first one the timing gets totally screwed up and the fades get jittery and overlap each other, much like it does with setInterval if you don't clear the intervals.

Is there a way to clear the Tween Class? Does it's timer run on setInterval?


This is the code I am using for the tween class


Thanks!


Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;

//content movieclips put into an array
var mcArray:Array = new Array(content1, content2);
for (var k in mcArray) {
mcArray[k]._alpha = 0;
}

// tween class has something called "OnEnterFrameBeacon" and it is added to the stage
// when we import the as file, so I wanted to get rid of it.
var n:Number = 0;

function playFades() {
if (n<mcArray.length) {
var tween_handler1:Object = new Tween(mcArray[n], "_alpha", Strong.easeIn, 0, 100, 1, true);
tween_handler1.onMotionFinished = function() {
//trace("motion finished by "+mcArray[n]);
//n++;
var tween_handler2:Object = new Tween(mcArray[n], "_alpha", Strong.easeIn, 100, 0, 3.5, true);
tween_handler2.onMotionFinished = function() {
//trace("motion finished by "+mcArray[n]);
n++;
playFades();
};
};
} else {
n = 0;
playFades();
}
}
playFades();

Key Limit
Hello everyone!

I'm learning to code a simple game in flash,and I was trying to figure out how to make it so only one arrow key will function.For example the way it is now is when you press Left and Up it will go diagnol.That is not exactly what I wanted.So basically the way I want it is if you were to press Up it would go up,if while you were holding Up you pressed left the left key would not be functinal. (Up and Left are used only as examples.)

I learned this script on one of the tutorials on this site:

onClipEvent(load){

moveSpeed=10;

}

onClipEvent (enterFrame) {


if (Key.isDown(Key.RIGHT)) {
this._x+=moveSpeed;
} else if (Key.isDown(Key.LEFT)) {
this._x-=moveSpeed;
}


if (Key.isDown(Key.DOWN)) {
this._y+=moveSpeed;
} else if (Key.isDown(Key.UP)) {
this._y-=moveSpeed;
}
}


If someone could help that would be excellent.Thanks!-Hayden

Limit
Hi

|I've a image that zoom in and zoom out and movie it in a movie clip
but i want limit it that dont go to outside movieclip area.

but cant script this limitation.
i program this limit in 1X but in other size cant control


----
Danial

Limit
Hi

|I've a image that zoom in and zoom out and movie it in a movie clip
but i want limit it that dont go to outside movieclip area.

but cant script this limitation.
i program this limit in 1X but in other size cant control


----
Danial

How Do I Limit # Of MCs?
well i have this code

Code:
rand=Math.round(Math.random()*10);
if(rand==1){
duplicateMovieClip("glowdrop", "glowdrop" add x, x);
setProperty("glowdrop" add x, _x, random(550));
x = Number(x)+1;
}
if(rand==2){
duplicateMovieClip("glowdrop2", "glowdrop2" add x, x);
setProperty("glowdrop2" add x, _x, random(550));
x = Number(x)+1;
}
how do i limit the # of movie clips that can appear on the stage at one time?

MC Limit
Hey there!

I'm having a dragable MC inside my main movie, like this:

ActionScript Code:
on(press){startdrag(this);}on(release){stopdrag();}

But I want to set a limit for the drag, let's say my main movie is 300X300 pixels, and I want my MC to be dragable only inside the 300X300 pixels, how do you do this?

How Do I Limit # Of MCs?
well i have this code

Code:
rand=Math.round(Math.random()*10);
if(rand==1){
duplicateMovieClip("glowdrop", "glowdrop" add x, x);
setProperty("glowdrop" add x, _x, random(550));
x = Number(x)+1;
}
if(rand==2){
duplicateMovieClip("glowdrop2", "glowdrop2" add x, x);
setProperty("glowdrop2" add x, _x, random(550));
x = Number(x)+1;
}
how do i limit the # of movie clips that can appear on the stage at one time?

Xpos Limit
I was wondering whether you might be able to help me out with one more thing. I wanted to make a button that controlled the xposition of a target. However, how can i set a limit to the distance that the target can move. For example, I dont want it to move past say 500px. Thanks again.

How Would You Limit A Percent Value?
Hello Flashers allovadaworld
well my problem is to limit to two digit after the point a percent loaded here is the code:

onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
download = _root.getBytesLoaded()/1000 +" Ko télechargés";
bytesleft = _root.getBytesTotal()/1000-_root.getBytesLoaded()/1000+" Ko restants";
percent = _root.getBytesLoaded()/_root.getBytesTotal()*100+"% pourcentage achevé";
if (percent == "100%") {
_root.gotoAndPlay(23);
}
}

this displays me the following as output (for the percent part of course):

20.32113538495 %
So what should I add to limit the output to two digit (20.32%) or even no digit at all after the comma

Flashly yours

AttachMovie Limit?
Greetings:
I am having a heck of a headache with an apparent limit to attachMovie. I have a number of symbols (gallery items) that I have limked in the library for export, these symbols (MCs) have a 12 cell alpha fadein and a stop. My corresponding buttons attach these to an instanced MC which I named screen01. As I wanted to have a "cross-fade" and not a flashing replace effect I created a variable 'num' for the level and in each button on press I changed the variable num=num+1 then on release I attached; screen01.attachMovie("linkname", "newlinkname", num) so the fade is soft and on top of the old level. It works great.....for 9 transitions and on the 10th nothing happens. I have almost 40 items. I am sure it's something simple like setting a variable to accept 2 digits or something else, but I thought I had done it and now, while not quite square one, I have been set back again.

Any help is most appreciated either to solve this scenario or if there's a better solution, I would love to know
thanx
-Raystarjet

Limit Y Axis
After a too long of a break I'm trying to learn Flash all over again.

Here's a run down of what's what. Movie height of 200 with a dragable MC that has a height of 250. At the start the y axis of the clip is -25.

This is the code I'm using for moving the clip up and down

y = getProperty("/hidden", _y);
offset_y = (start_y+y)/16;
cur_y1 = getProperty("/movie1", _y);
setProperty ("/movie1", _y, Number(cur_y1)+Number(offset_y));

I want the clip to movie either up till the y axis = -50 then go no higher or have the movie go down until the y axis = 0 then go no lower.

I've been looking for the answer for a while and have tried a half a dozen things with some funny results and I'm sure it's an easy thing.

Can anyone please point me into which scripting commands I need to look at to learn how to do this?

How Can I Limit _x Movement.....
As stated, how can I limit the movement of this sample navigation so that it doesn't completely leave the screen?
http://www.roberttruex.com/misc/slid...dsensitive.swf
Any help is greatly appreciated!

ROBT

Limit Of LoadMovie K?
I have a Flash movie that loads about 10meg worth of files.. It starts to slow down at about the 6meg mark - is there a max limit to how much K one Flash MX movie can take in and use?
Has anyone else encountered problems when using LoadMovie from a server and it take a while just to get it to acknowledge that it's supposed to be loading a file? (Goes from -1 to full K almost instantly)

Thanks
-><|TheMadFlasher|><-

Limit Their Options
You know when you visit some websites and when you right click the .swf file, you can only see the one or two options instead of the whole list of play options?

Well I was wondering how to accomplish that. Any help would be greatly appreciated.

Thnx for you time and advice.

How Many The Limit Of Frames I Can Use ?
I record the live view and save it into server.
It was record a .flv file.
I'm going to import the file into the .swf file.
How many the limit of frames I can use or
how long did I record the live view?

Any help would be greatly appreciated.
Thanks in advance.

Best regards,

softip

Max Frame Limit
OK - I've looked at all the other posts about max frame in flash, and they all say 16,000. But here is my question...

Is that 16,000 frames for the entire .fla file (adding up all the frames that are in the child mc timelines and other symbols)

OR

Is that 16,000 frames per timeline?

My main timeline is only 200 frames, but I'm afraid that if I add up all my frames from movieclips that are played from that timeline, it will be near the magic 16,000 ceiling.

Follow me?

Limit Variable
Hello.

Anyone know how to set a limit to a variable number?

Speed = 0;

??limit?? =3;

Thanks

Frame Limit?
First off, I'm really sorry if this has been posted before. The search function kept returning 404, and this is sort of urgent.

Is there a limit to the ammount of frames you can have in flash? I've got quite a big (~21,000 frames) animation project very close to completion and once it gets to scene 10, the animation stops. You can still hear the sounds, but no animation. I have checked for random "stop" keyframes and things like that, as well as tested the video on several different computers. The problem follows the file from SWF, to EXE to HQX. Any ideas?

Scene Or MC Limit?
For some reason, this scene I just put in.. things just aren't working right. My hittests just aren't working. Everything is exactly the same. I've actually recreated the scene a few times.

It's really weird...

Time Limit
I am trying to develop a quiz where the player has a limited time to answer the question before it moves on to the next one. My problem is that I do not know how to make the next mc load after the defined time has passed. Is this an actionscript task, or do I need something else like javascript? Can anyone please help me. This project is soon due and I am a stress case!!!

Limit Randoms
i need help with my script:
where on rollovers the object changes to a random colour.. however my stage is black and sometimes the object may change to black or a dark enough colour where the object is no visible.
i want to limmit this so that the object never turns too dark that is will not be visible
here is my script but it won't work correctly.

on (rollOver) {
this.stop();
objcolor = new Color(_root);
objcolortransform = new Object();
objcolortransform.ra = random(100);
objcolortransform.rb = random(255);
objcolortransform.ga = random(100);
objcolortransform.gb = random(255);
objcolortransform.ba = random(50);
objcolortransform.bb = random(150);
objcolortransform.aa = random(100);
objcolortransform.ab = random(0);
objcolor.setTransform(objcolorTransform);
if (objcolortransform<={rb:-150, gb:-150, bb:-150}) {
} else {(objcolortransform.rb=100, objcolortransform.gb=150, objcolortransform.bb=10) }
}

Frame Limit
I've reached the framelimit of 16000 in Flash.

I am making a presentation and I want to make it so that when there is no activity for 20 seconds the presentation goes back to the beginning. I achieved this by inserting frames but now I don't have enough frames left.

Is there a way to make some kind of timer in actionscript that can do the same thing? So, when there is no user input for 20 seconds the movie skips back to the beginning?

hope someone can help me out with this

Frame Limit
is there a "frame limit" ? cause im at 16000, and it just stops for no reason.

Asfunction Limit
OK, I've spent a week building something based around the asfunction function just to come to the realization that it has a 127 character limit. I'm passing PHP variables through it and if there isn't a workaround I've wasted a week of my life....

Does anyone know of a workaround???

MC Size Limit?
I a working in MX. I have a Movie Clip full of text that is 3000px tall. I am scrolling it with two buttons. That all works fine. The problem is, not all of the MC is showing up in the published SWF. It shows up in the scene in flash. Is there a max height that a movie clip can not exceed.

Flash + Xml : The Limit
hi everybody
we are ok now that flash can't create file
but when i've an empty xml file can i add to it nodes from flash (using my_xml.appendChild)?? :
i want to save the position and names of all shapes in a flash movie to an xml file to load them later from this xml file

Limit To Else If? What The Hell Is Going On Here?
Is there some kind of limit to the amount of Else Ifs that you can use? This is making no logical sense to me.

I have a 'if else' statement that works absolutely fine until I add a 7th 'else if'. The 7th 'else if' is formatted exactly the same as the other 6.

Another question : How to you copy and paste code into these forum so that it keeps its formatting. I've seen others do it in a seperate blue box.

Thanks
David

How To Limit A Movieclip
ok first of all I'm using Flash MX2004

now lets talk about my problem...

I build some Portfolio file for my main movie file..
I made a Long MC Called "Tumbs" thats sit inside "TubmsMC" i use some trick with button that call MC script to make the "Tumbs" MC to slide inside "TumbsMC" Mask and see Each of 3 part it has inside.

ok now i've got the problem!!
the "Tumbs" MC slide good inside "TumbsMC" mask but!...i want the button to ignore the script call if the "Tubms" location is in the edge of the visual part.. in this case its the left part.

but i cant get it! how i dont it?

i wrote something like this in the button Action:

on (release) {
if (_root.tumbsMC.tumbs._x != -205.7) {
with (left_script) {
gotoAndPlay(2);
}
}
i checked the _x location in the Properties window of flash after moving in with the mouse to the edge location..
BUT IT DIDN'T WORK!

how can i set limit point for the script?!
i need to set Left Middle and Right points of stop to write the script like i want it to be..
in normal words i want it to be like this:

first i set some var called "State" i set it "middle" because this is my start point..

then when i press the right_button i check the state only if the state is middle of left you can move right because if you move right when its in right it will be empty (the edge of the MC visual)

then movie it 400px in the loop its something like move 20px for 20times

then my problem again..
if _x location is ?!?! set state to middle
if _x location is ?!?! set state to right
if _x location is ?!?! set state to left

i'm sorry its that long post i just want it to be clear for you =)

THANKS A LOT this forum is very very helpfull!!
Macpire

Recursion Limit
Hi, i want to know how to disable the 256 recursion limit that flash has. I created a recursive function that requires more than 256 recursion calls. What can I do?

Scene Limit?
Is there a limit to the # of scenes a movie can have?
The movie im making now relies heavly on scenes.

Ammo Limit
im making a first person shooter. i want to limit the ammo. how would i do it???
and how would i make it so the player be able to change weapons???



thanks,
bobet

Anyone Know How To Limit A _yscale? With AS
I have a movieClip that changes _yscale onEnterFrame.
I would like to put a Limit on how far it can scale.
let's say a _yscale of 300 pixels is the target limit

here's my current code:
code: onClipEvent (enterFrame) {
_yscale = _root.gAmpLeft5*10+Math.random()*50;
}

"gAmpLeft5" is a variable that changes onEnterFrame
and it's a number

Limit On LoadMovie Url Is 247?
Does anyone know if there is a work around for this? I'm only concerned about targeting local files.

Swf Problems... Is There A Limit?
Here is the deal... I am making a navigation that is very simple in flash 8. 12 words of text saved as png's with transparencies, each word has a button layer over it. Each of these sets (button / word) is set as it's own movie clip with all the actionscripting and frame labels that make the rollover work (simple color fade in / out). The problem I am having is this: Each of the words is a png with transparency exported from photoshop. Up to 11 words, everything is fine. However when I add the 12th word, one of the other words will disappear from the movie on preload / export. I have noticed this before in other instances, where transparent png,s overlap, some parts will simply disappear. Is there a limit to the number of overlaps you can have? Am I doing something wrong? Someone please help!

Is There A Limit To The Size Of XML?
Hi,

I am finding a strange limit to an XML file I am using in Flash 8.
The XML file is 10.3K which has 32 items in the structure.

Here is one item:

<videos>
<catagory>
<feature>
<height1>240</height1>
<width1>360</width1>
<height2>120</height2>
<width2>160</width2>
<image>thumbnails/annie1.jpg</image>
<link1>videos/annie_bortz360_3256K_Stream.flv</link1>
<link2>videos/annie_bortz160_356K_Dial_Up_Stream.flv</link2>
<text>A testimonial from Annie Bortz</text>
</feature>
</catagory>
</videos>


When I increase the XML file to over 22 features The Flash routine
doesn't quit but just doesn't see them and when I do a trace on the length,

_global.totalSubC = topNode.firstChild.childNodes.length;

It reports 22 even when there are over 22 features in the file.

I have gone over the XML file for hidden characters but there are none.

Is there a limit to parsing XML in Flash?

Best regards
Toby

Copyright © 2005-08 www.BigResource.com, All rights reserved