From: jsaiya on
I'm trying to position a graphic by setting the Display icon's Positioning
property to "On Screen" and putting custom variables in the Initial X and
Initial Y fields. The icon contains one bitmap which is linked externally and
changed during the program by loading different files.

The image's actual position always winds up being different than what I set it
to; the values of DisplayX and DisplayY for that icon are usually greater than
what I set them to by a seemingly random amount.

In any case, does anybody know of a bug in display positioning? What are
people doing to work around it?

- Jim Saiya


From: Steve Howard **Community Expert** - eLearning + Mobile and Devices on
> I'm trying to position a graphic by setting the Display icon's Positioning
> property to "On Screen" and putting custom variables in the Initial X and
> Initial Y fields. The icon contains one bitmap which is linked externally
> and
> changed during the program by loading different files.
>
> The image's actual position always winds up being different than what I
> set it
> to; the values of DisplayX and DisplayY for that icon are usually greater
> than
> what I set them to by a seemingly random amount.
>
> In any case, does anybody know of a bug in display positioning? What are
> people doing to work around it?


Sure it's a random amount? Sure it's not DisplayX/2, DisplayY/2?

There is a difference in the registration point for DisplayX/Y and for
OnScreen positioning.

Try replacing your variables with these expressions


YourXvar-(DisplayX/2)
YourYvar-(DisplayY/2)

Steve


--
Adobe Community Expert: eLearning, Mobile and Devices
European eLearning Summit - EeLS
Adobe-sponsored eLearning conference.
http://www.elearningsummit.eu

From: Amy Blankenship on

"Steve Howard **Community Expert** - eLearning + Mobile and Devices"
<steve(a)NOSPAMmagnoliamultimedia.com> wrote in message
news:g1jvgc$9qn$1(a)forums.macromedia.com...
>> I'm trying to position a graphic by setting the Display icon's
>> Positioning
>> property to "On Screen" and putting custom variables in the Initial X and
>> Initial Y fields. The icon contains one bitmap which is linked
>> externally and
>> changed during the program by loading different files.
>>
>> The image's actual position always winds up being different than what I
>> set it
>> to; the values of DisplayX and DisplayY for that icon are usually greater
>> than
>> what I set them to by a seemingly random amount.
>>
>> In any case, does anybody know of a bug in display positioning? What are
>> people doing to work around it?
>
>
> Sure it's a random amount? Sure it's not DisplayX/2, DisplayY/2?
>
> There is a difference in the registration point for DisplayX/Y and for
> OnScreen positioning.
>
> Try replacing your variables with these expressions
>
>
> YourXvar-(DisplayX/2)
> YourYvar-(DisplayY/2)

DisplayX is the horizontal center of the icon, DisplayY is the vertical
center. Dividing it by 2 will give you an unknown number, based on where
the icon is on screen. You may want consider using DisplayWidth,
DisplayHeight or GetPostSize, depending on how and when you're calculating
this.

HTH;

Amy


From: Steve Howard **Community Expert** - eLearning + Mobile and Devices on
>> YourXvar-(DisplayX/2)
>> YourYvar-(DisplayY/2)
>
> DisplayX is the horizontal center of the icon, DisplayY is the vertical
> center. Dividing it by 2 will give you an unknown number, based on where
> the icon is on screen. You may want consider using DisplayWidth,
> DisplayHeight or GetPostSize, depending on how and when you're calculating
> this.


Oops - that's what I meant, and that's what I do :-$

YourXvar-(DisplayWidth/2)
YourYvar-(DisplayHeight/2)


Getting old again ;-)

Steve


--
Adobe Community Expert: eLearning, Mobile and Devices
European eLearning Summit - EeLS
Adobe-sponsored eLearning conference.
http://www.elearningsummit.eu

From: jsaiya on
[q][i]Originally posted by: [b][b]Newsgroup User[/b][/b][/i]

"Steve Howard **Community Expert** - eLearning + Mobile and Devices"
<steve(a)NOSPAMmagnoliamultimedia.com> wrote in message
news:g1jvgc$9qn$1(a)forums.macromedia.com...
>>
>> The image's actual position always winds up being different than what I set
it
>> to; the values of DisplayX and DisplayY for that icon are usually greater
than
>> what I set them to by a seemingly random amount.
>>
>
> Sure it's a random amount? Sure it's not DisplayX/2, DisplayY/2?
>

DisplayX is the horizontal center of the icon, ...

Amy
[/q]

I understand that the registration point for Initial X and Initial Y are the
center of the image (actually the center of the bounding box of all the images
in the icon). The values I plug into the fields takes that into account. BUT,
when the icon is displayed, DisplayX@"My Icon" should equal the value I gave to
Initial X, whatever the number is. Right?

[Q] Sure it's a random amount? Sure it's not Display[Width]/2,
Display[Height]/2?[/Q]
I'm sure. Take a look at this sample trace:

-- W: 240, H: 180
-- L: 811, T: 235
-- X: 931, Y: 325
-- Px: 896, Py: 270
-- Dx: 35, Dy: 55

Where X and Y are DisplayX and DisplayY and Px and Py are the values I put in
the Initial fields. Dx and Dy are the differences. Sometimes Dx is greater
than Dy. They don't seem to have anything to do with the DisplayWidth or
DisplayHeight (W and H). The differences are the same for the same image any
time I run it.

No one has had this problem before? I'm using AW7.02, the image files are PNG
and Mode is set to Alpha. I'll see what happens when I change the mode to
something else.

TIA,
Jim

 |  Next  |  Last
Pages: 1 2 3 4 5 6
Prev: Performance Tracking
Next: PostURL issue...