Page 1 of 1

imagelayer jumps.....

Posted: 17 Sep 2009, 07:21
by bico
Hi Karl, Nick,

i have some probs with the imagelayer function.
I build a small swf witch shows copyright information
by mouse over. Additional it is internal linked to
the corresponding imprint textpage.

The swf is placed at bottom left, with margin 1.
When i open a image it works fine. Now, when i
go to the next image, independent how, the small
information button jumps about 50px in top direction.
By starting the slideshow its the same prob.

The other prob, as so often, is internal linking in IE8.
I use the "normal" getURL function for open the imprint textpage talked
about above. Works fine in Firefox, but not in IE8....

Is there a way to combine the getURL function with your special
"asfunction:_root.link" function for internal linking ???

By the way, the swf is as ever build in AS2.0 with a 16x16px stage.
[ Imagevue X2.1.4 ]

http://www.bicolored.eu


thx in advance
regards

Posted: 18 Sep 2009, 04:09
by mjau-mjau
First about your SWF layer -
The layer needs to be consistent in its width/height parameters to always align correctly. For example, if you have a button state, it might change the outer bounds of the clip and mess with alignment and positioning. You may for example have an invisible button area - This will cause changes in the clips bounds. Also, it is possible you have more than one frame and your SWF bounds vary between frames? I will need to take a look at your FLA to diagnose this ... There is nevertheless a workround to fix this, by creating a contant 0% transparent background square to define the constant bounds of your clip.

Regarding the link, IE8 has problems with this method it seems, but you should be able to use the methods described here:
viewtopic.php?t=5348

As long as they can access functions in the parent SWF, and I dont see why not ...

Posted: 18 Sep 2009, 06:30
by bico
Hi Karl,

- there is no invisible button area
- there is only one frame
- the stage is 16x16
- the button is 16x16
- the additional tooltip is 16x16

Now i placed the button OITL and it works fine.:)

It seems it jumps to other positions, cause there is a reverence in the script, to an absolute position in top left ???

Find no way for internal linking from an embedded swf inside imagevue. Using "_blank" for new window...works.

thx
regards

Posted: 20 Sep 2009, 08:45
by mjau-mjau
I would have to check your SWF to why why it is jumping. This is not normal behaviour.

Did you try BOTH the methods in the link below for internal linking?
viewtopic.php?t=5348

If the first one doesnt work, that would imply that your swfaddress module wasnt working at all!

Posted: 21 Sep 2009, 06:46
by bico
ok Karl, internal linking works also from an external swf now.
little tricky, but it works....

using...
<a href=\'asfunction:_root.link, content/folder\'>link</a>
instead of
<a href="asfunction:_root.link,content/folder/">link</a>

thx
regards