Search code examples
actionscript-3vbscriptflashvars

Setting flash variables not from VB


I'm new in AS 3.0. I'm trying to pass flash variables to SWF file from my VB application. It worked in AS 2.0 using: SetVariable method of ShockwaveFlash object but it doesnt' work in AS 3.0. Any idea how can I do it Thanks!


Solution

  • I'm not sure how the VB interface works, but how are you accessing the variables you are trying to set? How did it work in AS2?

    I would guess you'd access them through

    var myvar = root.loaderInfo.parameters["variableName"]