Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Relative paths in embedded objects in VB
#1
Ok. So I use a shockwave flash control in my program to embed a swf file.

If I punch in the path and filename to the "custom" property of the control, everything works fine. So, I think, now I'll remove the path before I compile it to make it relative, so I can put the exe and the swf file in any folder and it will still work. But it doesnt work. if I miss out the path, it wont see the swf even when in the same folder as the exe. :(

Anyone know how can I make the path of the swf relative in a shockwave flash control?
Reply
#2
probably a problem of the browser changing the current path.

Have your flash program report the current path just before trying to launch the exe. This may help in your debugging.
Life is like a box of chocolates', hrm, WTF, no it isn't, more like, 'life is like a steaming pile of horse crap.'
Reply
#3
If it is possible to set the path to the swf at runtime, just add App.Path to the beginning of the filename:

Code:
MyFlashControlThing.Filename = App.Path + IIf(Right(App.Path, 1) <> "\", "\", "") + "myflash.swf"
Reply
#4
Thanks guys,

DrV you gnarly frood! :D It worked! Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)