Small problem with external video class does not
It's my first external class and I am not able to see the video once I publish the swf file
package {}
import flash.display.Sprite;
import flash.net.NetConnection;
to import flash.net.NetStream;
import flash.media.Video;
import flash.display.MovieClip;
SerializableAttribute public class FLVPlayerBasic extends Sprite {}
public void FLVPlayerBasic() {}
Build NetConnection
var nc:NetConnection = new NetConnection();
NC. Connect (null);
Flash is looking for an onMetaData method
Route all calls to an object
var metaObject:Object = new Object();
metaObject.onMetaData = onMetaData;
Build NetStream and connect to the flow through the connection
var ns:NetStream;
NC = new NetStream (nc);
ns.play ("http://www.someurl.com/video/video.flv" "");
Route all calls to the metaObject NetStream onMetaData
NS.client = metaObject
Build a video object with dimensions
Video: var video = new video (320, 240);
Attach the video in the NetStream and added to the display list
video.attachNetStrea (ns);
addChild (video);
}
private void onMetaData(data:Object):void {}
}
}
}
the class file whose code display you in your first message MUST be named: FLVPlayerBasic
and if you click on an empty part of the scene and look in the properties panel, FLVPlayerBasic must appear in the document class.
Tags: Adobe Animate
Similar Questions
-
I have problems with the server DNS does not. I have been using my wireless on my computer and watching netflix on my Blu - ray player at the same time. The Blu - Ray player froze and wouldn't connect. At first, I thought that the network has not been configured correctly, but it worked not five minutes before. I tried many things and I realized it was that my DNS server does not. Does anyone have any suggestions?
original title: DNS server does notHi Dwright,
1. have you made changes on the computer recently?
2. not the problem only occurs when you watch netflix on Blu - Ray player?Method 1
I suggest you try the steps from the following link to fix the server DNS does not problem.
a. click on start and then Control Panel.
b. go to the networking and sharing Center and then click on change adapter settings.
c. right-click on connection to the Local network and select Properties.
d. Select Internet Protocol Version 6, and then click Properties.
e. Select obtain DNS server automatically an address and press Ok.
f. Select obtain IP address automatically.
g. Repeat steps for Internet Protocol version 4 as well.Method 2
Try resetting Winsock2 from the following link:How to determine and to recover from Winsock2 corruption in Windows Server 2003, Windows XP and Windows Vista (applies to Windows 7)
http://support.Microsoft.com/kb/811259Method 3
Reset TCP\IP.
How to reset the Internet Protocol (TCP/IP) (applies to Windows 7)
http://support.Microsoft.com/kb/299357Additional information:
Windows wireless and wired network connection problems
http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows -
I have a problem with HP Flash that does not appear on my PC
I have a few problems with HP Flash I do not know the * beep t. when I put in the other system, I mean Mac, it shows me and allows.
but when I remove that put in another system it gives me just a response as it is connected when I go on my computer there is not availble Flash sign.
I'll be back in fact once to the top of my Flash on Mac. When I got to that obtained in another system just Visible or disabled this system. Please someone who has the solution, in particular among providers of HP.
WKhan wrote:
I have a few problems with HP Flash I do not know the * beep t. when I put in the other system, I mean Mac, it shows me and allows.
but when I remove that put in another system it gives me just a response as it is connected when I go on my computer there is not availble Flash sign.
I'll be back in fact once to the top of my Flash on Mac. When I got to that obtained in another system just Visible or disabled this system. Please someone who has the solution, in particular among providers of HP.
Hello
Please provide more information: what is your computer and its operating system? I think
(a) HP is not a product called Mac
(b) HP has no any product called Flash.
As a result, HP cannot be Provider Service of Flash on Mac computer.
Kind regards.
-
Problem with HTML5 video play do not
Hello
I implemented a simple video test HTML5 in Dreamweaver CS4. I pulled the code necessary to the W3 schools site:
http://www.w3schools.com/HTML5/html5_video.asp
After making some adjustments in my code for the path and of dimensions, I downloaded the clip and Web page to my server. Here is the result and I have a problem with browsers; in Chrome, it plays a lot; in IE 9, the video is choppy and the toolbar does not have the option full screen as in Chrome:
http://designerandpublisher.com/multimedia/5/video.html
I also downloaded all on a second server, we're completely different than above. The result is worse - again, the video plays well in Chrome, but in IE9, the video does even appear at all. See below:
Does anyone know how to fix this? Thank you.
Hello
You have not any video required for all browsers.
The following link shows what video formats are supported by the browser-
Interim https://developer.Mozilla.org/en-us/docs/Media_formats_supported_by_the_audio_and_video_el
PZ
-
Problem with my Acer laptop does not connect to my home network.
Hello
I had a problem with my laptop. The laptop does not connect to my home network.
I found the wireless network, but when I hit enter after entering the password (), suddenly a pop up come that said "Windows could not connect to the network". The laptop connects well with portable hotspot in my phone (3 G Tethering). But my phone (Samsung Galaxy Pocket) connects to the home network.
My specs:
Acer Aspire 4250 ongoing Windows 7 SP1.
Dlink DSL-2730u (secure wifi with WEP 128 bit key)
Please solve my problem...
Original title: problems with my Acer laptop
Guess - encryption levels are the same. E.g. is your set of router that you use WEP only but your PC configured to use WPA only? http://Windows.Microsoft.com/en-HK/Windows7/set-up-a-security-key-for-a-wireless-network
If this is the case try to configure WPA2 or WPA rather than fall to WEP.
Check all the other related settings as well. knowledge is the router using MAC filtering, are there available IP address so that it can allocate? (some routers are possible to limit the amount of IP address, they can allocate at one time).
Second, if it does not remove the encryption all and see if it connects then. JUST AS a TEST, do not leave it.
-
Problem with InDesign startup script does not import XML images
I'm doing an XML import automatically from a startup script when a document is loaded. I managed to get most of the content to fill, but the images are ignored. Everything works, including images, when I do a manual 'Import XML' through the user interface or a manual script.
Here's my manual script:
var myDocument = app.activeDocument; var xmlFile = File('/c/Full/Path/To/data.xml'); myDocument.importXML(xmlFile);
But the goal is to do at startup. Here's my startup script:
#targetengine "session" app.addEventListener('afterOpen', function(myEvent) { if (myEvent.target.constructor.name !== 'Document') { return; } var myDocument = myEvent.target; var xmlFile = File('/c/Full/Path/To/data.xml'); myDocument.importXML(xmlFile); });
Here is the XML tag for the image:
<Image href="file:///C:/Full/Path/To/Image/02.png" />
I wonder there is a problem with the
'afterOpen'
event reminder, and it is the reason why it works manually using the same method, but not in the startup script.I solved it by avoiding the event quite listener:
main(); function main () { // create a path for a file object var curFile = File('/c/Path/To/file.indd); var xmlFile = File('/c/Path/To/data.xml'); // close app if files don't exist if (!curFile.exists || !xmlFile.exists) { app.quit(SaveOptions.NO); } // open the file var curDoc = app.open(curFile); // import the xml curDoc.importXML(xmlFile); // create a new file object var pdfFile = new File(curFile.parent + '/' + curFile.name + '.pdf'); // export to pdf curDoc.exportFile(ExportFormat.PDF_TYPE, pdfFile); // close app app.quit(SaveOptions.NO); }
-
Problem with lightbox: slide show does not open when you click on the photos
Nice day!
I added several pages to my website with viewers.
In a few pages, the slide show was under the footer... and in others, when I click on the thumbnail, the slide show does not open...
Where could be the problem?
Thanks for your help!
Opens the slide show does not, is very odd.
What do you mean by "beneath" ? The content of the album will always focus in the middle horizontal and vertical of the browser (not on the exact spot where you have put it on the page of Muse). Who is?
Please publish your website online to test. Just press "Publish" and let the Muse to assign a temporary address for her. share this link with us.
-
Stop or play on the image with the video tag does not work?
I have a video in a setting that corresponds with the label 'eight '; I have a button on the timeline with the following code. I have tried to Stop both gotoAndPlay and it does not work. Thanks in advance for your suggestions.
on {(press)
gotoAndStop (eight);
}
use:
on {(press)
gotoAndStop ("eight");
}
-
the problem with the wi - fi does not work on windows 8.1
Hello dear forum users (sorry for the English, use a translator)
I have a laptop HP Pavilion dv6-7055er, 8.1 Windows 64-bit
Card Broadcom WiFi 802.11b/g/n 1 x 1 4313GN worked on windows 7, but fails on windows 8.1. Tried to find the driver on the broadcom , but not found. Device Manager indicates that the problem with a PCI device. Specifies no problems with the Wi - Fi adapter.
What could be the cause and how to fix it? Thank you!
It seems that your WIFI adapter is not supported by Windows 8.1
There are a few options available.
The first and simplest is to purchase a USB wifi adapter to plug into one of the USB ports on the laptop. I have a dual ASUS USB-AC56 band that meets the 802.11ac specification.
The second option will be to take a look at the installed optional wifi adapters to see if they have Windows 8.1 supports, buy one to replace the Broadcom card installed with.
Ok. The two following adapters are compatible with your laptop and Windows 8.1. They have a BIOS support.
The Qualcomm Atheros AR9485
The Intel Centrino Advanced - N 6230 WLAN module
-
Problem with the Organizer - it does not show changes to ACR
When I open JPEG files in ACR, apply the changes (for example, Saturation - 100), click done, and then to open these files in the Organizer - it does not show changes in the cab so that I can't use an option File/Export as a new file. When I click on this file in the Organizer menu and open again in the editor, the image opens in ACR (not Photoshop editor) with changes
In the example below you can see that in the Organizer in metadata / Camera Raw/Saturation (in Polish "my") = - 100, but does not show the image in black and white. I do something wrong? Help, please.
In short, the changes you make in ACR are saved in the section of metadata of jpeg files when you click on "Done" you demonstrated.
You are right, the thumbnails are not updated in the Organizer, and changes are not taken into account when the export of the Organizer (unlike what I thought).
When you reopen the file of the editor or organizer, it is automatically opens again in the ACR dialog box and leaves you the choice of the original version, the default value 'auto', ACR, your 'custom' corrections correction or corrections of the already modified the file. That's fine when you modify or re - edit files individually, but this isn't the solution for the process of 'batch' as an export or by applying the same correction to a batch of files.
My suggestion is to use a workflow that I tested recently.
Let's say you have a batch of 20 files JPEG editing in ACR.
-You can open them all in the cab to the command "open in camera raw" Editor.
-You can leave the default conversion of ACR or add other corrections to some of the files.
-to highlight all the files in the film strip and click 'done '.
-You use the 'save' button to convert to DNG with the options you want. (I choose to create in the same location)
As a result:
-your files JPEG is unchanged, no thumbnail is updated, the corrections are ignored in the export process as described above.
-You can import the DNG of their location (with a record of 'control' can help).
-the DNG is displayed with thumbnails updated
-they can be exported as you want
-You can see JPEG and DNG files
-You can even ignore the original JPEG (the DNG format keeps intact with a reasonable increase in file size).
-If you want a redundant storage, we can use the function 'automatically suggest photo stacks' for battery original JPEG and DNG.
If it works for you?
-
problem with sound mvie plays does not automatically
Hello
I'm a bit of a novice when it comes to flash and as3, but I managed on the basis of set up animation with a voiceover. The voiceover plays the long and parts of the animation correspond to what is said in the voice so it's imperative that they play together.
I managed to add a play and pause button working ok however the animation starts automatically during the test, but the voice-over is not. You must click on the button foloowed break by the play button to get the voice-over to play. Once this is done the play buttons / break work perfectly. However, they voiceover and animation must start exactly at the same time the done voice-over refers to the animation.
I hope I'm supposed! I'm so close to do this work, but I can't seem to understand this. Any help would be appreciated as I am quite lost with as3!
I have 3 layers in the flash file, one with content (movieclip called MAN), with the buttons play/pause (go and stop) and the ActionScript (see below).
import flash.events.MouseEvent;
var mySound:Sound = new voiceover();
var myChannel:SoundChannel = new SoundChannel();
var lastPosition:Number = 0;
var soundIsPlaying:Boolean = true;
go.addEventListener (MouseEvent.CLICK, startplaying);
function startplaying(event:MouseEvent):void {}
dude. Play();
{if(!soundIsPlaying)}
myChannel = mySound.play (lastPosition);
}
}
halt.addEventListener (MouseEvent.CLICK, stopplaying);
function stopplaying(event:MouseEvent):void {}
dude. Stop();
lastPosition = myChannel.position;
myChannel.stop ();
soundIsPlaying = false;
}
I'd appreciate any help as my deadline is looming and I am so stuck on this last obstacle!
Thanks in advance
Try to set the value of soundIsPlaying to false instead of true at the beginning of your code. On the start menu, function to play the sound starts only if he does not play, but by having this value to be true at first, he thinks that the sound plays...
if(!soundIsPlaying) {/ / check if the sound is NOT playing (!)}
-
problem with windows 8 - bluetooth does not
Hello
I have a HP pavilion dv5 1014 and I have recently updated from VISTA to WINDOWS 8.
Bluetooth and Wi - FI doesn't work anymore. I tried to install the new drivers but without success. In addition, tactile switch WiFi does not more tactile audio switch responds but does not turn red when.
Please help me to fix it.
Thank you
Try this:
-
Problems with mapped drives folder does not properly?
- Hello, I have my readers mapped times PC on my network for single, however when I try to access it from the group main wokk PC that I use the most, it does nothing, except if I click on it above the folder box, I stored shortcuts in and re-fresh from hitting a few or several times, then he at that time goes crazy and does nothing and says does not on the storage folder, I used store it in, what am I doing wrong? It works sometimes, but I can't count on them to work when I need them too to help ideas everyone, thanks in advance., Teltom1
Hi Teltom1,
You try to access the shared computer using the UNC (Universal Naming Convention) path. The syntax is as follows.
See also:
-
Sequence multiple camera with several video formats does not?
Hey there,
First time I've posted in these forums. Thanks for the help in advance if someone has a solution.
So, I have 2-4 cameras and an audio file. I do a sequence of multiple camera using the audio synchronization option. It works fine if I have video files, but the second that I include a few Gopro videos it no longer works. What it does is, syncs all the video files to audio very well, but when I drag the sequence in the timeline he puts all the video and audio on this is on the right track. When she does I can not use the multiple camera view in the program monitor.
I didn't have this problem until I updated to the new CC.
Thank you!
Adam
OK so I had to delete and re-import all files, then redo the multi-cam sequence. Also, I discovered that once you drop on the sequence on the timeline you can't file another sequence on the same timeline or it explodes the video and sound in its own securities.
Conclusion...
Upgrade to the 2015.0.1 and then start over again. Also don't drop a single sequence multi-cam on the timeline you can't string together them.
-
Ideas:
- Error messages
- Recent changes to your computer
- What you have already tried to solve the problem
Remember - this is a public forum so never post private information such as numbers of mail or telephone!
Hello Susan4659,
Thank you for your message. Please see the link below, most likely you're trying to view photos taken with a camera that uses a specific format which is not standard with Photo Gallery.Please let us know if it did or did not help to solve your problem.See you soonEngineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.
Maybe you are looking for
-
Portege Z930 - impossible to boot from the external USB CD/DVD drive
I have a portege Z930 14UI am not able to boot from an external linke (Samsun SE-218) CD player via USB I already set the boot sequence and choosed CSM as model BIOS Thank youAndrea
-
How do I remove the keyboard of a Portege R400
Can someone give me more detailed information about how to remove the keyboard of my R400. I want to insert the SIM card, but I'm worried about damaging my new laptop. Thank you very muchG. Elmo
-
need sata drivers to format text for the installation of windows
hey im trying to reinstall windows on my dell xps 700 desktop computer but I need drivers sata for the instalation disc (I do not have the supliet a dell me with) and I'm using nlite for this but I can't find the drivers for it I need the driver to b
-
1. cisco ACS /Solution Engine, according to me, the dedicated device, unknown version) 2 cisco Security Manager 3.1 Are updates possible, or buy the latest version of the product is the only way out? What do we need for the upgrade? Are there specifi
-
How to use this site and whre to find answer to my questtion?
How to use this site and whre to find answer to my question?