Hosting Flash ActiveX

K

Krupa

Hi All,


I am working on hosting a Flash ActiveX control in my CF 2.0
application. I followed the instructions in Alex Feinman's webcast and
did exactly the same. I load the movie using
AxShockwaveFlash.LoadMovie(0, @"/Storage Card/BarZ/UIs/GPSRanger.swf").
When I do AxShockwaveFlash.Play(), I get a blank white screen and can
see no Flash movie being played. However, when I check
AxShockwaveFlash.Playing, it says true. I guess it means the player is
open.

I tried various swf files and various locations, but nothing helped.
Can someone please tell me where I could be going wrong?

Thanks,
Krupa
 
J

Jarod

Hello Krupa,

I believe your SWF path is not in the format the flash control wants. I
don't use the LoadMovie method, instead I use the Movie property, but I
discovered the path to my SWF needs to be like this.

flashControl.Movie = "file://\\program files\\My
Application\\movie1.swf";

I found out that for it to work in my application the path had to be
absolute, the slashes had to be back slashes and the path had to start
with "file://"

Hope this helps.

Good luck,
Jarod
 
K

Krupa

I have another problem. In the flash movie, Action Script code has been
written to open an xml file and read values from there. I dont see this
being executed when I run the movie through the wrapper. Where as if I
run the Flash movie by embedding it in a html, I see it reading the xml
file.

Do I need to add something to my Flash wrapper?

Thanks,
Krupa
 
J

Jarod

I'm not sure, I haven't used any SWFs that try to read from the file
system in any CF apps yet. It's just a guess but have you checked the
path the of the XML the SWF file is looking for? Could it need a
file:// prefix as well?

All my work is on apps that calculate the data for flash to show and
then I pass that into the flash control using flashvars.

Jarod
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top