Making the flv component accessible?
I am using the flv player component and am having trouble adding the players buttons to the tab order.
I opened the FLA for the skin I am attaching to the component, and individually selected the play, close caption and full screen button and assigned them each a tab order number within the Accessibility window. I also selected the "make object accessible" checkbox for each button within the Accessibility window. Doing that didnt seem to work, so I looked further and found that there is an accessibility class and I have now tried to utilize that class with the following code:
import fl.accessibility.ButtonAccImpl;
ButtonAccImpl.enableAccessibility();
but still dont seem to be doing something right?
does anyone have experience accessibility and the flv player component?
many thanks in advance.
corey.
i found this on adobes site but the code dosent seem to be correct? it throws this error when i publish:
Scene 1, Layer 'actions', Frame1, Line 10 1046: Type was not found or was not a complie-time constant: Void.
DESCRIPTION:
The FLVPlayback component skins with captioning support were designed with keyboard and screen reader access in mind. The class mx.video.skins.AccessibleSkin assigns a text label to each of the FLVPlayback controls. The AccessibleSkin class also provides the method assignTabIndexes for assigning tab index values to the FLVPlayback controls and incorporating them into the logical tab order of your Flash application. The assignTabIndexes method accepts a start index as a numeric parameter, iterates through the FLVPlayback controls assigning a unique tab index value to each control, and returns the next available tab index number.
CODE:
// The starting tabIndex for the FLVPlayback controls
var nextTabIndex:Number = 10;
// define a listener object
var listenerObject:Object = new Object();
// define a skinLoaded event handler
listenerObject.skinLoaded = function (eventObject:Object):Void
// this is technically a hack since the skin_mc is
// a private property of the FLVPlayback component
var accessibleSkin = eventObject.target.skin_mc.accessibleSkin;
if(accessibleSkin){
// It's best to wait a frame until
// all FLVPlayback controls initialize
var intID:Number;
intID = setInterval( function(){
// assign tabIndexes starting at nextTabIndex
nextTabIndex = accessibleSkin.assignTabIndexes(nextTabIndex);
// trace the next tab index after
// FLVPlayback controls
trace( nextTabIndex );
clearInterval(intID);
}, 100 );
// register listenerObject to handle "skinLoaded" event.
// this code assumes that your FLVPlayback component instance is
// named "myFLVPlayback_flvp"
myFLVPlayback_flvp.addEventListener("skinLoaded",listenerObject);
i miss good old AS2
thanks again in advance for any help.
corey
Similar Messages
-
Video quality with flv component
Hi,
I'm trying to improve the reproduction of a video incorporated into a website. The original .mov was 60 MB at 1280 x 720px. Using the Adobe media encoder I converted to FLV ( to add cue points for several small mc animations) and reduced dimensions to obtain filesize of 12MB. Video was brought into the SWF with the flv component. File loads quickly enough online- not too much in the way of delays waiting for video to start etc, however the reproduction is a little jumpy in several places and a little out of sync. I'm wondering if this is completely a result of the conversion process or whether the flv component might also be struggling with this filesize. I believe there is a FLVPlayback 2.5 component I released after my flash version CS4. Could anyone advise if I would gain improvements in the reproduction if I used this instead ?
Also - throughout the video I appear to have gained what looks like borders around the video, but only on the left and right sides, not all the way around (see screenshot). I'm not entirely sure whether this is a result of the conversion process with the adobe media encoder or whether this is something which has resulted within the flash file. And also on the last frame, the background colour of the video is completely strange. I had set to match the webpage, however as you can see in the screenshot attached, there's a strange graduation in colour that simply does not make sense to me - I would very much like to resolve as it looks very unprofesional.
Grateful for any assistance with any of the above issues
Thanks so much in advance !On your first point of quality and file size, they are really un-related. Only when you concider the video bitrate and display dimensions can you judge whether a particular file size will result in a good quality or poor quality video. The FLV Playback component really does not affect the quality one way or another.. it only displays what it's told to display. If you have other issues like
"however the reproduction is a little jumpy in several places and a little out of sync"
it's more likely that something was introduced during the conversion process.
But first, a little review of video bitrate:
Video bit rate
One of the principle of goal setting is to "Begin with the end in mind". In this case it'll be very hard to give good recommendations because the end is not defined. So I'll just make a few assumptions and you can correct me as needed.
First, I'll assume that since you are converting to Flash, you want to deliver this video over the Internet. If that's true, then we'll have to make some assumptions on the Internet connection download speeds of your potential viewers. Let's just say that most have at least a 1.5Mb connection or faster.
OK, that would mean that a video bitrate of half that should usually provide a video download that is not interupped by buffering (most of the time anyway). So assuming a video bitrate of 750kbps, what would the optimum display dimensions be?
Before we decide, here's a little info about bitrate. For highest quality playback, the video bitrate is tied directly to the display dimensions. That is, the larger the display, the more incoming data is required to properly display the video. Think of bitrate in terms of a can of paint. If you have 1 quart of paint, you might be able to do a very nice job on a 32 X 24 foot area. But if you try to stretch that same amount of paint out over a 64 X 48 foot area, the coverage will not be nearly as good and you get poor results.
In the same way, a video displayed at 640 X 480 pixels will require 4 times the bitrate as a video displayed at 320 X 240 pixels to produce the same quality. So for example a video with a bitrate of 100kbps, displayed at 160 X 120 will produce the same quality results as a video with a bitrate of 1600kbps if displayed at 640 X 480.
So to boil it all down, video bitrates of 750kbps, even up to 1000kbps can usually get delivered of the Internet on most high speed connections. Higher bit rates may work for really fast connections but will cause problems for viewers with slower connections. Video display size has a direct bearing on the final quality. In the 750 to 1000kbps range, display size should be kept around 450 or 500 width max (and whatever height the aspect ratio calls for). Yes it can be displayed larger, but the quality will suffer.
Sound like your audio settings are fine, especially for Internet delivery.
As for framerate, maintain the original raw video framerate for best results. So if the video was shot at 24fps, leave it.
As for video converters, do you have the Flash 8 Video Converter? It works just fine for video to be delivered over the Internet. Remember, you are taking a Cadillac version of video (h.264 HD) and stuffing it into a Chevy body to get it to work over the Internet.
As for slight borders in the display, it's most likely that somewhere in the conversion process or setting the dimensions of the FLVPlayback that the display/video dimensions got mismatched... even by a few pixels. So video is 480 x 360 while FLVPlayback is 480 x 356 or something like that. There is also the possibility that the FLVPlayback is trying to maintain the correct aspect ratio but the dimension is just a little off. So if the display is a little too short for the width, you could get black bars on either side. If the display is a little too narrow for the height, you will get black bars top and bottom.
So play with the display dimensions and see if you can correct it. If you can't, it may be in the video itself... test in another, FLV video player.
Best of luck on your project!
Adninjastrator -
FLV component not working on Safari Browsers or any MAC browsers
Hi everyone,
I recently made a website in flash which loads 4 flvs to make
thumbnails. When you click on the thumbnails you should be able to
see the respective video on the FLV component. This works great
with Windows OS but doesn't seems working in MAC's.
http://radhikari.iweb.bsu.edu/eurofiles
MAC users please send some feedback if you were able to see
the video playing.
Anyone who knows about that issue please give some
suggestions.
RabiNo problems with Facebook here ...
Might be a cookies issue. From your Safari menu bar click Safari > Preferences then select the Privacy tab.
Click Details then type Facebook in the search field then remove facebooik.com and facebook.net then cliick Remove > Done
Quit and relaunch Safari, try Facebook.
If that didn't help sign out of Facebook, quit and relaunch Safari, and sign back in to Facebook.
If that didn't help, with Safari open, press Command + Option + E to empty the cache.
Quit and relaunch Safari. Try Facebook. -
Unload external swf from flv component
Please help.
Is it possible to add action script to the flv player
componet buttons?
I am trying to unload an external swf file (voice over) if
the viewer chooses to play one of the many videos in the
presentation. Currently I am using an invisible button over the flv
component play button which unloads the swf. This works but would
rather assign the action directly to the flv play button on press.
Any suggestions? Thank youI've created a empty movieclip at x : 0, y : 0 instanced as "container"
i've got working like this,
but now i 'm trying to call a function in root, directly from child.
luca.swf (back button_
box.bt_voltar.addEventListener(MouseEvent.CLICK,onClosed);
function onClosed(e:MouseEvent):void {
if(this.parent) {
if(this.parent is Loader && this.parent.parent)
this.parent.parent.removeChild(this.parent);
else
this.parent.removeChild(this);
var p:MovieClip = this.parent.parent as MovieClip;
p.traceEntrada();
and main.swf
function lucaHandler(e:MouseEvent):void
limpaHome();
bt_luca.visible = false;
bt_conheca.visible = false;
bt_jogo.visible = false;
var ldrLuca:Loader=new Loader();
ldrLuca.load(new URLRequest("luca.swf"));
ldrLuca.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
addChild(ldrLuca);
function onCompleteHandler(loadEvent:Event):void{
container.addChild(loadEvent.currentTarget.content);
function traceEntrada():void{
trace("called from B.swf");
Now, as you can see, how can i call a function in parent from the loaded swf.
how can i call this trace function from the external loaded swf?
var p:MovieClip = this.parent.parent as MovieClip;
p.traceEntrada();
ps, im not using classes -
Hi.
i have an fla file with 5 keyframes. Each keyframe navigates forward to the following keyframe. On the fifth keyframe, a Loader loads an external swf. The external swf has an flv playback component with sound.
The fifth keyframe, other than having a button to click to load the swf, has a movie clip that navigates you back to the first keyframe.
The loaded swf, once loaded, may be removed using removeThis function which has removeChild code as well as a _flv.stop(); which makes the flv stop when the swf is removed. So u're back on keyframe 5, no sound - good!.
ASo, all is well and the user can navigate back to the first keyframe (from keyframe 5), and from there continue on to the 2nd, 3rd, 4th and 5th keyframes again, problems start though, when you get to that 5th keyframe again: that keyframe has an FLVPlayback component playing an flv, which at that point becomes very sluggish as all the mc animations on that 5th frame. And worse, i realize, the flv in the external swf that was previously loaded, starts playing by itself, which i know, because i hear its sound track.
I tried putting a conditional statement to tell the _flv to stop on keyframes 1 and 5, but that causes errors, considering that the flv is an undefined property from the perspective of those keyframes.
Any help would be very appreciated:)
thanks.var loader:Loader = new Loader();
loader.load(new URLRequest("_.swf"));
house.addEventListener(MouseEvent.CLICK, loadswf1);
function loadswf1(event:MouseEvent):void
addChild(loader);
this is how i'm loading the swf. I tried using Loader.unloadAndStop() inside that loadswf function but get an error -
Scene 1, Layer 'a', Frame 75, Line 83
1061: Call to a possibly undefined method unloadAndStop through a reference with static type Class. -
How to use the complete method for as3 FLV component
Hi team,
I am using an FLV component dragged to the stage and then bringing in video content. How can I make it visible=false when it has finished playing using the COMPLETE event?
Cheers.
subif your component's instance name is flv_pb, use:
flv_pb.addEventListener(Event.COMPLETE,completeF);
function completeF(e:Event):void{
flv_pb.visible=false; -
Making a Jpeg gallery with the Loader component...
I'm trying to make a gallery using many loader component
thumbnail photos that present their larger image in a different
(loader component) box when rolling over with my cursor...Is this
right? Is there an easier way I can do this?
If I can do it this way easily, I'd like to. PLEASE, if
anybody has the answer let me know, thank you.This sounds right. The nice thing is that you can replicate
the loader component and give it various instance names and just
point each one to its photo in your ActionScript.
I did something similar here:
http://sarajoypond.com/portfolio -
External flvs playing in the same component
I'm trying to create a video gallery for a website I'm
creating for a client. You can check the site out at
www.leilahstar.com. The concept of the video gallery is similar to
the picture gallery except when you rollover on the video
thumbnail, the thumb itself will switch from it's ".jpg" still
picture to it's ".gif" giving the user a looping 3 second preview
of the actual clip without sound. Once the user finally clicks on
it, the flv file should play in the framed pane. Can you please
give me a possible solution to make it work asap?
This code below is actually closey related to the code I've
created for the picture gallery under "Pic Flics" links.
Actionscript:I meant to say Creative, not creatie
-
Another post with a well-known title. Believe me, I know. Here's my setup;
- 1 Server 2012 WFE, SharePoint Server 2013, totally up-to-date, including the september 2014 hotfix
- 1 Server 2012 DB, SQL Server 2012
Installed SP 2013 using PowerShell, with the AutoSPinstaller. Worked like a charm. Got everything up and running, with some tweaking here and there to customize it to fit my situation. Now, I can't get the Search Service Application to work. Must have created,
deleted and recreated it at least 30 times. Used both PowerShell scripts, PowerShell line-by-line, Central Admin, heck, I even went so far as to use the configuration wizzard... No luck. I keep on getting the message that search cannot connect to the machine
that hosts the 'administration component'.
In order to avoid answers that suggest all the things I've already tried, here's a summary of the various scenarios I followed:
Tried both a dedicated application pool as well as the SharePoint Web Services Default
Timer job job-application-server-admin-service is running and not showing errors
IIS 8.0 is installed, so is .NET 4.5 (not the known perp of IIS 7.5 and .NET 4.0)
the get-SPEnterpriseSearchServiceInstance -local returns a healthy, online state
the SPEnterpriseSearchQueryAndSiteSettingsServiceInstance is also running
FireWall is disabled; registry has the BackConnectionHostNames modified with the necessary FQDNs
Accounts used to install and / or run the serviceapp all have sufficient rights - tried a dedicated managed account, SP_2013_SearchSvc, the SP admin account, and even the original Farm account; all to no avail, I keep on getting the error message.
Even tried stsadm to start the server search running - NOTHING WORKS!!!
As you might understand, this is driving me nuts. About to miss my second deadline, and no amount of IISresetting is making this go away. Been stuck on this issue for far too long, now (my searching is measured in days and weeks instead of hours, by now).
Whoever helps me solve this - you will have my eternal gratitude, and a nice bottle of Prosecco. Or whatever's your poison. You need to come get it, though. I´m situated in the Netherlands. Hey, you always meant to visit Amsterdam and see for yourself, right?
Thanks, community, for coming to my rescue!Thanks again - Alas, I've been there. Deleted Search a dozen times, at least, and tried installing it, initially using a PowerShell script (tried several scripts actually, from full-blown total Search Applications with extensive topologies to the most basic
of basics 'please just start without showing me errors'), PowerShell line-by-line to see where things went South, next tried installing through Central Admin (hoping that it was my own stupidity in overlooking things and hoping The System would get it right
for me), and eventually even tried using the config wizzard as a total and utter last resort - Nothing worked.
At first, I found out that removing a Service App needs a *little* bit more work than simply removing it through Central Admin, but by now I can truthfully state that if there's one thing I've become supergood at, it's removing Search Service Applications.Totally.
I will check out the article, though - I realized early on in my SharePoint experience that regardless of what you think you know, there's so much more to find out. I know, that's almost philosophical. That is, my friends, indeed the point I've reached... -
When I recently purchased my first iMac I was disappointed to find that there was no DVD making facility. I want to make a video of photo's and movie clips and then make a DVD that will play on a TV DVD player. I am thinking of purchasing a box set of iLife that includes iDVD and just installing the iDVD component. Can someone please confirm that tyhis will work? If not any suggestions?
If you have to purchase an iLife disc in order to obtain the iDVD application remember that the iLife 11 disc only provides themes from iDVD 5-7. The Software Update no longer installs the earlier themes nor do any of the iDVD 7 updaters available from the Apple Downloads website contain them.
Currently the only sure fire way to get all themes is to start with the iLife 09 disc:
This shows the iDVD contents in the iLife 09 disc via Pacifist:
You then can upgrade from iDVD 7.0.3 to iDVD 7.1.2 via the updaters at the Apple Downloads webpage.
OT -
How to make users to select the date from calendar control only, by my making the date text field read only (don't want to let users type the date) in date time control in external list in sharepoint 2010. I am looking for a solution which can
be done through sharepoint desginer / out of the box.
thanks.Congratulate you got the solution by yourself. I am new to a
WinForms calendar component, I feel so helpless on many problems even I'd read many tutorials. This question on the
calendar date selection did me a great favor. Cheers. -
Adding Images to the List component
Adding Images to the List component while using the FLV
PLayback
All, ( i can send you my source files if it would help)
I'm using the FLV Playback component and loading videos into
it from an external xml file. I also have a list component tied to
the FLV playback that when you click on one of the elements in the
list, it plays that movie.
QUESTION:
My question is how do I add an image to the list component?
Below is the xml file and the actionscript. I've added the image
attribute to the XML file as img="time_square.jpg" and added the
element of the array when calling/creating the list. Did I do this
right?
Any direction would be very much appreciated.Adding Images to the List component while using the FLV
PLayback
All, ( i can send you my source files if it would help)
I'm using the FLV Playback component and loading videos into
it from an external xml file. I also have a list component tied to
the FLV playback that when you click on one of the elements in the
list, it plays that movie.
QUESTION:
My question is how do I add an image to the list component?
Below is the xml file and the actionscript. I've added the image
attribute to the XML file as img="time_square.jpg" and added the
element of the array when calling/creating the list. Did I do this
right?
Any direction would be very much appreciated. -
How can I make the edges of the JSC component curved?
It is a very common practice to make the edges curved in web development. Curved edge looks attractive and professional. (for example see blog.com)
How can I make the edges of the JSC component curved? For example, consider Textfield component, how to make the the sharp edges smooth and curved?
Thank you very much.Follow the steps below implement rounded edges for tabs in a tabset component:
1)Create 2 images: level1_selected.jp and level1_deselct.jpg to be used as the background for these tabs. Thse images can be easily craeted using windows paint software. Just ceate a rectangular image of size 200X30 and draw a rounded rectangle on it.
2) Redefine the following styles in your application stylesheet(originally defined in css_master.css)
.Tab1Div td.Tab1TblSelTd {
background-color:#EDF5F8;width: 200px;height:40px;background-image:url(images/level1_selected.jpg)
.Tab1Div td.Tab1TblSelTd {
background-repeat:repeat-x;background-position:left bottom;border-bottom:none
.Tab1Div td {
background-color:#EFEBEF;width: 200px;height:40px;background-image:url(images/level1_deselect.jpg);border:none
.Tab1Div td {
background-repeat:repeat-x;background-position:bottom left
a.Tab1Lnk:link, a.Tab1Lnk:visited {
display:block;padding:8px 15px 0px;font-weight:bold;text-align:center
Results: By doing this you'll have the selected and unselected tabs show up with rounded egdes and also the selected tab will look bigger than the unselected tas making it more prominent. -
Hi.
I am loading a flv video in AS2:
var conexion:NetConnection = new NetConnection();
conexion.connect(null);
var stream:NetStream = new NetStream(conexion);
mi_video.attachVideo(stream);
stream.play("motto.flv");
this.onEnterFrame = function() {
if (stream.time>0) {
var integer:String = String((stream.time*.0166) >> 0);
var decimal:String = String((stream.time%60) >> 0);
timer_txt.text = ((integer.length<2) ? "0"+integer : integer)+":"+((decimal.length<2) ? "0"+decimal : decimal)
} else {
timer_txt.text = String("00:00");
It wokrs very good, In this line, I get de current time of the flv:
timer_txt.text = ((integer.length<2) ? "0"+integer : integer)+":"+((decimal.length<2) ? "0"+decimal : decimal)
An I need to display the total time too..
By the way, I am not using the any flv component, I need to play the video in a custom player....
ThanksI answer myself:
stream.onMetaData = function(info:Object) {
var totalInteger:String = String((info.duration*.0166) >> 0);
var totalDecimal:String = String((info.duration%60) >> 0);
total = ((totalInteger.length<2) ? "0"+totalInteger : totalInteger)+":"+((totalDecimal.length<2) ? "0"+totalDecimal : totalDecimal); -
ERROR: The Service Component Container is not running: Standalone Workflow
We're trying to get the java notification mailer established through the OEM 10g Application Server Control. But the mail agent listener servlet container (WFALSNRSVC), and the mailer service servlet container (WFMLRSVC) are not running. Because of that, I cannot get any other parts of the mail configuration running. Note, I can successfully complete getting through the 8 steps of the "Workflow Notification Mailer" configuration (e.g. IMAP and SMTP mail accounts work fine and are accessible from the Workflow application server). What's the trick to getting the servlet containers running?? All I find in Oracle documentation is that these must be running before you can do anything, but I don't find anything on troubleshooting when they are not running.
Thanks.Hi,
I'm having the same problem as you did.
I've tried pushing the button Go in the Oracle Workflow Manager - Service Components.
And it showed
An error has occurred!
The Service Component Container is not running.
Should I uninstall my Oracle Workflow?
And install a new installation of Oracle Workflow?
What does it mean by the "wfinstall"?
Is it the Oracle Workflow Configuration Assistant? which I can access using the wfinstall.bat.
Or should I replay the Oracle Workflow Configuration Assistant (wfinstall.bat) and choose Upgrade option?
Or should I uninstall all of my Oracle installation and start installing from the beginning?
BTW, what if I don't use (or have) OID?
Is it required?
Any clue would be grateful.
Thanks.
Buntoro
Maybe you are looking for
-
Problem with LOV and htmldb_custom_auth.get_username
I have a problem with the itemtype 'select list'. Why the following code creates an 'Ora Invalid Number Error'? SELECT ADRESSE d ,KAD_ID r FROM V_KUNDE_ADRESSEN_STANDORTE WHERE KND_KUNDEN_NR = htmldb_custom_auth.get_username AND KAD_TYP_A
-
Hello, my company has recently purchased several tablets for our employees out in the field so they can fill out forms on the go without using paper. For example: We have a timesheet .pdf that would need to be filled out, then saved separately from
-
Mail Delivery System Notifications won't go away
Hi all Tiger 10.4.11, MacBook Pro, Apple Mail. I have several Mail Delivery Status Failure notifications that I cannot get rid of. I delete them, they go in the trash, but I go into any other mail box and when I come back to the inbox, there they are
-
How do i reset the answers to my security questions
How do I reset the security questions on my i touch?
-
We have a need to correct affinity of Cloud Service, Azure DB, Storage and Mobile Services such that they are on a singl datacenter and do not get impacted by network latency when these components communicate with each other. Also to distribute vario