forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


BROWSER with swf flash

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Jestem
Newbie


Joined: 15 Aug 2003
Posts: 7

PostPosted: Fri Aug 15, 2003 10:40 pm    Post subject: BROWSER with swf flash Reply with quote

Is there a way to communicate between a flash movie within BROWSER element and vds program? Perhaps with FS command?
And if not, how about javaScript? I am basically looking for a way to call a label within VDS script with BROWSER element, with a script within the browser.

Thanks,
-j
Back to top
View user's profile Send private message
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Sat Aug 16, 2003 12:20 am    Post subject: Reply with quote

Well you could use the VDSSWFLA Extension, which is a Macromedia Flash DLL for VDS.. I still havent updated it to support for VDS 5 but will during september. VDSSWFLA will be re-release then. It will let you add a Flash Objecdt to your VDS Dialog and control it via VDS.
Stay tuned... Wink

Will post it when its ready...
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Jestem
Newbie


Joined: 15 Aug 2003
Posts: 7

PostPosted: Sat Aug 16, 2003 8:16 am    Post subject: Reply with quote

marty wrote:
Well you could use the VDSSWFLA Extension, which is a Macromedia Flash DLL for VDS.. I still havent updated it to support for VDS 5 but will during september. VDSSWFLA will be re-release then. It will let you add a Flash Objecdt to your VDS Dialog and control it via VDS.
Stay tuned... Wink

Will post it when its ready...


Hehe yea, I got pretty excited to see the flash control, but then noticed it was pulled out. Looking forward to the re-release!
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Aug 19, 2003 3:43 pm    Post subject: Reply with quote

It can also be done by using Javascript calls. Just make some 'functions' in the SWF file, and then 'browse' to them by sending this as a URL to the browser command:

Code:
javascript:functionname(parameters)

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Jestem
Newbie


Joined: 15 Aug 2003
Posts: 7

PostPosted: Tue Aug 19, 2003 6:35 pm    Post subject: Reply with quote

Skit3000 wrote:
It can also be done by using Javascript calls. Just make some 'functions' in the SWF file, and then 'browse' to them by sending this as a URL to the browser command:


Yea, this works well for one-way communication (vds -> swf), but there still isn't a way to communicate from swf/javascript back to vds.

Vdsfla extension is the perfect solution though, it supports sending and retrieving variables from within swf movie.
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Aug 19, 2003 7:25 pm    Post subject: Reply with quote

I made a solution for that, just make a Javascript function which will copies the variable to the clipboard, and load it with VDS. Smile

Code:
%%clipboard = @clipboard()
browser set,javascript:setdatatoclipboard()
%%flashvalue = @clipboard()
clipboard set,%%clipboard


You should search for some code to set the clipboard content in VDS, I don't have it available right now... Rolling Eyes

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Jestem
Newbie


Joined: 15 Aug 2003
Posts: 7

PostPosted: Tue Aug 19, 2003 7:35 pm    Post subject: Reply with quote

Skit3000 wrote:
I made a solution for that, just make a Javascript function which will copies the variable to the clipboard, and load it with VDS. Smile

You should search for some code to set the clipboard content in VDS, I don't have it available right now... Rolling Eyes


Ha! Nice. I didn't think about the clipboard. It's a hack, but I guess it would do the job Smile
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Aug 19, 2003 7:38 pm    Post subject: Reply with quote

You can use it as long as only run this code when your program is active. In that case people don't use the clipboard, so you can do with it whatever you like... Wink
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Jestem
Newbie


Joined: 15 Aug 2003
Posts: 7

PostPosted: Tue Aug 19, 2003 7:52 pm    Post subject: Reply with quote

Actually, your clipboard idea inspired me to yet another way of doing it. With your HTA support script (nice, btw), use the FileSystemObject ActiveX object inside JScript to read/write to a text file, and use that as a gateway between vds/jscript. Also a hack, but doesn't have any limitations.

Though I think I'll stick with vdsfla; seems like much cleaner way of doing things.

-j
Back to top
View user's profile Send private message
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Tue Aug 19, 2003 7:55 pm    Post subject: Reply with quote

Just to let you know that HTA scripts are blocked sometimes when the users has Norton or something else, as well as Activex controls by IE.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Aug 19, 2003 10:20 pm    Post subject: Reply with quote

Skit3000 wrote:
You should search for some code to set the clipboard content in VDS, I don't have it available right now... Rolling Eyes


Do you mean like this?

Code:
clipboard set,mytext

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group