Problem: How to automatically click a Hotspot?

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

Problem: How to automatically click a Hotspot?

Postby Skatgott » Fri Jan 11, 2008 2:24 pm

Hello,

i like to start 2 or more Flashvideos when the frame is loaded. The problem is that i can only enter 1 flashvideo within the frame properties.
Maybe my problem can be solved by entering 2 or more flashvideos?

I have the idea to use hotspots for playing the flashvideos. How can I setup the hotspot to be automatically clicked after the frame is loaded?BEcause the video only starts after the hotspot is clickes by the end user?


I need the flashvideos to animate small portions of the background picture. I tried animated .gifs too, but I like .swf (flashvideos) more.


Thank you in advance

Adrian
Skatgott
New Member
 
Posts: 3
Joined: Fri Jan 11, 2008 2:17 pm

Postby Candle » Fri Jan 11, 2008 5:46 pm

I look around to see if I could find something on it and I didn't.
So unless maybe Shadow drops by you will have to wait till GM gets back as he is out of town right now.
And won't be back till after January 13.
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3077
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar

Postby Mystery » Fri Jan 11, 2008 7:33 pm

I have taken a look at the Flash Plugin and tried out things, but I haven't been able to do it yet. I get a "Wrong number of arguments or property assignment not valid" message. Sigh.

So unless a miracle happens and I get it to work, you really have to wait for ShadowHunter or GM :(
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland

Postby Candle » Fri Jan 11, 2008 8:16 pm

Might convert them to avi and do it that way.
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3077
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar

Postby Skatgott » Sat Jan 12, 2008 1:38 pm

Thanks for your attention.

By converting a gif, jpgs or a .swf to avi the quality drops significally(with my set of programs). I am very happy with the quality of the .swf files.
My problem is more or less not a flash movie problem, it is a programming question of how to start "update" a hotspot without clicking on it.

I can wait:)

Adrian
Skatgott
New Member
 
Posts: 3
Joined: Fri Jan 11, 2008 2:17 pm

Postby cpkspikyhair » Sun Jan 13, 2008 5:21 pm

All I can think of is, if you know the length of your first .SWF file, have one on on a frame and one on another, and have the first frame change to the second frame a tad after the first .SWF file ends.
PSPPC GameMaker!! Where you can find PSP and PC games up for download!
User avatar
cpkspikyhair
Games Page Administrator
 
Posts: 425
Joined: Thu Jun 28, 2007 1:49 pm
Location: On Mars (Yes There Is Water :) )

Postby GM-Support » Sun Jan 13, 2008 7:01 pm

Hi,

Without scripting it is not possible to launch multiple Flash movies at once.

However, you can do that with some very simple scripting.

First, enable the Flash Plugin from the "Plugins" tab of the Project Properties window.

Then, put the following code on the "Advanced" tab of the Frame Properties of the frame on which you want to display the Flash movie(s):

Code: Select all
PlayFlashMovieVER11 FileName, Left, Top, Width, Height, CloseAtTheEnd, ExecuteVBSCodeAtEnd, VBSCodeToExecute


where:
- "FileName" is the name of the file, which must be located inside the "External" subfolder of your project folder.
- "Left", "Top", "Width", and "Height" are strings containing the Flash movie position and size in pixels.
- "CloseAtTheEnd" is a STRING equal to "True" or "False" depending on whether you want to the movie to automatically close when it has finished or remain open.
- "ExecuteVBSCodeAtEnd" is a STRING equal to "True" or "False" depending on whether you want to have some VBScript code executed when the movie has finished playing.
- "VBSCodeToExecute" is a STRING with the code to execute, in case ExecuteVBSCodeAtEnd = "True".


Here is an example:
Code: Select all
PlayFlashMovieVER11 "MyMovie.swf", "0", "0", "640", "480", "True", "False", ""



Call the method multiple times to launch several movies at once. Here is an example:
Code: Select all
PlayFlashMovieVER11 "MyMovie1.swf", "0", "0", "100", "120", "True", "False", ""
PlayFlashMovieVER11 "MyMovie2.swf", "120", "0", "50", "70", "True", "False", ""



For the advanced users: you can have a look at how the Flash plugin work by clicking "Create/Modify plugins" from the Adventure Maker main menu, then selecting the plugin, and then clicking "Edit selected plugin".


GM-Support
GM-Support
Forum Admin and Games Page admin
 
Posts: 2221
Joined: Thu Jun 05, 2003 7:52 pm

Postby Skatgott » Sun Jan 13, 2008 8:14 pm

Thank YOu!

It works!!
Skatgott
New Member
 
Posts: 3
Joined: Fri Jan 11, 2008 2:17 pm


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests

cron