ActionScript 3.0 :: Play FLV Files From An Embedded SWF File?
Dec 11, 2009
I have a Flash site that has two separate areas of navigation: "root.swf" is the main file and by default loads "welcome.swf". If you click on one of three other links in "root", it takes you to one of those three pages.
I need to have various .flv files play individually on command from the timeline (when separate buttons are clicked), but I need those to load externally but appear as though they are a part of "welcome.swf". [code]...
I'm just wondering why my swf files won't play when I upload them along with my HTML file to the server.
The problem can be seen at the following [url]... Can't get my embedded swf files to play in HTML file
I inserted the swf in 'insert media' - 'shockwave' and the thing works when I press play to view it within dreamweaver. However, when I try to view it on a browser, either locally or remotely, it doesn't work.
I have been searching the web and all of the codes I have found are to play external swf files that have a timeline. The file that I am trying to load does not have a timeline. I am using the Flixel framework for this project and the file that I want to play is also made in Flixel(don't have the source file just the swf file).Most of the code I have is from a cutscene template that I found on the Flixel forum. Here is what I have so far:
When I run this I get this error: Type Coercion failed: cannot convert SponsorsState_SwfClass@fb5161 to flash.display.MovieClip., all I want to do is play the swf file for a set frame count then move onto the next state.
I have made a presentation with voice over, in which the images and audio files are loaded externelly from the folder where the swf was placed. the voice over files are in MP3 format, loaded with the script follows
mysound = new Sound(); mysound.loadSound("voice1.mp3"); mysound.start(0,0);
I have made a presentation with voice over, in which the images and audio files are loaded externelly from the folder where the swf was placed. the voice over files are in MP3 format, loaded with the script follows
mysound = new Sound(); mysound.loadSound("voice1.mp3"); mysound.start(0,0);
So i've made my .swf files. The only thing is they all play at full screen when i play them using my web browser. I need them to play at 548 x 408. when i open the .fla and go to properties it says the size IS at 548 x 410 but it can't be if its playing full screen.
I can't seem to download the flash files from the address.i click on page info and find the embeded flash,but can't download it. Another, how can I convert flash files from youtube to my ipod? I found an excellent flv converter, but not knew if it could convert flash from youtube.How to make flash suitalbe for youtube?
From the Sound Class information, it says to use the SoundMixer Class to handle embedded Sound Files. I have two sound files embedded, that I have setup in 2 separate layers, starting at frame one in the main timeline. I needed to do this so I could see the wave files, and coordinate text with the waves. I do not want to load these files into the .swf file at runtime using URLRequest. How do I get a handle on those as they exist, to make each controllable by separate volume and mute controls for each sound?
This will be a challenging question, because, "it can't be done" doesn't work for me. I managed to create a way to use an external classfile to control the main timeline, the ROOT timeline, without having to create a sub movie to root. I can use my component to call play(); as though it were in code in a frame. But it isn't, it's in an external classfile. I passed root to the classfile and told the classfile to think of it as a movieclip - that put the handle on it. I tried similar way with root as a Sound, but that isn't detailed enough - I need to get a handle on the frame that contains the embedded sound file. I embedded, attached it, using the properties view for the frame.
I've attached, or whatever you want to call it, these sound files to a frame, and this frame is or should be attached to the layer I've created. So, under the assumption that the ROOT has everything attached to it in some manner (it is after all the foundation for the COM), the stage of the root contains the visual components, so ROOT has to have the layer objects attached to it, which should have the frame objects attached to the layers. I have two layers that each have a .wav file attached to frame one. Somehow Flash keeps track of that - I want to know how Flash does it so I can read what flash reads.
I am new to Flash and this may sound, well dumb but here it goes. I have taken some video files from Final Cut Pro converted them to FLV's imported them and embedded them into flash to create some banners for the web. I need to know what settings I should use to get these out of Flash for the web.
Also I need to send them to someone to look at before publishing. What would be the best format to do that in and how to do it.
Also has anyone has any experience creating banners in or online ads in a Video format like FCP and embedding them into a flash file to export them in flash for we publishing. Sorry again for the dumb question, just new to Flash.
I need to protect images embedded in a swf file. I've noticed Swf Encrypt scrambles the images, like so:
How is something like this achieved ? How does image scrambling work ? I've noticed the image is stored a bitmap. Not sure how information is stored.I imagine it would be possible to use something like AS3SWF to access the content of a swf, but what would I need to change for the image swf tags ? I don't know much about security/obfuscation/encryption, so any tips will be handy. The programming language for this shouldn't matter much.
do you get any error? If #2044 you need to understand that path you give for the request is not always the same testing in flash, and on the server, because if you put your movie.swf to the index.html then, your domino.jpg file needs to be in the same directory as index.html. And does not matter if swf still is placed in the same dir as images, because now your swf moves to different location (index.html)
I'm not getting an error message, so I assume the AS is written correctly. That's what's so confusing. The files are not upload to a server yet -- everything is local. What happens is, let's say, I use FF to view the html file, after clicking a thumbnail, it directs to a page that reads: File not found Firefox can't find the file at /Users/name/Desktop/SITES/grdn_page/elleJapan.jpg.
I am using a embeddable Flash based MP3 player (The standalone Version of Wordpress Audio Player, to be exact) to play audio on the web page of a client. Given the nature of Flash based players - AFAIK they all use Flash's audio/video decoding libraries - the exact player product might not matter, though. She complains that some specific audio files sometimes tend to play slowly, as if on a tape deck that doesn't run at full speed. Her machine is a 5 year old Sony Vaio with a 1.5 GhZ Pentium M Processor.
So it's not top of the line anymore but it should not have trouble decoding anything, let alone a MP3 audio stream. I can't verify the problem because we can't set up an audio connection (slow Internet on a remote island), nor can I reproduce it on my 3.3 GhZ dual-code Workstation, but this is a person whose error reports have seldom turned out unfounded in the past, so I tend to take them seriously. I see differences between the encodings of the MP3 files (see below). Any pointers towards which setting(s) to change?
This is what Winamp tells me about a file that is sometimes slow: MPEG-1 Layer 3 128 Kbit, approx. 966 frames 48000Hz Stereo CRC: Yes, Copyright: No
This is what Winamp tells me about a file that is never slow: Encoder delay: 576, Zero Padding: 1584 MPEG-1 Layer 3 151 Kbit (VBR), 12405 Frames 44100Hz Joint Stereo CRC: No, Copyright: No
I understand that flash is quite new to android. Has anyone actually used flash in an android app? How did you do it and what do you recommend. I'm trying to embed flash animation into an app.
I have made a html file in which a swf is embedded with swf object. this swf contain dynamically loaded audio files. It works fine in offline but when it is uploaded it does not show the movie(swf is not playing) I see only empty space. i thought that it may take time to load, but even after waiting for long time the swf did not play and it shows blank white space. Why?..........following is the code[code].....
swf that is at 30fps. So by default, it plays at 30fps. Is there any way using code I can slow down this subswf to play at 12fps...and not automatically go to the default of the root swf's fps?
I have a swf that contains two layers, one with embedded video, one with some other crap. Either through actionscript and/or a transparent button, I want the movie to repeat endlessly on rollover and stop on rollout. I understand the basics of how buttons and movieclips work, but I have not been able to convert the embedded video into a movieclip to make this easy.
I have a template I created in CS4 where an flv video clip was embedded with a controller skin, etc. It worked fine.
I'm working in CS5 now and using f4v files, and publishing for Flash 10 Player. The files are targeted, load and play properly, but if I pause the video, then hit play, audio stops. Starting a new clip at a different point in the timeline works fine. I noticed if I turn off autoplay under Component Parameters, audio doesn't work at all.
I created one invitation in flash 8 with flip book and wanted to upload it online and share the link with everyone. wanted to do in an atmosphere where flash player is self embedded and the user doesnt need to have the flash player.
SecurityError: Error #2148: SWF file wf cannot access local resource D:UsersMatthewMy DocumentsMS Data Systemswings-of-lhe-zodiac-code.flv. Only local-with-filesystem and trusted local SWF files may access local resources.
at flash.net::NetStream/play() at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::_play() at
I have one swf banner which I want it into .aspx page. The website runs ok under http and the banner plays correctly. After we set the website to run under https, the banner stopped to load. I've tried to load this banner via http link from inside https running page. Nothing happened as well.
I'm new to Flash, and obviously AS3 (or AS in general) and am currently making a menu in which I have 2 video files.I want people to be able to play and pause (and stop) these videos.I currently have them playing and pausing using the FLVplayback method with no skins (have to make my own buttons). Though this is working I really need the video files to be embedded into the .swf/.fla as apposed to an external video.I have imported the videos into the library but they're not in use atm.
Is it possible to tell FLVplayback to use a embedded file from the library?If not is it possible to make a embedded video play/pause/stop in AS3 any other way? I couldn't seem to get it to which is why I went to FLVplayback method.
I created one invitation in flash 8 with flip book and wanted to upload it online and share the link with everyone. wanted to do in an atmosphere where flash player is self embedded and the user doesnt need to have the flash player.
getting a rotating banner I downloaded to actually work on my home page. So I'm using FrontPage 2003. I've got my index page open and I select Insert, Picture, Movie in Flash Format. I browse through my subfolder and select the swf file. But it will not play!However, when I follow the exact same steps, but on a page that is located within the subfolder where all the files are located, the video plays just fine. So I know it probably has something to do with my file path, but I just can't figure out what I'm doing wrong. My files are located like this:
root - index.html subfolder-
(There is the deploy folder which has two subfolders in it - banner and js.)
I've tried copying and pasting all of the files so they're in the root folder, and then embedding the swf, and it still doesn't work.I've tried editing the banner.xml page and telling all the folder paths to start from the root folder, and that hasn't worked either.
it's possible to use play and stop methods on an instance of an SWF that's been embedded into class using the Embed metatag?I've not been able to get it to work, and have read that it's not possible with video, so am wondering if the same is true for any SWF?
This code works perfect when testing, and it works perfect viewing the SWF, but when you view the HTML file with the SWF embedded, it doesn't display the text file content.
I have embedded a flv video onto the stage. I then have loaded in an image which is transparent enough to see the video through it. The problem is I cant now access the video player to control it. Is there anyway to bring the embedded video on the stage above the loaded in image so I can actually click play on the control bar and play the video?