Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 4th, 2011, 09:53 AM
phunder's Avatar
phunder phunder is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2010
Posts: 58 phunder User rank is Sergeant (500 - 2000 Reputation Level)phunder User rank is Sergeant (500 - 2000 Reputation Level)phunder User rank is Sergeant (500 - 2000 Reputation Level)phunder User rank is Sergeant (500 - 2000 Reputation Level)phunder User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 10 h 23 m 48 sec
Reputation Power: 9
Flash Player 10 - Deactivating Flash elements using JavaScript/ CSS

Hi everyone

I am busy building a site that uses Flash, jQuery and standard JavaScript.

My Problem: It seems that the communication between these platforms often takes some time to complete. I can see that some users will think that nothing is happening and click the Flash buttons over and over. This will cause even more of a wait since more Flash to JavaScript communication is triggered.

My solution: What I would like to do is make my Flash content un-clickable until my JavaScript and jQuery are done running. I don't want to do this by sending JS commands to the Flash since I do not want to increase the communication between the two. What I have done is use JS to set the CSS "curser" property to the "wait" when you move it anywhere on the page, and to "not-allowed" when you move your mouse over the Flash content, at least until one jQuery animation is done running.

The problem with my solution: It seems that when I move my mouse over the Flash element focus shifts off of the html and on to the embedded Flash object. This means that the "not -allowed" curser pops up for just a second and then disappears.

What I ned to figure out: I was wondering if anyone has an idea of how to prevent the embedded swf object from accepting focus? In other words I would like the Flash buttons to be deactivated when you click one of them or one of several html elements that trigger jQuery animations. I don't want to use a JS command to call a Flash function that does this, since I don't want to add to the communication time, which is in reality my original concern.

Any suggestions on how to make this work or for a better solution would be much appreciated.

Last edited by phunder : July 4th, 2011 at 10:02 AM.

Reply With Quote
  #2  
Old July 4th, 2011, 10:21 AM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 6,663 Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)  Folding Points: 14767 Folding Title: Novice Folder
Time spent in forums: 1 Month 1 Week 3 Days 20 h 9 m 55 sec
Reputation Power: 3163
Facebook MySpace
Hi, you could place a div with a transparent gif over the top of the Flash content. That way, the Flash content will be visible but not clickable. When the rest of the system is ready then use JS to hide the transparent gif div.
__________________
Quis custodiet ipsos custodes?

Reply With Quote
  #3  
Old July 5th, 2011, 12:59 AM
phunder's Avatar
phunder phunder is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2010
Posts: 58 phunder User rank is Sergeant (500 - 2000 Reputation Level)phunder User rank is Sergeant (500 - 2000 Reputation Level)phunder User rank is Sergeant (500 - 2000 Reputation Level)phunder User rank is Sergeant (500 - 2000 Reputation Level)phunder User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 10 h 23 m 48 sec
Reputation Power: 9
Quote:
Originally Posted by Tann San
Hi, you could place a div with a transparent gif over the top of the Flash content. That way, the Flash content will be visible but not clickable. When the rest of the system is ready then use JS to hide the transparent gif div.


Thanks for the reply. I was actually thinking of trying something like that. I'll give it a go and let you know what I can figure out

Reply With Quote
  #4  
Old July 5th, 2011, 08:09 AM
phunder's Avatar
phunder phunder is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2010
Posts: 58 phunder User rank is Sergeant (500 - 2000 Reputation Level)phunder User rank is Sergeant (500 - 2000 Reputation Level)phunder User rank is Sergeant (500 - 2000 Reputation Level)phunder User rank is Sergeant (500 - 2000 Reputation Level)phunder User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 10 h 23 m 48 sec
Reputation Power: 9
Thanks Tann San, that works perfectly

Reply With Quote
  #5  
Old July 28th, 2011, 12:59 PM
Frank Grimes's Avatar
Frank Grimes Frank Grimes is offline
Plays with fire
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2003
Location: Outside looking in
Posts: 894 Frank Grimes User rank is Second Lieutenant (5000 - 10000 Reputation Level)Frank Grimes User rank is Second Lieutenant (5000 - 10000 Reputation Level)Frank Grimes User rank is Second Lieutenant (5000 - 10000 Reputation Level)Frank Grimes User rank is Second Lieutenant (5000 - 10000 Reputation Level)Frank Grimes User rank is Second Lieutenant (5000 - 10000 Reputation Level)Frank Grimes User rank is Second Lieutenant (5000 - 10000 Reputation Level)Frank Grimes User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 4 h 40 m 15 sec
Reputation Power: 95
This is actually a case of good usability. Of the rules for usability is feedback. When a user clicks something, tell the user it was clicked.

In your case, if a button is clicked and there is some communication with a server and you want to prevent the user from doing anything while the communication is active, gray out the screen and put a message up that says "working" or "busy" or, if you can, give progress like "50% complete...". Just never leave a user guessing about what's happening.
__________________
“Be ashamed to die until you have won some victory for humanity.” -- Horace Mann

"...all men are created equal." -- US Declaration of Independence

Reply With Quote
  #6  
Old July 29th, 2011, 02:10 AM
phunder's Avatar
phunder phunder is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2010
Posts: 58 phunder User rank is Sergeant (500 - 2000 Reputation Level)phunder User rank is Sergeant (500 - 2000 Reputation Level)phunder User rank is Sergeant (500 - 2000 Reputation Level)phunder User rank is Sergeant (500 - 2000 Reputation Level)phunder User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 10 h 23 m 48 sec
Reputation Power: 9
Thanks Frank, that is good advice.

In this case I used the wait curser to relay this message, though a message does not sound like a bad idea as well. The links are also deactivated until the command is processed. The wait is rarely very long though, so in this case I will content myself with what I have.

Thanks for the advice once again

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Flash Player 10 - Deactivating Flash elements using JavaScript/ CSS

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap