Results 1 to 7 of 7

Thread: Importing Macromedia Flash Player .ocx file

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    Cordova, TN
    Posts
    60

    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

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    See if you can use this example without that nasty error .
    http://www.vbforums.com/showthread.p...hreadid=261809

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    Cordova, TN
    Posts
    60
    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

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    What's the name of the file you used ?

  5. #5

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    Cordova, TN
    Posts
    60
    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

  6. #6
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    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 .

  7. #7

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    Cordova, TN
    Posts
    60
    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
  •  



Click Here to Expand Forum to Full Width