Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 132,683 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,242 people online right now. Registration is fast and FREE... Join Now!




Flash Shockwave Objects

 
Reply to this topicStart new topic

Flash Shockwave Objects, Are they scrollable?

brandon_v
post 29 May, 2008 - 10:16 PM
Post #1


New D.I.C Head

*
Joined: 29 May, 2008
Posts: 23


My Contributions


Ok, here's my problem:

In my c# form, I have a Shockwave Flash Object, in which I have placed a Flash .swf file.
The .swf file is 780 pixels in height, but the Flash Object is only about 300, and about twice that when the application is maximized.

Right now, the .swf gets scaled down to fit proportionately into the Flash Object, but it gets some really weird distortions when it does.
I'm wondering if anyone knows if I can put a vertical scrollbar? (Enabling me to make the scaling 'NoScale')

I really have no idea what it takes to get a scrollbar working, so any help is much appreciated!

Thanks in advance!
User is offlineProfile CardPM

Go to the top of the page

RodgerB
post 30 May, 2008 - 12:03 AM
Post #2


D.I.C Lover

Group Icon
Joined: 21 Sep, 2007
Posts: 2,127



Thanked 15 times

Dream Kudos: 2200

Expert In: Dot Net Technologies

My Contributions


To have your form scroll according to the contents in the form, you can enable the AutoScroll property of the form, which will fit contents of the form that aren't seen in the normal visible area, horizontally and vertically.

I have also had weird problems associated with the flash player control's scaling randomly changing. My analysis showed that every time a movie was loaded into the control (not sure if this applies to setting the properties through designer view), the ScaleMode property would change.

I fixed it by creating a wrapper, something like this did the job:
csharp

// Replace flashPlayer with the name of your flash player
// instance.
void setMovie(string strMovie)
{
flashPlayer.Movie = strMovie;
flashPlayer.ScaleMode = 0;
}


Hope that helps.
User is offlineProfile CardPM

Go to the top of the page

brandon_v
post 30 May, 2008 - 12:45 AM
Post #3


New D.I.C Head

*
Joined: 29 May, 2008
Posts: 23


My Contributions


Ugh, nope. Still not working. sad.gif

When you came up with your example, did your Shockwave Flash Object have a .swf movie with greater dimensions than the object, and a scrollbar?

I changed the form's property AutoScroll to True, but it doesn't seem to apply to Shockwave Flash Objects.
With this, when I have the scale mode to "NoScale" it just gives me a cropped view of my .swf (although at 100%) without a scrollbar.
I'm going to give this another try from scratch.

Is there a way to dynamically set the scale on the movie?
User is offlineProfile CardPM

Go to the top of the page

RodgerB
post 30 May, 2008 - 01:43 AM
Post #4


D.I.C Lover

Group Icon
Joined: 21 Sep, 2007
Posts: 2,127



Thanked 15 times

Dream Kudos: 2200

Expert In: Dot Net Technologies

My Contributions


Bum, that's a shame.

I made a tutorial on embedding a flash player control in VB.NET (click), so all research done into the control by me kind of relates to what has been discussed with in it.

Included with the tutorial is the links I used to test the movie. I am not sure of any way to programmatically set the scale of the movie, sorry I can't be of any assistance here. smile.gif
User is offlineProfile CardPM

Go to the top of the page

brandon_v
post 1 Jun, 2008 - 03:50 PM
Post #5


New D.I.C Head

*
Joined: 29 May, 2008
Posts: 23


My Contributions


I took a look at the tutorial you provided, but I'm sorry to say that it doesn't really apply to what I'm doing, it seems. Thanks for your effort though.

But I'm starting to get desperate!
No matter what I try I can't figure this out!
I don't even know if it's possible.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 06:56AM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month