Link to home
Start Free TrialLog in
Avatar of peter-h
peter-hFlag for New Zealand

asked on

Director's Flash tree component fails after switching away and back to projector window

When using the flash tree component in Director MX 2004, if I switch away to another application and back to the projector, the flash component fails to operate correctly and erroneously displays a superimposed square outline within the sprite (see attached file for screen grab image). The number of times I switch back and forth before this happens varies - sometimes first time, and sometimes up to 6 or 7 times before occuring. THe tree no longer functions after that point, but the rest of the Director movie runs fine.

I've tried not using the built-in components and just embedding a Flash swf asset created from an FLA with a tree component in it, but it does exactly the same thing.

I'm using DIrector 10.1.1 on WIndows XP SP2, loading a .dcr file into quickstart projector using a separate Xtras folder.

Anybody heard of this before, or have any ideas?
treeComponentProblem.gif
Avatar of Chris-Chambers
Chris-Chambers
Flag of United Kingdom of Great Britain and Northern Ireland image

Hi,

Could you post the code you use to initialise the component?

Thanks,

Chris.
Avatar of peter-h

ASKER

Hi Chris,
I've pared the movie back to  basics, and the bug still occurs.
Have uploaded a simple .dir file for you to take a look at.
Initialisation code is:

property _sp,spriteNum
 
 
on exitFrame (me)
  
  if voidP(_sp) then
    _sp=sprite(me.spriteNum) 
    
    tDataSource = _sp.newObject("XML")
    tDataSource.ignoreWhite = true
    
    xmlString=member("xml").text
    tDataSource.parseXML(xmlString)
    
    _sp.dataProvider = tDataSource
    
  end if
  
end

Open in new window

Avatar of peter-h

ASKER

I've also tried this without the 10.1.1 update, on 10.1 and the bug still occurs.
Avatar of peter-h

ASKER

Sample .dir file attached. Had to rename the extension from .dir to .xls in order for the site to accept the upload. So you'll have to rename it's extension to .dir.

treeComponent-bug.zip
Avatar of peter-h

ASKER

More info on the behaviour of the tree, after the bug occurs:

1) The box outline appears to be the border shrinking, but the tree itself does not resize.
2) All the expand/collapse icons continue to work.
3) The words of the node of the tree no longer highlight when clicked, until the node above it has been expanded first.
Avatar of peter-h

ASKER

Not sure exactly what this means, but the Flash Asset Xtra.pdf published by Adobe/Macromedia states "Flash V2 Components are unsupported". Huh? Aren't all the built-in components v2 components?
ASKER CERTIFIED SOLUTION
Avatar of peter-h
peter-h
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,

I've just checked out your .dir file and you are right, it's very strange. I've never seen this problem before because I always select select 'Animate in Background' to true.

I'm glad its solved now.

Regards,

Chris.