PDA

View Full Version : Text slowing down motion tween


poab
01-09-2002, 05:49 PM
Hi,

This seemed like the most appropriate place to put the query, but it may have been better in actionscripting, Anyway:


I'm building a searchable directory of all newspaper, magazine and other print publications in Scotland. Because there's quite a lot of them, and only a few might be relevent to a visitor I don't want to have to load all of the text. Therefore I'm using the load variables technique to import from txt files, as and when required.

Basically the set up is; main movie>movieclip(with instance name)>information(that changes dependent on instance name)

There's also some other bits and pieces including some static text, and a mask. My problem is that the motion tween that brings the info. on screen is really very VERY slow.

I read something Jesse posted about there being a problem tweening dynamic text under a mask, so I tried deleting the mask, but it didn't make any difference whatsoever. So that can't be the problem.

If you look at the file you'll see exactly what I mean (Sorry there's no loading page yet, it won't take that long though):

http://www.press-cuttings.com/testing/readingList.html

It's a bit rough because I only started building yesterday, but: At the top is the swf with the text included. Click any of the buttons to open the info. Click on the space it used to occupy to close it. After you open one or two you'll notice everything slows down. Now, close all of those and go to the file below it, that's identical in everyway, except I've deleted the text boxes. This one works the way it's supposed to.

My best guess was that the file is constantly accessing and then reaccessing the txt files that hold the content. But when I deleted just the dynamic text and left myself with only static text (anything that's italicised) the problem persisted.

Because swf below will be equally slow if you don't close the info from the swf above it must be draining the system's resources, but I don't know how if it's doing it when the dynamic text boxes are removed.

If anyone has the slightest inckling of what it might be please let me know, because I'm running out of ideas.

cheers.

tg
01-09-2002, 06:06 PM
check for stuff running in the background, i checked it on a NT box with 600mhz/256mb and it hit 100% cpu for explorer when i clicked on a button, even once it was open, it stayed at 100%. so i don't think it is the animation that is hitting the cpu.
are you doing this with a tween, have you thought of making the card(popout) an mc, loading the data into the mc and then just using as to move the mc into position?

poab
01-10-2002, 10:22 AM
Hi,

I've been checking and there's nothing whatsoever happening in the background. The information is all in a MC. That's only got one frame. That movieclip is motion tweened under a mask. Above that there's some other movie clips that that animate the title and a seperate one as different invisible buttons to control everything, that's it.

Thanks for the suggestion about a.s.ing the motion. I'll try that now.

cheers

Tink
01-10-2002, 12:50 PM
i posted a file about robert penners easing dynamic tweening in the actionscript forum that might be of some help or reference.

has lots of different tweens such as ease in, ease out, ease in and out.

lol - sounds kinky huh!

BLEEDA

poab
01-10-2002, 03:47 PM
Hi,

Thanks for all the help. I know what it is. Because I was using

onClipEvent(enterFrame){
blahblah
}

The movie was loading the variables from the txt files every single frame. I used enterFrame rather than any of the others because none of them seemed to work.

So anyway, I'm not sure why but, all I needed to do was use another movieclip inbetween the one holding the motion tween and the one holding the dynamic text. (It doesn't actually do anything other than act as a buffer.

It's probably not a good way of doing it, but I've tried everything else and it works, so thanks very much.

cheers.