[Xerte] custom interface initialization

Marc Torruella Altadill mtorruella at viguera.com
Fri Apr 24 10:25:03 BST 2009


Hi again,

Is there a difference between how xerte loads a movie on rootIcon’s swf
attribute and other pages’s url attribute?

 

When using rootIcon, I can “acces xerte” with this._parent, but when loading
by url this._parent don’t seems to work.

Any idea which way I should use in this case? Im not using root because all
the problems I got this week with xerte->swf communication
 now It seems I
haveproblems with swf->xerte communication
 I need both :-(.

 

Thank you

 

De: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] En nombre de Julian Tenney
Enviado el: jueves, 23 de abril de 2009 10:30
Para: Xerte discussion list
Asunto: RE: [Xerte] custom interface initialization

 

Length isn’t the number of frames. I think it refers to the length of an
array, or the number of properties on an object. Isn’t it _totalframes for
the number of frames? Try inspect (iconID.clip) and see if you get 9 items
debugged back to you. In the help, movieclips don’t have a length property,
nor does Object which movieclips inherit from.

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Wednesday, April 22, 2009 4:40 PM
To: Xerte list
Subject: RE: [Xerte] custom interface initialization

 


I find it a bit coincidental we both get 9 for length.
Is that the length of the container "clip", or the loaded movie?



  _____  

Subject: RE: [Xerte] custom interface initialization
Date: Wed, 22 Apr 2009 16:31:57 +0100
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk

If the load event fires, and you can debug some basic information about your
loaded swf, then the problem must be with correctly addressing your function
call. I very rarely write functions anywhere other than the main timeline –
so yes, check where your function is declared.

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Wednesday, April 22, 2009 3:58 PM
To: Xerte list
Subject: RE: [Xerte] custom interface initialization

 


Is your function on the main timeline?
That clip.length is addressing the root timeline.
Child clips will have to be dealt with accordingly.

Dave

  _____  

From: mtorruella at viguera.com
To: xerte at lists.nottingham.ac.uk
Subject: RE: [Xerte] custom interface initialization
Date: Wed, 22 Apr 2009 16:34:27 +0200

Thanks Dave, i get 9 too when doing debug(rootIcon.clip.length()). But no
luck with the function yet, I’ll check flash publish options, maybe I have
something wrong there
 no idea.

 

I’ll check latest version and models as Patrick suggested

 

De: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] En nombre de Dave Burnett
Enviado el: miércoles, 22 de abril de 2009 15:50
Para: Xerte list
Asunto: RE: [Xerte] custom interface initialization

 

I have the swf loading into interface.
I added a page to the interface.
I added an interaction to the page.
I added an event to that interaction

Event is onLoad and rootIcon.

Script under the event is: 

debug("root hit");
debug(rootIcon.clip.length());


   

  _____  

From: mtorruella at viguera.com
To: xerte at lists.nottingham.ac.uk
Subject: RE: [Xerte] custom interface initialization
Date: Wed, 22 Apr 2009 14:53:46 +0200

None work for me

 

De: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] En nombre de Dave Burnett
Enviado el: miércoles, 22 de abril de 2009 14:24
Para: Xerte list
Asunto: RE: [Xerte] custom interface initialization

 

Should the event be onLoad or onInit?

Dave 

  _____  

From: mtorruella at viguera.com
To: xerte at lists.nottingham.ac.uk
Subject: RE: [Xerte] custom interface initialization
Date: Wed, 22 Apr 2009 13:40:02 +0200

Thank you Julian,

I tried, but it seems i dont know how to use events correctly. I added an
interaction icon as a child right under interface icon, then a event icon
int it with name and eventName set to “onLoad” and icon set to “rootIcon”.
Then added a script icon as a child to the event icon, with the name “load”
and on the script I just wrote debug(“hi”);

 

Then even using default interface, no debug message is prompted


 

I did that after trying to call my function with no luck.

 

Marc

 

De: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] En nombre de Julian Tenney
Enviado el: miércoles, 22 de abril de 2009 12:56
Para: Xerte discussion list
Asunto: RE: [Xerte] custom interface initialization

 

I think that when you try and call the function, the swf file hasn’t loaded
yet. The interface icon (rootIcon) will fire onLoad when it does load and is
ready to have it’s functions called. You need to add an interaction with an
event response. On the event respoinse set the icon to rootIcon, the event
to onLoad and then add a  script icon to the response that calls your
function.

 

J

 

 

Hi everyone,

I’ve developed a swf


 

 

  _____  

Rediscover Hotmail®: Get e-mail storage that grows with you. Check
<http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_St
orage2_042009>  it out.

 

  _____  

Rediscover Hotmail®: Get e-mail storage that grows with you. Check
<http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_St
orage2_042009>  it out.

 

  _____  

Windows Live™ SkyDrive™: Get 25 GB of free online storage. Check
<http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_skydrive_042009>
it out.

 

  _____  

Rediscover Hotmail®: Now available on your iPhone or BlackBerry Check it
out.
<http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Mo
bile2_042009> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20090424/272ae13c/attachment.html


More information about the Xerte mailing list