Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 5:47 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Flex & key presses
PostPosted: August 26th, 2013, 11:55 am 
Offline

Joined: November 25th, 2004, 2:23 pm
Posts: 24
Location: Wiltshire, UK
Opus: 9.03
OS: Win7 x64
System: ACER i7 4GB RAM
Edit 2: Cancel my optimism. My 'solution' below worked initially but has now stopped working for the published flash file and any others that I try to create on my laptop. I can go to another computer with Opus installed and create a working published version there. If anyone has a clue as to what weird craziness is happening, please help! :?
Source files attached - pressing the "c" key should show a text box.

Code:
if (IsKeyPressed("c"))
{
MyText1.Show()
}


Original Problem:
The trigger 'Key Press' and script function IsKeyPressed() don't appear to be supported in flex publications (unless I have missed something obvious).
Is there a way to achieve a solution that recognises key presses for a flash output file?

Edit 1:
Solved my own problem minutes after this post. :oops:
Correct use of the 'Ticker' trigger along with the script function 'IsKeyPressed()' provides a suitable solution.
If anyone knows of a better / alternate method, feel free to reply for others to benefit.


You do not have the required permissions to view the files attached to this post.

_________________
Glen


Top
 Profile  
 
 Post subject: Re: Flex & key presses
PostPosted: August 27th, 2013, 10:41 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Try using the action method instead of the script.

Action tab > Triggers tab > Advanced > Key press

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: Flex & key presses
PostPosted: August 28th, 2013, 1:24 pm 
Offline

Joined: November 25th, 2004, 2:23 pm
Posts: 24
Location: Wiltshire, UK
Opus: 9.03
OS: Win7 x64
System: ACER i7 4GB RAM
Mackavi

Thank you for your reply.

After much trial and error,error,error(!!), the problem appears to have been IE10. The final solution that works was to roll back to IE9 and dis-associate the .swf file type on the laptop.All now works fine when I use the publication's html launch file.

If anyone else could confirm IE10 is causing Key Press misbehaviours it would be good to know, otherwise it might just be some strange, unique setup on my laptop.

The client's network on IE8 and Shockwave player V--.700.xx seems happy also, which was vital...

_________________
Glen


Top
 Profile  
 
 Post subject: Re: Flex & key presses
PostPosted: August 28th, 2013, 2:55 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Works fine here > Opus 8.12 and IE10 and Flash 11.8.

Are you sure the Flash Object has focus. Sometimes you need to click on the object as the IE warning box steals it.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 22 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group