swftools-common
[Top][All Lists]
Advanced

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

Re: [Swftools-common] wrong positioning


From: Chris Pugh
Subject: Re: [Swftools-common] wrong positioning
Date: Sun, 1 Nov 2009 23:35:15 +0000

Pablo,

2009/11/1 Pablo Rodríguez <address@hidden>:
> Chris Pugh wrote:
>> I didn't say you had done anything 'wrong' in particular.   Simply
>> guilty of having a very tic moment!  ;o)
>ic' = tongue in che
> Chris, I apologize for being rude in my previous reply (I'm afraid I
> don't understand what a 'tic moment' might be).

Thank you.  However, you have nothing to apologise for.  In fact, it was
I who was apologising to you.

   tic = tongue in cheek
   tfic = tongue firmly in cheek

are two somethings I am prone to ( and also guilty of ) more than I care to
mention.  tic comments often get misunderstood, even with the emoticons,
i.e. ;o), in place, and thus win me a lot of 'enemies'!  ;o)

Anyway,

   http://en.wikipedia.org/wiki/Tongue-in-cheek

for a somewhat lengthy explanation!


>> That said,  we see things quite differently,  as do most programmers (
>> not that I consider myself to be one that is )).  Thus I'm glad to see you
>>have finally lost that excess code!

> All my questions to the list are out of my ignorance. I ask because I
> don't know. I realized my error after having asked to the list (and
> thinking what could have gone wrong). At first, I thought that the issue
> was a different one that I had described before.

If I were to say 'Ignorance is not one of your best assets, Pablo'  I'd be being
subtly 'tfic' again!  Maybe you will understand me this time?

> Sorry for the misunderstanding,

There really wasn't any.  But again, thank you.

Now, see my answer to your other mail.  I have posted you an explanation as
I see it, along with some sample code.

Regards,


Chris.
>> 2009/10/31 Pablo Rodríguez <address@hidden>:
>>> Thanks, Chris, for your explanation.
>>>
>>> Centering code like "object._x = (Stage.width-object._width)/2;" worked
>>> for me before and I don't think is wrong.
>>>
>>> The issue here was that the SVG outlines have the following attribute in
>>> the layer containing them:
>>>
>>>        transform="translate(-373.04364,-200.26313)"
>>>
>>> So, copying and pasting the outline from inkscape directly leads to
>>> positioning errors. To solve this, I had to convert the inkscape file
>>> from svg to svg using rsvg-convert in order to get a SVG file that can
>>> be used with SWFC.
>>>
>>> Thanks for your reply,
>>>
>>>
>>> Pablo
>>>
>>>
>>>
>>> Chris Pugh wrote:
>>>> Try,
>>>>
>>>>  .action:
>>>>        slide_height=Stage.height/2;
>>>>        slide_width=Stage.width/2;
>>>>
>>>> which gives you the screen centre point..  ;o)
>>>>
>>>> HTH.
>>>>
>>>> Regards,
>>>>
>>>>
>>>> Chris.
>>>>
>>>> 2009/10/30 Pablo Rodríguez <address@hidden>:
>>>>> Hi there,
>>>>>
>>>>> I have the following script;
>>>>>
>>>>> .flash filename="first.swf" bbox=800x600 version=7 fps=12
>>>>> .outline fscreen_outline: M 409.38739,212.82563 L 398.29364,215.70063 L
>>>>> 395.44989,226.76313 L 397.57489,224.63813 L 401.32489,228.38813 L
>>>>> 411.01239,218.73188 L 407.26239,214.95063 L 409.38739,212.82563 z M
>>>>> 488.57489,212.82563 L 490.69989,214.95063 L 486.94989,218.73188 L
>>>>> 496.60614,228.38813 L 500.38739,224.63813 L 502.51239,226.76313 L
>>>>> 499.66864,215.70063 L 488.57489,212.82563 z M 433.79364,228.38813 C
>>>>> 421.17283,228.38813 411.01239,235.91438 411.01239,245.26313 L
>>>>> 411.01239,267.76313 C 411.01239,277.11188 421.17283,284.63811
>>>>> 433.79364,284.63813 L 464.16864,284.63813 C 476.78945,284.63813
>>>>> 486.94989,277.11186 486.94989,267.76313 L 486.94989,245.26313 C
>>>>> 486.94989,235.91438 476.78945,228.38813 464.16864,228.38813 L
>>>>> 433.79364,228.38813 z M 401.35614,284.63813 L 397.57489,288.38813 L
>>>>> 395.44989,286.26313 L 398.29364,297.32563 L 409.38739,300.20063 L
>>>>> 407.26239,298.07563 L 411.01239,294.29438 L 401.35614,284.63813 z M
>>>>> 496.60614,284.63813 L 486.94989,294.29438 L 490.69989,298.07563 L
>>>>> 488.57489,300.20063 L 499.66864,297.32563 L 502.51239,286.26313 L
>>>>> 500.38739,288.38813 L 496.60614,284.63813 z .end
>>>>> .outline fulls_outline: M 411.01239,200.26313 L 486.94989,200.26313 C
>>>>> 507.98458,200.26313 524.91864,212.80688 524.91864,228.38813 L
>>>>> 524.91864,284.63813 C 524.91864,300.21938 507.98458,312.76313
>>>>> 486.94989,312.76313 L 411.01239,312.76313 C 389.9777,312.76313
>>>>> 373.04364,300.21938 373.04364,284.63813 L 373.04364,228.38813 C
>>>>> 373.04364,212.80688 389.9777,200.26313 411.01239,200.26313 z .end
>>>>> .filled fscreen outline=fscreen_outline fill=#969696ff color=#969696ff
>>>>> .filled fulls outline=fulls_outline fill=#64646496 color=#64646496
>>>>>
>>>>> .frame 1
>>>>>    .put fscreen
>>>>>    .stop fscreen
>>>>>    .put fulls
>>>>>    .stop fulls
>>>>>
>>>>>    .action:
>>>>>        slide_height=Stage.height;
>>>>>        slide_width=Stage.width;
>>>>>
>>>>>        fscreen._x = (slide_width-fscreen._width)/2;
>>>>>        fscreen._y = (slide_height-fscreen._height)/2;
>>>>>        fulls._x = (slide_width-fulls._width)/2;
>>>>>        fulls._y = (slide_height-fulls._height)/2;
>>>>>    .end
>>>>>
>>>>> .end
>>>>>
>>>>> I'm trying to set the fscreen and fulls in the center of the
>>>>> presentation, but it doesn't work.
>>>>>
>>>>> What am I doing wrong here? (Just in case it might help, the outline is
>>>>> copied from http://www.ousia.tk/fullscreen.svg.)
>>>>>
>>>>> Thanks for your help,
>>>>>
>>>>>
>>>>> Pablo
>>>>>
>>>>>
>>>>>
>>>
>>>
>>
>>
>>
>
>
>




reply via email to

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