PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Hosting Flash ActiveX

Reply

Hosting Flash ActiveX

 
Thread Tools Rate Thread
Old 11-07-2006, 11:46 PM   #1
Krupa
Guest
 
Posts: n/a
Default Hosting Flash ActiveX


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

  Reply With Quote
Old 12-07-2006, 04:00 AM   #2
Jarod
Guest
 
Posts: n/a
Default Re: Hosting Flash ActiveX

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


  Reply With Quote
Old 12-07-2006, 04:25 PM   #3
Krupa
Guest
 
Posts: n/a
Default Re: Hosting Flash ActiveX

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


  Reply With Quote
Old 13-07-2006, 03:00 PM   #4
Krupa
Guest
 
Posts: n/a
Default Re: Hosting Flash ActiveX

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


  Reply With Quote
Old 14-07-2006, 10:00 PM   #5
Jarod
Guest
 
Posts: n/a
Default Re: Hosting Flash ActiveX

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


  Reply With Quote
Old 14-07-2006, 10:20 PM   #6
Krupa
Guest
 
Posts: n/a
Default Re: Hosting Flash ActiveX

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


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off