Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 86170

Actionscript not starting from C++ application using Flash ActiveX

$
0
0

Many apologies if this is not the right forum and I would be most thankful if you could point me at the right forum.

 

Hello all. I am having some trouble with the embedded Flash Player in my C++ application.

 

I am trying to play back a flash file that has 210 frames, some actionscript at frame 60 and has the frame rate set to 21 fps. The flash file plays fine in a browser.

 

The issue is that if I control the speed of the flash playback using my own timer and m_pFlashPlayer->GotoFrame(iFrameNumber) (or even m_pFlashPlayer->Forward()), the actionscript at frame 60 is not actioned if I play it back at a rate above about 12 fps.

 

If I don’t use m_pFlashPlayer->GotoFrame() and at the start simply call m_pFlashPlayer->Play() and look for changes in the frame number (using m_pFlashPlayer->CurrentFrame()), I only get about 1-2fps

 

My suspicion is that when I make the call to GotoFrame(60), under the covers Flash starts doing what it needs to do, but I come around again before it has finished and call GotoFrame(61) and it abandons what it was doing and moves on. As a test, I did try adding Sleeps() after the call to GotoFrame() for all frames in the range 55-65  but this did not fix the problem.

 

I did try adding a call to Play() after each GotoFrame() but that did not fix the issue.

 

After each call to GotoFrame() I am checking FrameLoaded() and get_ReadyState() and both of these return good values.

 

There is oodles (a technical term) of CPU available with my application barely registering above 0% usage. 

 

I am using the Flash ActiveX and

#import "C:\\Windows\\SysWOW64\\Macromed\Flash\\Flash32_11_9_900_152.ocx" named_guids

#include "Debug\\Flash32_11_9_900_152.tlh"

 

On Windows  7 Enterprise, x64 bit

Flash 11.9.900.152

 

Any thoughts on the matter or suggestions on what I could try would be most welcome.

 

Regards,

Peter Baum

Sydney, Australia


Viewing all articles
Browse latest Browse all 86170

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>