[Xerte] Is it possible to set "padding"
betweencustominterfaceand the content?
Koványi Gábor
kovanyi at innotica.com
Tue Mar 9 10:22:49 GMT 2010
Hi,
Writing the code this._parent._y = 50; moves the custom interface
properly down, but the content moves together with it and this._y =
-50; unfortunately moves both the interface and content to the origin.
In the default interface a title bar can keep the content down and the
content don't goes up to the 0,0 coords(or the coords set to default).
I would like the same solution to produce, but using a custom
interface which can also keep the content down as the default solution
does.
So it would be nice to customize its position if possible.
Can you tell me which function sets the coords of the loaded content,
or what kind of object can keep distance with a customized interface?
All pages, text, graphics, flash etc. are loaded directly into the
rootIcon mc? Finally is it possible to set these parameters in the
XMLengine.fla?
Thanks in advance.
Regards,
Gabor
Idézet (Julian Tenney <Julian.Tenney at nottingham.ac.uk>):
> You need to move rootIcon down, and you need to then place the controller up.
>
> So in your swf you should write code to do that:
>
> //move rootIcon down the page, to leave space for your title bar
> this._parent._y = 50;
>
> //now place the interface above the orgin
> this._y = -50;
>
> -----Original Message-----
> From: xerte-bounces at lists.nottingham.ac.uk
> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Koványi
> Gábor
> Sent: Tuesday, March 09, 2010 8:29 AM
> To: xerte at lists.nottingham.ac.uk
> Subject: RE: [Xerte] Is it possible to set "padding"
> betweencustominterfaceand the content?
>
> Hi,
>
> Controller is loaded by the way as follows (From the xml file, which
> the wizard created. I'm using the Page Templates wizard.):
> <learningObject controller="FileLocation + 'media/fw.swf'" ....
>
> icon.controller._y parameter or rootIcon.controller._y shifts the
> loaded swf and the content pages as well.
>
> If I give an instance name for the navigation, or leave it 'dragger'
> as default (it doesn't matter), the swf and the content also moves
> together.
>
> How can I load it using the .swf property? How can I refer to it?
>
> Thanks in advance.
>
> Regards,
> Gabor
>
>
>
>
> Idézet (Julian Tenney <Julian.Tenney at nottingham.ac.uk>):
>
> RE: [Xerte] Is it possible to set "padding" betweencustominterface and
> the content?
>
> How are you loading the controller? Using the swf property of the
> interface? Or as a component / graphic in the entry frame?
>
> If you load the controller up as swf for the interface, it will
> become a child of rootIcon. So are the pages. I don't see - I might be
> missing something - how setting the _y of the controller clip can move
> the pages if you load it using the .swf property - they are children
> of the same parent. Setting _y on a child won't move the parent.
>
> -------------------------
> FROM: xerte-bounces at lists.nottingham.ac.uk on behalf of Koványi Gábor
> SENT: Mon 08/03/2010 17:28
> TO: xerte at lists.nottingham.ac.uk
> SUBJECT: RE: [Xerte] Is it possible to set "padding"
> betweencustominterface and the content?
>
> Well, it doesn't really work when using custom interface, it shifts
> the content up as well together with the interface. It works only
> when
> you use the default interface.
>
> I need somekind of 'titlebar' (which built in the default interface,
> but disappeares when visuals set to 0) which can keep space between
> the custom interface's banner/header/titlebar(as you call) and the
> content, as the built-in titlebar can hold some distance.
>
> Can we create that by other way? (something like box models)
>
> Thanks in advance.
>
> Regards,
> Gabor
>
> Idézet (Julian Tenney <Julian.Tenney at nottingham.ac.uk>):
>
> RE: [Xerte] Is it possible to set "padding" between custominterface
> and the content?
>
> The easiest thing to do is then to shift your custom interface up a
> bit - otherwise you have to set the _y of each page, as they are
> children of rootIcon, like your controller.
>
> Set the controller._y to -50 or whatever you need,
>
> J
>
> -------------------------
> FROM: xerte-bounces at lists.nottingham.ac.uk on behalf of Koványi Gábor
> SENT: Mon 08/03/2010 14:56
> TO: xerte at lists.nottingham.ac.uk
> SUBJECT: RE: [Xerte] Is it possible to set "padding" between
> custominterface and the content?
>
> Setting rootIcon._y shifts all the visuals as the custom interface. I
>
> only want to modify the property of the _y of the content pages and
> leave the interface in its original position.
>
> Is it possible?
>
> Thanks in advance.
>
> Gabor
>
> Idézet (Julian Tenney <Julian.Tenney at nottingham.ac.uk>):
>
>> rootIcon
>>
>> -----Original Message-----
>> From: xerte-bounces at lists.nottingham.ac.uk
>> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Koványi
>> Gábor
>> Sent: Monday, March 08, 2010 2:46 PM
>> To: xerte at lists.nottingham.ac.uk
>> Subject: [Xerte] Is it possible to set "padding" between custom
>> interface and the content?
>>
>> Dear All,
>>
>> How can I set the _y parameter of the contents which lies under
> the
>> custom interface?
>>
>> rootIcon.controller.myMc._y only sets the ._y parameter of the
> custom
>> interface.
>>
>> Which mc holds the content pages?
>>
>> Thanks in advance.
>>
>> Regards,
>> Gabor
>>
>>
>> _______________________________________________
>> Xerte mailing list
>> Xerte at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>> _______________________________________________
>> Xerte mailing list
>> Xerte at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>
>
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
More information about the Xerte
mailing list