swftools-common
[Top][All Lists]
Advanced

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

Re: [Swftools-common] issue with an object


From: Pablo Rodríguez
Subject: Re: [Swftools-common] issue with an object
Date: Sat, 07 Nov 2009 22:35:20 +0100
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

Chris,

thanks for the reply.

As far as I can understand, the code you sent me in sprite3.sc
(http://lists.gnu.org/archive/html/swftools-common/2009-11/msg00006.html)
does the opposite I'm trying to, because it shows and hides the
background, not the button itself.

My question about your reply to Matt Morgan on showing and hiding a
sprite: why is .attachMovie() and .unloadMovie() a better method to hide
a button than rendering it invisible? Loading and unloading sprites
seems far more complicated to me than ".visible=0".

On your min-fscreen.sc version, I'm afraid it doesn't work in any
combination I tried. I don't know what is happening there, sorry, but I
don't get it.

The only way for me to fix everything, to get fscreen right (I mean,
right centered, invisible after button is released and with other
objects visible) was to create a button with fscreen and to mix both
buttons in a sprite (code bellow).

If I had to experience something from your code, it was I didn't work
for me :-(.

And next reply to your next message,


Pablo



.flash filename="min-fscreen.swf" version=7 fps=12
.outline fscreen_outline: M 62.78125 18.703125 L 43.367188 23.734375 L
38.390625 43.09375 L 42.109375 39.375 L 48.671875 45.9375 L 65.625
29.039062 L 59.0625 22.421875 L 62.78125 18.703125 z M 199.71875
18.703125 L 203.4375 22.421875 L 196.875 29.039062 L 213.773438 45.9375
L 220.390625 39.375 L 224.109375 43.09375 L 219.132812 23.734375 L
199.71875 18.703125 z M 83.125 45.9375 C 73.429688 45.9375 65.625
53.742188 65.625 63.4375 L 65.625 133.4375 C 65.625 143.132812 73.429688
150.9375 83.125 150.9375 L 179.375 150.9375 C 189.070312 150.9375
196.875 143.132812 196.875 133.4375 L 196.875 63.4375 C 196.875
53.742188 189.070312 45.9375 179.375 45.9375 L 83.125 45.9375 z M
48.726562 150.9375 L 42.109375 157.5 L 38.390625 153.78125 L 43.367188
173.140625 L 62.78125 178.171875 L 59.0625 174.453125 L 65.625
167.835938 L 48.726562 150.9375 z M 213.773438 150.9375 L 196.875
167.835938 L 203.4375 174.453125 L 199.71875 178.171875 L 219.132812
173.140625 L 224.109375 153.78125 L 220.390625 157.5 L 213.773438
150.9375 z .end
.outline fulls_outline: M 17.5 0 L 245 0 C 254.695312 0 262.5 7.804688
262.5 17.5 L 262.5 179.375 C 262.5 189.070312 254.695312 196.875 245
196.875 L 17.5 196.875 C 7.804688 196.875 0 189.070312 0 179.375 L 0
17.5 C 0 7.804688 7.804688 0 17.5 0 z .end
.filled fscreen outline=fscreen_outline fill=#969696ff color=#969696ff
.filled fulls outline=fulls_outline fill=#64646496 color=#64646496

.button fscr_button
    .show fscreen as=idle
    .show fscreen as=area
    .show fscreen as=hover
    .show fscreen as=pressed
.end

.button fs_button
    .show fulls as=idle
    .show fulls as=area
    .show fulls as=hover
    .show fulls as=pressed
    .on_release:
        Stage["displayState"] = "fullScreen";
        fscr_button._visible = 0;
        fs_button._visible = 0;
    .end
.end

.sprite fullscreen_button
    .put fscr_button
    .put fs_button
.end

.swf first_slide "orphanworks-first.swf"
.frame 1
        .put first_slide
        .stop first_slide
        .put fullscreen_button
        .stop fullscreen_button

    .action:
        slide_height=Stage.height;
        slide_width=Stage.width;

        fullscreen_button._x = (slide_width-(fullscreen_button._width))/2;
        fullscreen_button._y = (slide_height-(fullscreen_button._height))/2;

    .end
.end


Chris Pugh wrote:
> Pablo,
> 
> Attached is your original code.  Comment out the .put and .stop
> commands for each individual
> object in frame 1, one at a time ( as indicated ).  Compile and run
> the code for each one.  Observe
> what happens.   Remember also, that all three objects are at being
> embedded on the same stage,
> at the same depth level.  Do this, and then Grasshopper, enlightenment
> may be yours. ;o)
> 
> Now, here is a reply I gave to Matt Morgan on the matter of showing
> and hiding a sprite,
> 
>   http://lists.gnu.org/archive/html/swftools-common/2009-10/msg00140.html
> 
> I've revised the code, applying it to your little issue. Compile the
> swfc code, press the button and
> see what happens.  Hope it will give you food for thought,  maybe
> start you off in a slightly
> new direction.
> 
> HTH.
> 
> Regards,
> 
> 
> 
> Chris.
> 
> 2009/11/1 Pablo Rodríguez <address@hidden>:
>>
>> Ricardo Pedroso wrote:
>>> See if the following script is what you want:
>>>
>>> [...]
>>>
>> Many thanks, Ricardo, for your help.
>>
>> Your script is partly what I'm trying to do, but there is an issue: add
>> "fscreen._visible = false;" after the ".stop full_screen" and this will
>> erase also first_slide and full_screen, where it actually shouldn't.
>>
>> fscreen doesn't work well with ActionScript. I have just discovered that
>> the problem is that if I create a button with fscreen, everything works
>> fine (source at http://www.ousia.tk/min-fscreen.txt).
>>
>> Am I missing something when creating fscreen or have I hit a bug in swfc?
>>
>> Thanks for your help,
>>
>>
>> Pablo
>>
>>
>>




reply via email to

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