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 


User Comments

Duration?
posted by octaneplus on 2008-03-31

How do I control the duration between the different text elements. Say 3 seconds between each text animation.
Change duration
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 ?
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
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
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
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?
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?
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
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
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?
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
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?
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
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 login to post your comment



Back

Knowledge Base Search

Enter keywords below:
Advanced Search
FlashEff 2.0
Create professional flash photo slideshows online

FREE Flash Stuff

Check out these free, fully functional AS3.0 Flash components by Jumpeye:

FlashEff 2.0 Free
(free for non-commercial use)

JC Panorama
(free for non-commercial use)

JC Play List
(fully free)

Basic Menu Pack V3
(free AS3 version)

MCTE V3
(free AS3 version)

JC Player
(free for non-commercial use)

JC Flash Map
(free for non-commercial use)

Flash Bookmarks
(fully free)

ActionScript Bridge AS2-AS3
(fully free)

JS Charts
(free for non-commercial use)

Free Trial Versions

The trial versions do have a major limitation. They will ONLY run into debugger flash player versions, such as the Flash IDE player and the activeX FP used by developers.

Switch from Free Trial version to Full version.

You can switch from Trial to Full versions in a blink of an eye.
See this tutorial in order to find out how.

We accept Google Checkout

Google Checkout Acceptance Mark

Secured by VeriSign