You are here:

C++/Resizing flash movie ...

Advertisement


Question
 Hello sir,

 I have imported the "ShockWave Flash" ocx in my program. I assign it a movie. When my program is run, the movie is played well; But when I want to resize this component(ActiveX), using "SetBounds" method, the change in the width and height of the movie is not applied until I send it some command(e.g. GotoFrame(2)) and click on it.

Do you know some way to resize the movie with instant affect? (like what is done in internet explorer)

what do you think I have not done?

thank you very much.  

Answer
Hello,

As for Flash, I do not know anything about it whatsoever. But, I have an idea I thought might help. When you do C++ Windows graphics stuff, you have to call InvalidateRect() to tell the screen to automatically refresh itself. There is probably a Flash function like that one that needs to be called explicitly.

I hope this information was helpful.

- Eddie

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


Eddie

Expertise

I can answer questions about the C++ language, object oriented design and architecture. I am knowledgable in a lot of the math that goes into programming, and am certified by ExpertRating.com. I also know a good deal about graphics via OpenGL, and GUIs.

Experience

I have completed numerous games and demos created with the C++ programming language. Currently employed as a software engineer in the modeling and simulation field. I have about 7 years experience.

©2016 About.com. All rights reserved.