0 Replies Latest reply on Apr 6, 2009 6:13 AM by two7s_clash

    passing flashvars; can't edit loaded swf or determine how it gets the vars



      I'm working with a Flash driven activity engine to deliver various types of quizzes and media and such to students. The engine itself is kind of old; originally developed in 2004 or 2005; we inherited it from another company we bought. It reads XML workflows to deliver the different types of content in different configurations to the user. Basically it is a chain of swfs that load each other, and in turn load various xml and media.

      ANYWAY, it uses SWFObject and Flashvars to allow loading at different "layers." Meaning one can bypass the splash screen and directly access an individual workflow or question directly. We don't currently have access to the FLA from which this was created, and now, due to hardcoded branding stuff, we have to load the primary swf through another swf to block it out.

      My problem is this: the loader swf (start.swf) is absorbing the flashvars and they aren't being passed to the primary swf (shell.swf). I can't edit shell.swf, so I have to figure out a way to get start.swf to pass the flashvars to shell.swf as if shell.swf was getting them directly from the javascript. I'm not so worried about this, found lots of various solutions, but I can't for the life of me figure out how shell.swf is getting the flashvars. So I can't figure out what to pass to shell.swf until I know how shell.swf is coded to access the variables.

      I used SWFDecompiler to break down shell.swf and can't seem to find any reference to _root.myVar or _level0.myVar or Application.application.parameters.myVar or root.loaderInfo.parameters.myVar. I've also tried using Cheat Engine and some Flash Trainers to sniff out where the variables are being assigned, but I've run out of things to look for. The only place in the AS where I see the flashvars referenced can be seen here: http://f1shw1ck.com/as/__Packages.hmfm.App.html (flashvars are: subsecid, src, layer, folder_path, and loc). However, I only have a limited understanding what is happening here.

      This is a tall order I know, but I feel like I've exhausted all the resources on the web and the limits of my current understanding of Flash and AS. Any help or suggestions greatly appreciated!

      Flash activity engine: http://tinyurl.com/dl99kp
      FAE using flashvars: http://tinyurl.com/c2mxhc
      FAE using loader (start.swf): http://tinyurl.com/dfjf3x
      start.swf: http://f1shw1ck.com/as/start.fla