473,395 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Making an FLVplayback button active again after setting it to null

37
I have an FLVplayback component.
To make the playback buttons unresponsive
at a particular part of the video I have set
the buttons to null.

Expand|Select|Wrap|Line Numbers
  1. vidPlayer.playPauseButton = null;
  2. vidPlayer.backButton = null;
  3. vidPlayer.seekBar = null;
  4.  
This works, however I would like to know how to
reinable them again?

I tried changing null to 1 without success.

Expand|Select|Wrap|Line Numbers
  1. vidPlayer.playPauseButton = 1;
  2. vidPlayer.backButton = 1
  3. vidPlayer.seekBar = 1;
  4.  
Feb 1 '12 #1

✓ answered by Max58kl

Instead of setting the playPauseButton and backButton to null
I set their visibility to false

Expand|Select|Wrap|Line Numbers
  1. vidPlayer.playPauseButton.visible = false;
  2. vidPlayer.backButton.visible = false;
  3.  
and then back to true

Expand|Select|Wrap|Line Numbers
  1. vidPlayer.playPauseButton.visible = true;
  2. vidPlayer.backButton.visible = true;
The seekBar however is a lot more complex.
In the end the work around I used was to draw a
rectangle on top of the seekBar, then convert it to
a movieclip, then set the movieclip's alpha level to zero in the properties inspector.
I was then able to change the visibiltiy of the movieclip as I had with the
playPauseButton and backButton


vidPlayer.playPauseButton.visible = false;
vidPlayer.backButton.visible = false;
invisHideSeekBar.visible = true;

then

vidPlayer.playPauseButton.visible = true;
vidPlayer.backButton.visible = true;
invisHideSeekBar.visible = false;

This way the seekBar is unresponsive when clicked,
and even better, it is still totally visible!



@Max58kl

1 2073
Max58kl
37
Instead of setting the playPauseButton and backButton to null
I set their visibility to false

Expand|Select|Wrap|Line Numbers
  1. vidPlayer.playPauseButton.visible = false;
  2. vidPlayer.backButton.visible = false;
  3.  
and then back to true

Expand|Select|Wrap|Line Numbers
  1. vidPlayer.playPauseButton.visible = true;
  2. vidPlayer.backButton.visible = true;
The seekBar however is a lot more complex.
In the end the work around I used was to draw a
rectangle on top of the seekBar, then convert it to
a movieclip, then set the movieclip's alpha level to zero in the properties inspector.
I was then able to change the visibiltiy of the movieclip as I had with the
playPauseButton and backButton


vidPlayer.playPauseButton.visible = false;
vidPlayer.backButton.visible = false;
invisHideSeekBar.visible = true;

then

vidPlayer.playPauseButton.visible = true;
vidPlayer.backButton.visible = true;
invisHideSeekBar.visible = false;

This way the seekBar is unresponsive when clicked,
and even better, it is still totally visible!



@Max58kl
Feb 20 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: C. Lo | last post by:
Hi I have a situtation where a query returns a table in which some of the values are null. When I sort the results, the null values are treated as greater than the other numerical results. Is it...
3
by: Jozef | last post by:
Hi Folks! I'm wondering if there is a way to make an access button appear pressed in? I know there was a property or something similar in VB to make a button appear pressed in. What I'm...
7
by: Derrick | last post by:
Didn't there used to be some property where you could set a button to be the "default" so that if a user pressed enter with any control in focus, the button would still get the click event? Some...
0
by: WhyTea | last post by:
Hi... I need to make part of my button text subscript. Does anyone know how to do this? I tried putting HTML <sub> and </sub> into the .text but that didn't work. Any help or suggestions...
4
by: NASAdude | last post by:
I'm working on distributing a database using VS Tools for Office, and am having trouble with linked images on forms/reports. The image objects have a default path\file set on the .Picture property,...
2
by: Robert Dufour | last post by:
I have a sub to update a record in a sql server 2000 table. There's a field FK, which is defined to allow nulls in the table definition, the field type is integer. How do I write the sub's...
1
by: Pablito | last post by:
Hi at all I have an input type=submit I want that in certain cases this button is visible but non active How can I do please? Regards Pab
1
by: Brett Wesoloski | last post by:
Ok I would expect this to be easy but am running into some problems. I have a templete column in my datagrid with a button. <asp:TemplateColumn HeaderText="E-Mail Proposal"...
7
by: Steve Swift | last post by:
How close can you get to making a submit button look like a link? Answers to the inevitable questions: 1. Because I don't want my email address (which would have to be part of the URL in a...
14
by: alnino | last post by:
Hi, I have a command button on a form that the user can use to browse to a file and the user can select that file and a hyperlink to that file is stored in a txtfield for that record. I then...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.