PDA

View Full Version : axShockwaveFlash1


Guest
12-07-2005, 03:49 PM
Hello,

I tried to insert a flashfile into plugin, but there is an error CS0246:
"Type or Namespace 'AxSchockwaveFlashObjects' couldn't be found."

Has anybody an idea to insert Flashobjects into a plugin or is it generally
impossible?

Thanks for any help.

TomServo
12-07-2005, 06:13 PM
You would be the first that has tried... what are you trying to do?

Guest
12-07-2005, 08:10 PM
Originally posted by TomServo@Dec 7 2005, 10:13 AM
You would be the first that has tried... what are you trying to do?
Quoted post


Hello Tom,

what I try to do, is to control WorldWind by a flash application.
You are asking me now why? It's for my study. I try to face the
World outlook today and in former times.
The flash application includes a very old map of the world and some
assets. This map you can move in x-direction.
The WorldWind globe shall move simultaneously around its axis.

Now I try to embed a flash application in my WW-PlugIn, but it
doesn't work because of the mentioned error.

Is it generally possible to use flash in WorldWind? I tried to embed
flash into an external VS-C#-Project and there it works, but in
my Plugin-CS-File it isn't possible to add the "Shockwave Flash Object
Component". So I copied the lines from my external file.

Any idea?

Best Regards

withak
12-07-2005, 10:27 PM
Originally posted by Guest@Dec 7 2005, 09:49 AM
Hello,

I tried to insert a flashfile into plugin, but there is an error CS0246:
"Type or Namespace 'AxSchockwaveFlashObjects' couldn't be found."



Is that exactly what the error says? I'm no programmer, but if you have the name "AxSchockwaveFlashObjects" in your code instead of "AxShockwaveFlashObjects" then it might give you that error. :)

Guest
12-07-2005, 10:39 PM
Originally posted by withak@Dec 7 2005, 02:27 PM
Is that exactly what the error says? I'm no programmer, but if you have the name "AxSchockwaveFlashObjects" in your code instead of "AxShockwaveFlashObjects" then it might give you that error. :)
Quoted post


Oh sorry. I wrote it wrong. There are following two errors:

First: The type or namespace name 'Data' does not exist in the
namespace 'System.Windows' (are you missing an assembly reference?)

Second: The type or namespace name 'AxShockwaveFlashObjects' could
not be found (are you missing a using directive or an assembly reference?)

** very confused **

I'm trying and trying, ...

smult
12-08-2005, 07:58 AM
Originally posted by Guest+Dec 8 2005, 12:39 AM--><div class='quotetop'>QUOTE(Guest @ Dec 8 2005, 12:39 AM)</div><div class='quotemain'>First: The type or namespace name 'Data' does not exist in the
namespace 'System.Windows' (are you missing an assembly reference?)
[/b]

You need :
Using System.Data;
line for this one.

<!--QuoteBegin-Guest@Dec 8 2005, 12:39 AM
Second: The type or namespace name 'AxShockwaveFlashObjects' could
not be found (are you missing a using directive or an assembly reference?)
[/quote]

I guess you have added the ShockwaveFlashObject to your toolbox.
And drag-drop'ed the Flash-Object to your form.

You then need :
Using AxShockwaveFlashObjects;
Using ShockwaveFlashObjects;
in your code to start using it.

Haven't tried myself yet, but this is the normal way to use it.

smult
12-08-2005, 08:10 AM
Just tried it myself, and by some reason, the Interop.AxShockwaveFlashObject will not load.

Seems like a dependency somewhere.. but it will not give me any good reason for failing.

:-(

Guest
12-08-2005, 02:25 PM
Originally posted by smult@Dec 8 2005, 12:10 AM
Just tried it myself, and by some reason, the Interop.AxShockwaveFlashObject will not load.

Seems like a dependency somewhere.. but it will not give me any good reason for failing.

:-(
Quoted post



Now I tried to follow the instructions on this link:
http://www.desktopsidebar.com/forums/index...?showtopic=2227 (http://www.desktopsidebar.com/forums/index.php?showtopic=2227)

The two errors are banned while creating the files (I work with the
source files described in the plugin-tutorial on WorldWindCentral),
but now I get a new error, when I load the plugin as follows:

"Could not find any resources appropriate for the specified
culture (or the neutral culture) in the given assembly..."

I think, it's because of drag-dropping the Flash-Object in my form
from the external file.

Is it perhaps possible to write an external plugin which references
WorldWind?

Guest
12-10-2005, 03:45 PM
Originally posted by Guest@Dec 7 2005, 07:49 AM
Hello,

I tried to insert a flashfile into plugin, but there is an error CS0246:
"Type or Namespace 'AxSchockwaveFlashObjects' couldn't be found."

Has anybody an idea to insert Flashobjects into a plugin or is it generally
impossible?

Thanks for any help.
Quoted post


I have it. :) Now I'm confrontated with the next problems:
Controlling the earth-rotation by my flashfile.
Another sleepless nights... hm.
If you have any ideas - thanks.

guest
12-13-2005, 12:27 AM
Originally posted by Guest@Dec 10 2005, 07:45 AM
I have it. :) Now I'm confrontated with the next problems:
Controlling the earth-rotation by my flashfile.
Another sleepless nights... hm.
If you have any ideas - thanks.
Quoted post


Now my last problem. I need the 'e.args', which comes from the
flashfile as 'double'. Is there any way to convert it into 'double'?


Many thanks.

smult
12-13-2005, 12:50 PM
Originally posted by guest@Dec 13 2005, 02:27 AM
Now my last problem. I need the 'e.args', which comes from the
flashfile as 'double'. Is there any way to convert it into 'double'?
Many thanks.
Quoted post


Convert.ToDouble(e.args) ??

Maybe you have to replace the , or . with the other kind. I ran into this problem because I had the wrong localisation setting, giving me an exception when trying to convert to Double.

t.

Guest
12-13-2005, 10:18 PM
Originally posted by smult@Dec 13 2005, 04:50 AM
Convert.ToDouble(e.args) ??

Maybe you have to replace the , or . with the other kind. I ran into this problem because I had the wrong localisation setting, giving me an exception when trying to convert to Double.

t.
Quoted post



Hi Smult,

thanks for answer. Convert.ToDouble(e.args) didn't work anyway.

"double.Parse(e.args)" seems to work.

5of0
12-13-2005, 11:06 PM
Originally posted by smult@Dec 13 2005, 05:50 AM
Convert.ToDouble(e.args) ??

Maybe you have to replace the , or . with the other kind. I ran into this problem because I had the wrong localisation setting, giving me an exception when trying to convert to Double.

t.
Quoted post

The , and . problems are just with numbers such as "1,000" being interpreted as either one thousand or one and zero thousanths, depending on the region. It shouldn't have any effect on function separators like e.args or Convert.ToDouble.

F.Y.I. :)

zache
12-27-2005, 08:04 AM
Heh, this flash stuff is pretty intresting... like think about possibilities when you could map flash movie top of the surface like animated image or even better if it would be interactive image. :)