[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swftools-common] Actionscript / animation together - problem

From: Jacek Brzeski
Subject: [Swftools-common] Actionscript / animation together - problem
Date: Tue, 26 Jul 2005 11:32:15 +0200
User-agent: Debian Thunderbird 1.0.2 (X11/20050331)

I'm pretty new to SWFC and I think it's a great product. I've been learning the syntax and possibilities it has for last couple of days and right now I came across problem with actionscript and swfc animation combined together.

What I'm trying to do is:
1. create a text object (for example movieclip, that is sprite in swfc language)
2. actionscript it to add some effects
3. move back to classic swfc: want to change position of that sprite.

My first attempt was:

.frame 3
# starting with text loading...
        .sprite output01
                .text outtext01 font=Trebuchet size=30% color=red 
                .put outtext01 pin=center x=0 y=0 scale=100%
        .put output01 pin=center x=300 y=20
                output01._xscale = 700;
                _root.temp = 700;
                output01._alpha = 0;

.frame 10
# text just going into right place...
                output01._xscale = _root.temp;
                output01._alpha = (700 - output01._xscale) / 6;
.frame 11
                if (_root.temp <= 100) {
                        output01._xscale = 800;
                } else {
                _root.temp -= 100;

######## - that was actionscript part
.frame 20
#       .del output01

.frame 21
#       .put output01 pin=center x=300 y=20

.frame 30
        .change output01 pin=center x=375 y=250 scale=75%

I had to del the object, .put it again and then I had the access to move it with .change command. Using just .change didn't have any effect (like it was still blocked by actionscript or what)?

Can you help me? Thanks!

Jacek Brzeski

reply via email to

[Prev in Thread] Current Thread [Next in Thread]