[swfmill] ticket #7 "Textfield variable targeting"

daniel fischer dan at f3c.com
Sun Jul 23 13:27:43 EDT 2006


hey,

http://swfmill.org/trac/ticket/7 (formerly #13, reported by Quentin <quentin.t at gmail.com>) sez:

  > Here how is built the SWF :
  > 
  >  - root
  >  - > MovieClip "anim"
  >  - > MovieClip "tfHolder"
  >  - - > Dynamic textfield with no instance name
  > 
  > The textfield has his "Variable" porperty filled with 'anim.myVar' and the 'tfHolder' has these actionscript line codes :
  > 
  > function onEnterFrame() {
  > 	myVar=random(500);
  > }
  > 
  > When compiling via the Flash IDE, the textfield is updated frequently, but when placing the SWF with swfmill, the field remains blank...
  > 
  > This is only a "variable targeting" problem, because when replacing 'anim.myVar' with '_parent.anim.myVar' in the "Variable" property of the textfield, it runs well with both pieces of software (the Flash IDE and swfmill)... But to be fully compatible, this should behave identically !


i'm not sure i fully understand the problem- but as far as i understand, it comes from the fact that importing an SWF with swfmill wraps that into another movieclip hierarchy, breaking the "anim.myVar" reference. can this be true? i don't know much about variable references, but flash looks up anim in _root, no? thus, as there is an additional level of clips, it breaks.

if this is so- it wont be fixed. neither do i aim for "full compatibility" to the flash IDE, nor is the process the same-- or is the SWF imported into the IDE?
if i'm mistaken, please elaborate.

barring more details, i'll close the ticket as "wontfix".

-dan

-- 
http://0xDF.com/
http://iterative.org/



More information about the swfmill mailing list