Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What am I doing wrong? (launching html & movie)

Status
Not open for further replies.

CMD83

Technical User
Nov 11, 2002
68
NL
Hi

I'm just starting to get to know Lingo a bit.

I'm making a director presentation.
I need to launch to a html file and movie file (through buttons)

html:

on mouseDown
gotoNetpage "@/mapname/index.html"
end

(the projector is in the same map as 'mapname')

(but when I click it he goes to this site:
and not to the right folder)

now to my second problem
I'm also trying to open the windows mediaplayer and play a WMV-file.

with thise code:

on mouseDown
open the moviePath & "@movie.wmv"
end

(again movie.wmv is in same map as projector, this one doesnt work at all)

do I forget to add an Xtra or is my code incorrect?

I hope someone can help me
 
remove the @ from "open the moviePath & "@movie.wmv""
 
Thanx! I removed both the @'s (and htm instead of html, my bad) and now its working!

but the movie still isn't. If I use the above example I get an error: use of unsupported Lingo command #open

if I change it to
play movie the moviePath & "movie.wmv"

it says it's not a directorfile.

any idea how to fix this?

I really apreciate the help! ^^

 
The play command is used to jump to another dir/dxr.
The open command is right. What might be happening is that the .wmv extension is not registered with any application. You can use buddyAPI to find out the application that is associated with the extension. I think you need an updated version of Windows Media Player to play wmv's.

Mayuresh
 
When I double click it or open it through html link it does show the movie (in windows media player). But when I publish it (in director) it gives that open error, when I make a projector from it it just doesn't do anything.

Thanks for helping me though!
 
I fixed it! ^^

(just to let you know how)
(only works when you create a projector though, it doesnt work with shockwave)

on mouseDown
open "movie.wmv" with "mplayer2"
end

(both your movie.wmv and mplayer2.exe should be in the same as your projector, or you should like them in the code)

Hope this is not only helpfull to myself ^^
Thanks again!
 
That is the reason why I was askimg you to use buddyAPI so that you could use open...with

Anyways, glad you got it working.

Mayuresh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top