|
-
Mar 26th, 2004, 05:00 PM
#1
Thread Starter
Member
Importing Macromedia Flash Player .ocx file
Hello guys, i'm having trouble importing the macromedia flash player control into one of my applications. When i add the component to the toolbar, i get the error: "Failed to import the ActiveX control. Please ensure it is properly registered." Can anyone help me with this? Thanks.
How come it's a penny for your thoughts, but you have to put your 2 cents in? Somebody's makin' a penny 
-
Mar 26th, 2004, 09:57 PM
#2
Sleep mode
See if you can use this example without that nasty error .
http://www.vbforums.com/showthread.p...hreadid=261809
-
Mar 26th, 2004, 10:49 PM
#3
Thread Starter
Member
I think i've used that before. But the only way i could get it to work is to copy the control in one app, and paste it on the form i want to use it on in the other app. Then i juse resize it like this:
Code:
objFlash.Size = New System.Drawing.Size(xxx, xxx)
If i actually try to add the flash object to the toolbox, i get that error.
How come it's a penny for your thoughts, but you have to put your 2 cents in? Somebody's makin' a penny 
-
Mar 27th, 2004, 09:41 AM
#4
Sleep mode
What's the name of the file you used ?
-
Mar 27th, 2004, 11:04 AM
#5
Thread Starter
Member
I click on the General tab in the toolbox, then right click, and choose Add/Remove items. Then i click on COM Components, scroll down, and i select Macromedia Flash Factory Object (C:\WINNT\system32\macromed\flash\Flash.ocx). Its the same file as the Shockwave Flash Object, but for some reason its in there twice.
How come it's a penny for your thoughts, but you have to put your 2 cents in? Somebody's makin' a penny 
-
Mar 27th, 2004, 11:14 AM
#6
Sleep mode
I just tried it again and it's working ok . I'm on XP machine btw . A suggestion might work for you :
Add the wrapped files existed in the bin folder in your new project and reference them . See if this works for you .
-
Mar 27th, 2004, 12:11 PM
#7
Thread Starter
Member
Alright thanks. I use Win2000 at work, but i use XP at home, so i go back and forth between the systems. If i copy the control from the form on one project and paste it on the form in a new project everything works fine. Its when i try to manually add the component to the project that gives me problems. So as of right now, i have it working the way i want. Unless there's a way for u to tell me how to convert the length to minutes and seconds It gives it in frames, so that kinda bugs me. Since i made the flash file, i know how fast its going (12fps), so i could just divide 60/12fps to get seconds. Then go from there, but if i didn't make the file, i'm guessing it'd be pretty hard to tell.
How come it's a penny for your thoughts, but you have to put your 2 cents in? Somebody's makin' a penny 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|