system info
flash player version: 10_1_102_65
OS: linux debian, 6.0.2
web browser: Mozilla Iceweasel 3.5.16
problem description
I have a flash file that uses parameters to show output on the screen. unfortunately i don’t have sources and can’t modify/review it.
i can successfully run flash and pass parameters to it using http:// protocol. for example,
#> iceweasel http:///localhost/40.swf?channel_id=1
shows correct flash in the browser.
but when i try to load flash from file
#> iceweasel file:///home/user/40.swf?channel_id=1
flash can’t read passed parameter and shows invalid output
it’s really strange. because when i downgraded flash plugin (from 10_1_102_65 to 9) both protocols works! That is something occurred in the flash player above 9.
unfortunately i can’t use Flash Player 9 in my production environment so i should resolve the issue with Flash Player 10.
question
how can i pass parameters to flash using ‘file://’ protocol?
any help is appreciated.
thanks.
As Ignacio says, GET parameters are part of HTTP and won’t work with the file:// protocol, but one thing you could try is to supply the channel_id is a a FlashVar. Internally in the swf, the ActionScript code normally access GET parameters and FlashVars the same way (using loaderInfo.parameters).