[Xerte] Re-using an icon to loadVars

Paul Swanson Paul.Swanson at harlandfs.com
Mon Apr 12 18:28:33 BST 2010


Are you using an event to determine when loadVars has completed, um,
loading vars? You would use the id of the page holding the buttons,
right? In that situation I would think the onLoadVars event would think
it was already complete due to the first call. 

Just throwing out wild guesses ...  ;o)

> -----Original Message-----
> From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-
> bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
> Sent: Monday, April 12, 2010 10:09 AM
> To: Xerte list
> Subject: RE: [Xerte] Re-using an icon to loadVars
> 
> 
> But the original query returns:
> [type Function]
> 
> 
> Try it with readFile.
> The pre/post debugs are identical.
> [type Function]
> [type Function]
> 
> Something is changing the form of the function.
> (or isn't form equal to function?) ;-)
> 
> 
> ----------------------------------------
> > Subject: RE: [Xerte] Re-using an icon to loadVars
> > Date: Mon, 12 Apr 2010 09:59:35 -0700
> > From: Paul.Swanson at harlandfs.com
> > To: xerte at lists.nottingham.ac.uk
> >
> > It is returning [type Function], but the brackets, spaces and dot
> > notation are urlencoded. Decoding would yield:
> >
> > onload=[type Function]&onData=[type
> > Function]&icon=_level0.engine.IFC.PG_MC21
> >
> >> -----Original Message-----
> >> From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-
> >> bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
> >> Sent: Monday, April 12, 2010 9:48 AM
> >> To: Xerte list
> >> Subject: RE: [Xerte] Re-using an icon to loadVars
> >>
> >>
> >>
> >> I think the 2nd debug call should also return [type Function]
> >>
> >> Sorry, I didn't include the actual call:
> >> debug(some_Iconid.loadVars);
> >>
> >> So I'm just asking "what are you?"
> >> Before I call it it says it's a function.
> >> After I've used it once, it says it's something else.
> >>
> >>
> >> ----------------------------------------
> >>> Subject: RE: [Xerte] Re-using an icon to loadVars
> >>> Date: Mon, 12 Apr 2010 08:49:51 -0700
> >>> From: Paul.Swanson at harlandfs.com
> >>> To: xerte at lists.nottingham.ac.uk
> >>>
> >>> Looks like it's not getting url decoded on postcall. Or is that
> >> normal
> >>> in Actionscript?
> >>>
> >>>> -----Original Message-----
> >>>> From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-
> >>>> bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
> >>>> Sent: Monday, April 12, 2010 8:41 AM
> >>>> To: Xerte list
> >>>> Subject: RE: [Xerte] Re-using an icon to loadVars
> >>>>
> >>>>
> >>>>
> >>>> Precall debug:
> >>>> [type Function]
> >>>>
> >>>> Postcall debug:
> >>>>
> >>>
> >>
> >
>
onLoad=%5Btype%20Function%5D&onData=%5Btype%20Function%5D&icon=%5Flevel
> >>>> 0%2Eengine%2EIFC%2EPG%5FMC21
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> ________________________________
> >>>>> Subject: RE: [Xerte] Re-using an icon to loadVars
> >>>>> Date: Mon, 12 Apr 2010 16:30:28 +0100
> >>>>> From: Julian.Tenney at nottingham.ac.uk
> >>>>> To: xerte at lists.nottingham.ac.uk
> >>>>>
> >>>>>
> >>>>>
> >>>>> Interseting - it sounds similar to the situation where loadMovie
> >>>> wipes out any members of the loading movieclip. Does the function
> >>> still
> >>>> exist when you try to call it?
> >>>>>
> >>>>> debug(myIcon.loadVars); //whattya get?
> >>>>>
> >>>>> ________________________________
> >>>>> From: xerte-bounces at lists.nottingham.ac.uk on behalf of Dave
> >> Burnett
> >>>>> Sent: Mon 12/04/2010 15:57
> >>>>> To: Xerte list
> >>>>> Subject: RE: [Xerte] Re-using an icon to loadVars
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>> OK, something I should have checked earlier.
> >>>>>
> >>>>> The onLoadVars event is not firing on the second call (or at
> least
> >>> it
> >>>> is not being broadcast).
> >>>>>
> >>>>> Almost like the function is not being called on the second
> attempt
> >>> to
> >>>> the same icon.
> >>>>>
> >>>>>



More information about the Xerte mailing list