PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Hosting Flash ActiveX
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Hosting Flash ActiveX
![]() |
Hosting Flash ActiveX |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 Krupa wrote: > 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 |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Thanks a bunch Jarod! It worked like a charm :-)
Krupa Jarod wrote: > 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 |
|
|
|
#4 |
|
Guest
Posts: n/a
|
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 Krupa wrote: > Thanks a bunch Jarod! It worked like a charm :-) > > Krupa > > Jarod wrote: > > 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 |
|
|
|
#5 |
|
Guest
Posts: n/a
|
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 Krupa wrote: > 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 > > > Krupa wrote: > > Thanks a bunch Jarod! It worked like a charm :-) > > > > Krupa > > > > Jarod wrote: > > > 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 |
|
|
|
#6 |
|
Guest
Posts: n/a
|
The file path in the SWF has a file:// prefix already.
Krupa Jarod wrote: > 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 |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

