Breaking Apart Large Piece Of Text = HUGE Slowdown ?
This is so weird....I made textblock of 25 lines of text in Adobe Caslon type. I broke it all apart, turning each line into a movieclip and then turning each word into a nested clip. Can't do it any other way, cause I need to scroll the whole text through a mask and have some words fade out earlier than others. But the problem is that the CPU usage in both MX 2004 and the standalone flash player is over 90% !!!! The scrolling, without ANY code other than a simple mcText.tween("_y", -500, 60, "linear", 0) to move it up, makes it all look choppy!! UpdateAfterEvent doesn't make a different either (it's as useless as usual). Any advice/hints would be VERY much appreciated. My assignment is getting to run late like that
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 11-30-2004, 12:51 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Breaking Apart Large Piece Of Text = HUGE Slowdown ?
This is so weird....I made textblock of 25 lines of text in Adobe Caslon type.
I broke it all apart, turning each line into a movieclip and then turning each word into a nested clip.
Can't do it any other way, cause I need to scroll the whole text through a mask and have some words fade out earlier than others.
But the problem is that the CPU usage in both MX 2004 and the standalone flash player is over 90% !!!! The scrolling, without ANY code other than a simple mcText.tween("_y", -500, 60, "linear", 0) to move it up, makes it all look choppy!!
UpdateAfterEvent doesn't make a different either (it's as useless as usual).
Any advice/hints would be VERY much appreciated. My assignment is getting to run late like that
Breaking Down A Large Flash
I have a family tree site that is getting really big. I want to break it into several small flash files and load them into a master flash movie. I’m thinking this will make editing easier too. Is this possible? Once I have my smaller flash files how do I go about putting them into one seamless large flash piece?
Breaking Large Swf Into Smaller
I have found out that swf files are limited to 16000 frames, and my 23,000 frame 4.2 meg swf needs to be broken up into smaller pieces.
My aim is to get each swf all preloading in turn (not concurrently) whilst it streams, not only being downloaded one after the other but also playing consecutatively one after the other without stopping between movies. I don't want the movie to only begin downloading at the end of the previous movie!
In other words I'd like it to act like just one swf file.
I am wondering if anyone has some actionscript code to share, perhaps using onLoadComplete or other solution. I am an actionscript beginner.
Thanks.
Large Map, Breaking It Up And Loading As Needed
Can someone make or find me the tutorial where you walk around and before you walk to far action script load the next map. it would be like:
123
456
789
I need something where if you are at 8 and you move your hero up it will load map 5 before it gets on screen, so as your walking you will see 5 and 8. then if you walk right you could see 5,8,6, and 9. If you moved up more 8 and 9 would go out of view and unload.
I have seen a tutorial for this, I just can't find it.
Help Loading Large (huge) XML Files
Hi all,
I have a new project I will be working on shortly that will involve loading a 70,000KB XML document. I am pretty sure there is no way I want to load the whole thing before the user can start using the data. Does anybody know what I would have to do to work with this large of a file in Flash? Any suggestions on books or websites that might offer a solution would be great. I am not expecting full documentation and/or code just a point in the right direction on how to get this done.
Thanks
Flash CS3, Downloading A Library Piece By Piece
When I make a new clip in a library ,or a new sound, I have an option to export it in a first frame. If I turn off that option, how can I export it later using actionscript? The problem is that a huge sound file, for example, would normally download itself before preloader has a chance to show up. So this is not a question of how can I download another file, but how can I choose which part of a swf to download first?
I hope that I don't sound too confusing.
Bizarre Flash Breaking ... I'm Also Reaching Breaking Point...
Hi all,
I did a little Flash project a while ago:
http://www.theproblemofnothing.com
I just visited it recently here at work, on Firefox v. 2.0.0.2, and after loading the icons, it broke. Stopped dead. Yet it works on this comp on IE7. I tried another computer at work, and it worked in Firefox, but not in IE7 ... ? Bizarre. I'm posting this in the Actionscript section as I'm using lmctween.as, and I think that might be the issue.
Another issue that might be complicating things is my use of SWFObject for the main movie, and then loading SWF files externally into that movie. Or it might be the preloader I'm using and how I'm using it (eg. _root, etc.) Or something else.
I dunno guys. Everyone here's baffled. I'm sad. Please help! The site is above, and the FLAs can be found here:
http://www.theproblemofnothing.com/_fla
tpon.fla is the main movie, while art.fla is what I used to generate each file. Thanks a ton, and ... thanks!
Sincerely,
Mark (decisionman).
Bizarre Flash Breaking ... I'm Also Reaching Breaking Point...
Hi all,
I did a little Flash project a while ago:
http://www.theproblemofnothing.com
I just visited it recently here at work, on Firefox v. 2.0.0.2, and after loading the icons, it broke. Stopped dead. Yet it works on this comp on IE7. I tried another computer at work, and it worked in Firefox, but not in IE7 ... ? Bizarre. I'm posting this in the Actionscript section as I'm using lmctween.as, and I think that might be the issue.
Another issue that might be complicating things is my use of SWFObject for the main movie, and then loading SWF files externally into that movie. Or it might be the preloader I'm using and how I'm using it (eg. _root, etc.) Or something else.
I dunno guys. Everyone here's baffled. I'm sad. Please help! The site is above, and the FLAs can be found here:
http://www.theproblemofnothing.com/_fla
tpon.fla is the main movie, while art.fla is what I used to generate each file. Thanks a ton, and ... thanks!
Sincerely,
Mark (decisionman).
Slowdown With Scrolling? (Long Text)
Ok, this is also posted on the actionscript forum, because Im not sure if its my code, or my objects.
Someone has made a movie with a different set of text on each frame, the text goes out of the viewable area.
I have been asked to make these frames appear in a pop-up on another flash and be scrollable.
i thought this would be easy...just cut and paste them into a movie clip, then using a mask to hide the rest of the text.
However, it is going painstakingly slow.
Seems to be a performance issue, but it might be my code.
Any help with the code, or optimisation elsewhere would be helpfully.
Heres a simplified version of the flash;
http://www.darkflame.co.uk/flashwork..._popuptest.fla
Code for the scrolling;
_global.MoveUp = function(text) {
_root.ITproduct.IT_productlist._y = _root.ITproduct.IT_productlist._y+6;
updateAfterEvent();
//trace('press');
}
Called and stopped by;
on (press){
//this._parent.IT_productlist._y = this._parent.IT_productlist._y +10;
//_global.scrollon = "yes";
clearInterval(IntervalID);
IntervalID = setInterval(MoveUp,100);
updateAfterEvent()
//updateAfterEvent();
//MoveUp();
//scroll on
}
on (release) {
//this._parent.IT_productlist._y = this._parent.IT_productlist._y +10;
clearInterval(IntervalID);
updateAfterEvent();
//scroll off
}
which is linked to a button.
I dont know if this is a actionscript problem, or the way the page is made, or both.
I think it may be nothing to do with the code, but rather something to do with the long block of text. I notice if its shorter, it scrolls ok for a few seconds before freezeing....as if flash dosnt like text "offscreen" ?
Any help would be appreciated.
Thanks in advance,
Thomas Wrobel
ps. If I havnt been clear, please check out the file, the problem can be seen obvious when you compile and hit the arrow.
Zooming Vector Images To Huge Huge Sizes
Hi guys,
Im working on an intro project that requires me to scale a part of a (vector) image fullscreen. For example, there is a scene of a person on a couch (full body pose), so the eye is really small. The next scene/image is a speck on that person's eye.
My solution so far is to use tweens. I have an image at a hundred percent and scale it to as much as 100000%(yes, i do it manually, hope we had a bigger stage than 2880x2880 px). To get rid of useless processing overhead, i converted the entire tween to key frames and cropped of all parts that fall offstage.
BTW, this presentation runs at fullscreen (800x600). My question now is there a way to zoom into something using tweens that would emulate the www.sofake.com effect? wherein the zooming starts slow, then runs constant, then finally slows down at the end? a combination of easing ins and outs on a single zoom sequence with 3 or 4 keyframes? any help would be much appreciated. thanks.
sorry no file to display, private stuff for company.
Niong
Need A Small Piece Of Actionscript - Dynamic Text
I'm not new to Flash MX, I've been using it for years, but I've only ever made animations because I've just never been any good at scripting games. However, I recently came up with a pretty decent game idea that only requires two small pieces of actionscript (one of which I already have).
The bit I already have (as you probably know from reading it) is to edit the value in a dynamic text box:
Code:
name.text = number(name.text)+number("1")
This I have tested and know works fine (the '+' can also be replaced with '-' or '=', easy)
But I need another bit. I need some actionscript that will work as a trigger (like "on(press){") and I want the trigger to be (in human speak) "instantly, once name.text has a value of (more than/less than/equal to) X".
All I got so far is
Code:
if(anything.text == "1"){
That does work ok but it requires an extra trigger above it and I don't want another trigger, it all has to happen instantly.
I know I don't make much sense some times, I'm just not very good at putting words together for things like these.
Either way, whether you understand or not, your help would be appreciated.
Changing The Selected Piece Of Text Size
Hi dears,
Is there any way to change the size of a piece of text selected from a input text field?
I mean change dynamically something like this:
These online forums are for user-to-user discussions of Adobe products, and are ....
To:
These online forums are for User-to-Userdiscussions of Adobe products, and are ...
Could we?
Cheers,
Caracol _@v
MX: Is It Posible To Search And Replace Through A Piece Of Dynamic Text?
If you go to my site www.fransgaard.com and click on websites you will be able to click links in the text for Royal British Legion. This is not very clear so I want to give these links-in-text a colour.
Now, since the content is pulled in from a XML file it would be easy fot wrap the links in a FONT tag with a COLOR assignet, but I prefer not to do this for two reasons:
1: I don't like having design elements in my XML because it means I would have to change the XML file if I change layout (and let's face it with 10 layouts in 3 years there IS a serious chance it might happen again)
2: If I did add a colour it would also add a colour to the white shade behind the text and that would look nasty.
So what I am asking is: Is there anyway to do a Search and Replace function in FLash MX so I could search all dynamic text for say <a and replace it with <font color='#ff0000'><a?
Breaking Apart Text
I want to break apart and animate some text. I have a letter in keyframe 1. Then, in keyframe 15, I choose "modify-break apart" and make my changes to the letter by using the select tool. Next I created a motion tween. However, when I test the movie, the letter doesn't break into pieces (to reflect keyfram 15). Any help would be appreciated!
Breaking Apart Text
Is there a way to break apart text fields created with actionscript, or a way to use alpha values with them?
dave
Breaking Text Apart
I imported a gif with chrome text
says
MINISTERS
OF
JUSTICE
ORGANIZATION
What i want to do with it is break apart the text so i can do an alpha fade with all the letters except the first letter in each word, MOJO.
When i try to go to modify break apart , it does not let me do it,or it selects the background as well, what am i doing wrong?
Breaking Text
is there to knew (some kind of parm in action-script) if there was line brake inside dynamic text field?
thanks
kuller
Text Breaking
Is it possible to break text over different lines in Actionscript?
i.e
Code:
text = "Bla bla bla bla bla
bla bla bla"
like that? I have tried doing that but it comes up with a syntax error. Is there a specific bit of code you need.
Breaking Text
I have a text field called text. in the first frame of the timeline, i put this code.
_root.text="Dog, cat, gun, man, tennis";
what i would like to do is to be able to put those into seperate rows. How would i do this? Like in HTML one can put "br" inbetween text and make it split. How can you do this with actionscript?
Breaking Apart Text
when i break apart text for some reason it keeps filling in letters, i.e. O's become filled circles.. This is happening with a few different fonts that i tried, including a pixel font i downloaded.. Does anyone know how i can stop/avoid this?
Currently using standard text boxes, font size is multiples of 8, positioning is on whole numbers..
The fill appears after the second break apart.
Cheers
Text Breaking Apart
Hello,
Me again! I know where the tool for breaking text apart, however when I right click on the desired text only one letter breaks off and the other letters disappear??? my frame rate is 24 and the frames between breaking are 20. Please help!
Thanks.
Ron
Breaking Text Onto It's Own Line
Is there a way to make the text that you are inputing into a dynamic text box through it's variable start on a new line using actionscript? I am working with a prompt from an input text box, then transfering it into a dynamic text box, and I want everything that goes into the dynamic text box to go into it on a new line.
Breaking Text And Animating Each
hi all,
My first time here, and I am excited to be here.
I have a huge request. I am doing a basic website for my church and one of the nice features I want to add to the site is a flash intro.
The church has a logo.
The logo has, I believe a dove or eagle perched on top of the name.
Please see attachment
The name reads:
Eagle
KINGDOM
Concepts Ministries
What I would like to do is break the logo into 3.
The first one will be the Concepts Ministries.
I want it to slide into place from the left.
Then sliding into place from right is the word KINGDOM
Finally, I would like to have the eagle fly in and perch on top of KINGDOM.
How difficult is this?
Can a beautiful heart assist me on this please?
Thanks in advance.
Breaking Apart Input Text With AS
Hi there, just wondering if there's any way to break apart an input text field into static text boxes (with individual characters) using actionscript. My problem is that I want user input to feed into an input textfield inside a movie clip that will be animated, but the animation won't work with input text, only static text. So basically, is there a way to convert input text to static text using JUST actionscript that is executed along with everything else?
Thanks.
Since When Is Text So HUGE?
I've done a simple interface to load some values from a database in some dynamic text fields; it is a kind of news viewer to display date, title and body of max 4 news. works like a charm btw. the problem is, the .swf is gigantic! Man, it's a white movie of 400 x 300 px with some dyn tex boxes and it's about 350 kb!!!! Is it normal that dyn fields weight so much or I'm doin something VERY wrong in the exportation of the movie?!
Breaking Dynamic Text To A New Line
I have just downloaded one of the FLA's used for animating text in flashtyper and I want to animate a block of text, but I can see no way of breaking the text that I put in the text Variable on to a new line, it just animates in one continuous line...
Any suggestions
Cgi Scripts Breaking Due To Text Input
Hey folks,
I've got a flash file that submits text to a PHP script for storage in a database. There are various characters and combinations of characters that will break the script. For example, two quotation marks in a block of text like this:
This is "properly" quoted.
WILL NOT break the script, but a single quotation mark by itself like this:
It"s a typo!
WILL break it.
I've tried to replace this character with actionscript, but haven't gotten my [if substr(textblock, i, 1) eq QUOTE] statement to work properly...
Also ( [ [] / : characters are problematic.
Is there a standard method for handling this problem? I've got a scheme for encoding the characters into special character pairs (`1, `2, `3, `4 etc...) and decoding the pairs with actionscript, and a separate chunk of decoding code in the PHP file, because it sends out an email with the text block enclosed. This seems messy to me, and I'm still getting limited errors here and there that I'm still trying to track down.
Any advice would be appreciated.
-steve
Non Breaking Space In Dynamic Text?
Im reading a whole load of xml into flash which all works ok, however instead of putting a singe line space in after a carrage return in the xml it puts a double line space eg:
<studio id="7">
<studio_name>Desk & Stuff</studio_name>
<studio_text>Summit Audio Inc: Tube pre-amp/compressor limiter
Tubtec: Dual Compressor CL2A
TLA: C5021: Valve compressor
</studio_text>
</studio>
becomes
Summit Audio Inc: Tube pre-amp/compressor limiter
Tubtec: Dual Compressor CL2A
TLA: C5021: Valve compressor
if i use html formatting and put <br> in the xml it doesnt seem to work, perhaps it needs escaping?
any ideas would be great
thanks
Non-Breaking Space In Dynamic Text?
I've got a scrollable dynamic text box and I want to manually create a list in it. The problem is that for the every list item, the multiple spaces in front are being reduced to a single space, screwing up the layout of my list. I know that HTML can be utilized and I've even given it a test run, but I don't like the fact that the HTML text doesn't get anti-aliased. Is there a way to force non-breaking spaces into a Flash 8 dynamic text box without using HTML? Thanks in advance!
Breaking Up Text Doesn´t Work?
Hello people!
Strange thing just happen!
When i break apart text , he doesn´t change to graphical object.
Instead you can only select it with the arrow tool and you can still
edit as text!!
I´ve already download projects that use the break command
and when i play it on the flash mx it works, and when i select
any letter from these project , they are as graphical object...
It seems that this kind of bug only happens when i write and
break apart next...
Any ideia?
thanks
www.filete.net
Breaking Text In Letters Problem
I've a text with 200 characters. I want to show that text letter before letter. But when I break apart this text and then distribute to layer, i have 200 layers. This is too much!!!
How can I solve this problem easily, and without any download time issues?
Nico
Thanks
Non-breaking Space In External Text
I'm experimenting with loading from external .txt files, and i am coming across a problem...
If an ampersand (&) terminates the external text, how do I insert an html non-breaking space?
HTML Code:
This is really frustrating...any help would be appreciated.
Regards
Non-breaking Space In External Text
I'm experimenting with loading from external .txt files, and i am coming across a problem...
If an ampersand (&) terminates the external text, how do I insert an html non-breaking space?
HTML Code:
This is really frustrating...any help would be appreciated.
Regards
Huge File = Huge Mess
I'm very new and suck at this. I realize my first problem is my file is too big (500k +)! I can't compress the wav file I'm using anymore! It's now a 364k .mp3 file.
That being said. My Flash movie plays fine and in sync within the Flash toolkit, but on the web or even while previewing the web page while it's still local is horrible. It's out of sync, loops over itself. It starts to lag badly and misses symbols. Just a mess. Any help would be appreciated.
If you need, I can send you the url, I don't really want a lot of traffic
::: Huge Gaps Between Text :::
ok on my site i am calling in a txt file for the latest news part of my site... which you will see at www.popcop.co.uk/home.htm
the txt file is here www.popcop.co.uk/text.txt
Now..... recently there has been these huge gaps appearing between the txt, which you will see, but ive never had this problem before.
What do u think is the problem?
Why Is My Dynamic Text Huge?
Hi -
Text boxes, using LoadVars to bring in the css and the html. When I test the movie I can see that the html is there and I can tell that the css is working because of links, headings, etc. It's all there. The problem is that the text is about 55px!! My css calls for 12 px. What could be causing this?
If the LoadVars wasn't right - there would be no text at all. If the html or css wasn't being loaded, I would get an error in the Output panel. If the css wasn't being applied, I wouldn't see the different styles.
Why is my dynamic text huge?
(stop laughing and try to think of a solution )
Thanks,
Josh
Huge Text In Textfield
Hi guys.
I'm having a problem and was hoping anybody discovered a solution for this.
I am trying to set a *large* chunk of text to a textfield with myTextField.htmlText = "my large text" and it gets really slow if the text is really large.
Don't worry, this is for an offline application
I loaded the text through xml and it's already loaded, thus it is cached, so I guess that's not the problem.
Smaller pieces of text work fine.
Any help would be appreciated.
Dan.
Breaking Line In Dynamic Text Field
Hello guys,
Please help. I have an XML with a node, let's say like this:
Code:
<ROW text="This is a line which needs to be broken right here /n to go on from the other line"></ROW>
How can I break the line exactly where the /n is after I loaded this XML? Or how to change the XML to get this in the easiest way?
Thanks a lot for any comments, opinions, help, etc!
Poco
Breaking Appart Text With AS And Putting In Array. Possible?
Hi,
I need to create a function with takes a text field and does two things with it
The first is to split text up into individual letters with each being a separate symbol. Basically the equivalent to breaking apart the text field, then converting each letter to symbols, then giving each letter its own unique name This is the way I'm doing it now and its very time consuming and not at all easy to update to text.
The second part is to create an array containing all the instant names.
For example if the text was "hello world", the function would create symbols with called n1 (containing h) , n2 (containing e) , n3 (containing l), n4 (containing l), n5 (containing o), and then the array would be [n1,n2,n3,n4,n5]
I'm working on something and if I get past this last problem then its gonna look so good. Thanks in advance,
Julian K
Carriage Return Breaking Dynamic Text
Hello!
I have a user inputted textfield (html) I am calling in dynamically from a Coldfusion variable. Everything works fine IF the user has not simply hit carriage return in their text. <br> and html tags work fine but if the text contains any hard returns my flash file does not display at all...
I am using swfobject...
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var so = new SWFObject("flash/intro.swf", "mymovie", "815", "420", "8");
so.addParam ("wmode","opaque");
so.addVariable ("textBoxer","<cfoutput>#contact.paragraph#</cfoutput>");
so.write("flashcontent");
</script>
....as you can see, my contact.paragraph (the input text) is being placed into my dynamic text box in the flash "textBoxer"...everything works fine as long as the user does not use enter to create a new line - unfortunately it is habit and they all do so...any way around this??
I have tried other variables to be sure its not format/syntax and it pulls them in just fine. Even re-entered user text with <br> rather than enter and it worked...
ANY help is most appreciated. Really hit the wall with this one. Thanks!
Blessings,
Hinsel
Breaking Text Into Movieclips/sprites For Tweening
I work at a firm and one of the things we'd like to do is do some basic text f/x -- fading, moving individual letters in on a swirl, etc. TweenMax seems ideal to do this (particularly the .allTo capability). In fact we've got a project where it's all being done the timeline!
Is there any way in AS3 to take input text (which can be in the form of an existing static textfield, or added dynamically to a dynamic textfield), break it up into individual movieclips or sprites and then tween those separately -- while keeping the text arrangement on screen (spacing, line breaks, etc)? At present we have to go in by hand, and use the IDE "break" command to break the text strings into individual letters, and then, by hand, turn each of those into movie clips. Then we can tween them. Since the text changes often, you can imagine how time-consuming this is (it's for banners -- many, many banners).
One could of course rather easily take text in AS3 and turn each letter into a movie clip -- but how would one be sure of spacing, kerning, line breaks, etc, between letters?
Thanks for any help!
Robert
Breaking Lines In Flash /Dinamic Text From Xml
I´l loading some text from a xml filme into Flash (dinamic text field)
But I can´t break the lines. When trying to break the lines with ENTER on the xml, the flash breaks two lines.
I learned that using #&10; the lines would break just once. But how can I make this if I´m going to build a xml editor using php? Is there another method of breaking lines when desired on xml?
thanks a lot
Managing Huge Text Files
Can anyone help me manage large text blocks in Flash 5?
I want to have a large block (about 200 lines, INCLUDING bold etc). I've simply put the huge block onto the stage (as a movie clip) and managed to get the up-and-down scrolling worked out (using two buttons with Action Script).
The problem is that there is only a finite height on the stage, and my text gets cut off at the bottom. Should I be importing the text from a file? How do I do this, and can I keep the formatting?
Thanks,
Martin Hanstead
Bristol, England
martin@martinz.demon.co.uk
How To Read HUGE Text Files.
Thinking of creating an online Boggle type game in Flash (MX or 8) but ran into a few problems and maybe could use some ideas.
The list of possible words is huge, 100,000 words, about 300K zipped up and 900K uncompressed.
1. Can Flash read a compressed text file? Maybe zLib or gzip compressed file?
2. How to possibly deal with a list of 100,000 words, when thats too many to just put in an array?
Just looking for possible ideas from everyone, a place for me to start looking.
Fonts Huge In Dynamic Text Box
I have a dynamic text box reading a text file for content. The box itself is set for _sans font.
On the machine I created it on, everything works fine. Bring it to work, everything looks fine.
Duplicate the efforts....in a different file and now the actual font inside of the dynamic text box is HUGE.
The new file is reading the exact same text file as the other.
I thought it was a font issue, but on three different machines, the results are the same.
Without getting into a bunch of other code, has anyone had this problem and discovered what the problem was?
Obviously, if it's syntax, that needs code examples, but I wanted to ask first in case someone thought "Oh, yeah, that happened and it was because of.."
I learned you can't put a conditional inside an event handler unless you call that conditional as a function. No code needed to learn that one!
Thanks for any ideas.
Dynamic Text, Huge Problem
Alright, I'm creating a site for a friend and a big problem with the dynamic text on my stage has developed!
Here's my stage (so you can see my settings, etc.)
(The white field under recent news is the dynamic text field, of course)
http://img101.imageshack.us/my.php?image=flashproblem2gz9.png
Now, here's what it looks like when I test the movie :(
http://img148.imageshack.us/my.php?image=flashproblem1kg8.png
(As you can see, the characters are running down the right border, vertically o_0 And it's not an embed problem, I have everything necessary embedded)
Hopefully you guys can help! Otherwise, it'll be hard to get this site on the road xD
|