Knowledge Base |
Important! All new questions are usually answered within the next business day.
TxEff AS3.0
(views: 19227)
TxEff is a AS3.0 Flash Component especially developed for web designers that need to include text animations within their Flash movies in a fast and reliable manner.
Apply transitions on multiple text from xml file
(2008-03-04 - views: 6648)
Q: Can I read different lines of text from an .xml file and apply text effects on each other, one by one ?
A: Yes, you can. The example file contains a few lines read from the xml file which are displayed in a text field one after the other, with show and hide TxEff transitions.
NOTE: You can change the settings for each of the effects and you can read those settings from the same xml file. But that scenario is not the scope if this demo. It's not so hard to do that either: you only need to setup the xml so it will contain the extra information (you can choose whatever structure you want for it), read the extra information from the xml file and change the TxEff parameters according to that. For more details on how to work with xml files, please consult the Flash CS3 documentation on this subject.
Files: TxEff_MultipleTransitionsFromXML.zip
NOTE: You can change the settings for each of the effects and you can read those settings from the same xml file. But that scenario is not the scope if this demo. It's not so hard to do that either: you only need to setup the xml so it will contain the extra information (you can choose whatever structure you want for it), read the extra information from the xml file and change the TxEff parameters according to that. For more details on how to work with xml files, please consult the Flash CS3 documentation on this subject.
Files: TxEff_MultipleTransitionsFromXML.zip
User Comments
Change duration
To change the time interval between two text effects, you need to change the delay parameter of the Timer() constructor.
posted by negush on 2008-04-01
To change the time interval between two text effects, you need to change the delay parameter of the Timer() constructor.
Add a delay on start ?
How would you add a delay on the start of the animation ? I would like to prevent it to run immediately after loading.
Thanks !
posted by GdabZ on 2008-05-21
How would you add a delay on the start of the animation ? I would like to prevent it to run immediately after loading.
Thanks !
Use the Timer class
In AS3, you can use the Timer class to execute different actions at a specific time or after a specific delay. See http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/utils/Timer.html for more details.
posted by negush on 2008-05-22
In AS3, you can use the Timer class to execute different actions at a specific time or after a specific delay. See http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/utils/Timer.html for more details.
Flash CS3 documentation
I check in there and less your an expert both with TxEff and AS3 it makes it very difficult to figure out the xml code to have a transition for each line of text. Bummer
posted by digitalcomplexion on 2008-07-01
I check in there and less your an expert both with TxEff and AS3 it makes it very difficult to figure out the xml code to have a transition for each line of text. Bummer
Flash CS3 documentation
The .xml file for this example is custom made. You can come up with any structure you want and you can implement the slide show logic based on your .xml structure. What you have there is only an example. You can set up your own xml and apply your own slide show logic, if you wish.
posted by negush on 2008-07-02
The .xml file for this example is custom made. You can come up with any structure you want and you can implement the slide show logic based on your .xml structure. What you have there is only an example. You can set up your own xml and apply your own slide show logic, if you wish.
How to play frame once the slideshow is completed?
Once all lines from the xml are shown, how can I go to and play frame 12 for example?
And how can I change the transition effect? It is not possible to be changed through the FlashEff Panel?
Thanks!
posted by pioneer on 2009-01-30
Once all lines from the xml are shown, how can I go to and play frame 12 for example?
And how can I change the transition effect? It is not possible to be changed through the FlashEff Panel?
Thanks!
How to play frame once the slideshow is completed?
Hello
First you have to check when the last line of text has been displayed ,then stop the timer and add "gotoAndPlay()" command.
So the new "transitionHandler" function should show like this:
function transitionHandler(evtObj:TXEFFEvents):void {
function transitionHandler(evtObj:TXEFFEvents):void {
if (transitionType == "show") {
// When a show transition has endded, the timer starts, so it
// will introduce a delay of one second until the hide
// transition starts.
timerObject.start();
}
else {
// When a hide transition has endded, the text from the next
// <text> node is written into the text field. Then, the
// transition type is set to "show" and a new show transition
// starts. When the last line of text has been displayed, the
// timer is stoped,and add gotoAndPlay command.
textIndex++;
if (textIndex == xmlData.text.length())
{
timerObject.stop();
gotoAndPlay(1);
}
else
{
example_txt.text = xmlData.text[textIndex];
transitionType = "show";
textEffect.transitionEffect(transitionType);
}
}
}
posted by florodebat on 2009-02-02
Hello
First you have to check when the last line of text has been displayed ,then stop the timer and add "gotoAndPlay()" command.
So the new "transitionHandler" function should show like this:
function transitionHandler(evtObj:TXEFFEvents):void {
function transitionHandler(evtObj:TXEFFEvents):void {
if (transitionType == "show") {
// When a show transition has endded, the timer starts, so it
// will introduce a delay of one second until the hide
// transition starts.
timerObject.start();
}
else {
// When a hide transition has endded, the text from the next
// <text> node is written into the text field. Then, the
// transition type is set to "show" and a new show transition
// starts. When the last line of text has been displayed, the
// timer is stoped,and add gotoAndPlay command.
textIndex++;
if (textIndex == xmlData.text.length())
{
timerObject.stop();
gotoAndPlay(1);
}
else
{
example_txt.text = xmlData.text[textIndex];
transitionType = "show";
textEffect.transitionEffect(transitionType);
}
}
}
animate on cuepoints
instead of using the timer is it possible to use cuepoints to action the animations.
posted by davedave on 2009-06-30
instead of using the timer is it possible to use cuepoints to action the animations.
write to the support
Please open a new support ticket and write there a detailed description of what you are trying to achieve and you will get an answer as soon is possible.
http://www.jumpeyecomponents.com/support/open.php
posted by florodebat on 2009-07-02
Please open a new support ticket and write there a detailed description of what you are trying to achieve and you will get an answer as soon is possible.
http://www.jumpeyecomponents.com/support/open.php
Any Chance of an TxEff2 Example?
Thank you for the excellent example that has made many of these concepts very clear. Unfortunately, my attempts to tinker with it using TxEff2 only break it. Any chance of an updated version of TxEff_MultipleTransitionsFromXML.zip that incorporates TxEff2? Many thanks in advance.
posted by spedley on 2009-07-04
Thank you for the excellent example that has made many of these concepts very clear. Unfortunately, my attempts to tinker with it using TxEff2 only break it. Any chance of an updated version of TxEff_MultipleTransitionsFromXML.zip that incorporates TxEff2? Many thanks in advance.
write to the support
Please open a new support ticket and write there a detailed description of what you are trying to achieve and I am sure that shortly you will get the example you need.
http://www.jumpeyecomponents.com/support/open.php
posted by florodebat on 2009-07-06
Please open a new support ticket and write there a detailed description of what you are trying to achieve and I am sure that shortly you will get the example you need.
http://www.jumpeyecomponents.com/support/open.php
Is it possible to have internal text?
I am trying to create a banner with this, can you give me an example how to use this with e4x?
posted by Chilipoker on 2009-07-24
I am trying to create a banner with this, can you give me an example how to use this with e4x?
please write to support
Please open a new support ticket , write there a detailed description of what you want to achieve and shortly you will get an answer.
http://www.jumpeyecomponents.com/support/open.php
posted by florodebat on 2009-08-11
Please open a new support ticket , write there a detailed description of what you want to achieve and shortly you will get an answer.
http://www.jumpeyecomponents.com/support/open.php
Login to post your comment



How do I control the duration between the different text elements. Say 3 seconds between each text animation.