Is it possible to embed the flv file in to the flash like other files(images, swf), so that i can handle this in as3 as programmaticaly in the same way as FLVPlayback component? I know the way to add flv file by creating FLVPlayback component. But in this case we always need to depend on the source path of corresponding file. I am not able to find any kind of solution for this. As second way I have imported flv file to the library and created the instance of this but there is some problem with the synchronization of audio with video. Also in this case I am not able to handle this flv in as3 as programmatically.
Any kind of help would be appreciated.
Thanks in advance!
read next things:
http://www.actionscript.org/forums/showthread.php3?t=123832
http://www.bit-101.com/blog/?p=853#comment-253072
if you want some help, post the source you have, so community could provide the snippets for you goals.
Regards
Eugene
The best way would be to use the Video class, there is a simple example at the bottom of the page showing how to set up Netstreams and Netconnections.
Related
I have an swf file with many scenes. I would like to be able to add multiple hyperlinks to a company Intranet site (set up on SharePoint) that link to specific scenes in the swf file. Is this possible? Thank you!
It's do-able... it's going to depend on how much access you have to the actionscript, the javascript, etc. In short you'll need to be able to add the necessary listeners required to do what you want to do.
I found an example of communication between JavaScript and Flash here: http://code.tutsplus.com/tutorials/quick-tip-how-to-communicate-between-flash-and-javascript--active-3370
Yes, first you need to setup deep-linking in your SWF. Check out swfaddress. This will make it easier to create deep-links (using the browser address hash) into your SWF file. For example, a url such as my/site.html#scene3 could gotoAndPlay(1, "scene3") in your SWF. Swfaddress has various examples to get you started.
Once you have your swf setup to support deep-linking, you can simply create HTML links with the desired url, like <a href="my/site.html#scene3">.
I need to embed a movie file into an AS3 project and play it. I've only used NetStreams before, but since I want to have it as an embedded resource this time, that won't be necessary.
I know it's possible for MP3's and other resources, but can't find any clear info on video like mp4.
It's hard to google the problem because of the ambiguity of the word 'embed'
You can embed anything as binary data using metadata like this:
[Embed("file.mp4", mimeType="application/octet-stream")]
And then you can get that data as ByteArray at runtime. So if you can use byte array for playback, then yes, it is possible.
I'm making a flash website, I know the basics of html and AS3, but this is my first time trying to use them together. I need only two interactions between the swf file and the server:
The .swf needs to be able to grab image files from a directory hosted on the server
The .swf file needs to be able to change the URL
I'm not sure how complex these things are to do, but I'd like the simplest solution possible. Direct me to a tutorial if you think it is necessary, but the quick and dirty would be appreciated.
Loading images
Changing URL
If you want to interact between flash and the browser you can use ExternalInterface. Here is a simple tutorial on it:
ExternalInterface
Flash can access directory hosted on the same server as long as you have permission, and you can do redirect in AS3 w/ the following code:
var page3URL:String = "http://example.com?" + "x=" +id;
navigateToURL( new URLRequest( page3URL ) );
I am no flash expert however I need to edit the source of the flash project here: http://tools.assembla.com/1pixelout/browser/audio-player/
It's the "Wordpress audio player" I need to remove the skip forward and back buttons when there is more than one audio file.
Anyone know how to first of all use this folder structure, I thought it would simply be a .fla file that you edit but it seems to be loads of files. And then how do I compile it?
Thanks in advance,
Stefan
It appears to be FLA-based, meaning you will need to purchase a copy of Flash Professional (what version you need depends on the version of the FLA file).
It depends on how it was coded, either you need to edit the graphics / layout inside the FLA file, or you need to edit the code in one of the classes. The classes can either be embedded in the FLA file, or they can be in separate standalone AS files.
i have a player which is of swf file. I need to edit it to remove user defined conextmenu.( when i right click its showing one name, i need to remove that)
Can any one help me how to do that.
how i can edit swf file in flash. when i open swf file in flash am unable to edit anything.
u can see the flash player here
http://test2.musicking.in/video/4/abd
Please need help.
Thanks in advance.
Unless you've got the source, you can't edit it in the Flash IDE. You can usually import some assets, but that's about it. Your best bet is probably something like this:
http://www.sothink.com/product/flashdecompiler/
You can convert it first to .fla and then edit it.
Here is a link to the free download of swf to fla converter.