ActionScript 2.0 :: Starting Embedded FLV With A Screen Shot?
Mar 10, 2010
I have an FLV video embedded in a Flash site. It starts with a black screen, so currently as you land on the home page there is just a black space. Is there a way of getting it to sit on the site home page with a different image, ie. a screen shot from elsewhere in the video (without editing the actual video in an editing programme), which displays until the user presses play, then returns to it when the video is finished?
I would like to ask you, how can i make screen shoot(of movie clip for example) by As3 and send this data to php and there make jpg or somethink like this. I do not want JPGEncoder a thinks like this, because it's slow, when i want make screen 2000x2000 px. I need solution which will be quick, so just send data to php and there find solution how this data convert to jpg.
I am using Flex 4.1 and AlivePdf for generating pdf. My requirement is like as follows: I have an array of xml data. I need to iterate that array, develop a chart, take a screen shot of that chart (using ImageSnapshot.captureImage) and save it as pdf in desktop folder. Here, I am using the following code snippet,
[Code]...
e.g. if there are 50 xml then 50 pdf need to be stored in that particular location. The problem is that it is taking too long time. Is it possible to minimize to pdf creation time?
i'm working on a file where i have a screen shot at the beginning of the flash player movie and when you click on the screen shot the movie starts to play. i'd like to convert it to as2 if possible.
I have a flash app based off the Screen shot maker found here: [URL]
Creating a screen shot from an flv on the same server works fine, but when I try to load the contentPath from a remote server the video plays fine, but the .jpg generated in the PHP file is blank with a white background.
Here's the ActionScript:
PHP Code:
import flash.display.BitmapData; vid.contentPath = flvurl; var vidid = vidid;
does anyone know the best way to go about creating a flash movie that lets you click a button to dynamically create a JPEG screen shot of the movie. i looked around and found a thread close to what i am looking for but it was done in AS3.
Is it possible to take a screen shot (using the Print Screen) and paste it from the System Clipboard directly into a web pages text area field (which I would create)? Do I need a browser plug-in? Can Flash do this?
I'm building a kind of avatar creator. At the end, I want the user to be able to capture what they have made and repost it to the site, essentially save out their creation as a web-friendly image - png, gif or jpg.
Ideally they'd save out two versions, a full size and a thumbnail.
In any event, is there a way to do something like this?
My flash media player is not playing automatically when my webpage loads. I have changed the settings from 0 to 1 (which should auto start the file), but still does not start the song automatically. This occurs in IE, FF, and Chrome.
Adobe Flash Builder: How to make a function to play video starting from one second and ending in another? So I havein MXML simple video player tag. I need some function to play that video from second X to second Y and pause it. How to do such thing?BTW: we asume file is embeded into SWF.
Attempting to get a flash virtual tour to go fullscreen when embedded in an html page. Have no knowledge of html coding ... Have an embedded button on the tour and a p2q_embed_object.js file (both generated out of Pano2VR). Created an html page in Dreamweaver CS3, the code of which is pasted below ...
I want to launch full-screen pop-ups for the large photos within a Flash gallery.The gallery (above) is a visually customised version of the AS2 Image Scroller Gallery purchased from Flashtuning.net.I have done some research and located a JavaScript full-screen pop-up tutorial hosted by ActionScript.org, but as the image is embedded within a SWF and not an HTML page, I'm assuming that it won't work.The JPG URLs for the Flash gallery are obtained from a supporting XML file, but I'm assuming that integrating the full-screen pop-up JavaScript within the XML won't work.
My site was 95% point and clicked and the rest getting lucky with mostly the right AS3 after searching the various forums etc. Please be patient and type slowly that I may understand
I managed to get a youtube embedded into my AS3 Flash site. Plays well enough and in the right box. Gota figure out how to default to 480 or 720 but thats not the problem... see below.
My questions is this: is there any way to stop the video from playing all the way through to Youtubes default end screen where it has the Just Watched and Up Next screen? Either by going back to the thumbnail it uses by default or by sending it to another page on my flash site?
The last thing I want is my viewer wandering away from my site ><.
Below is the code I used on the Video holder object Sorry i forgot the tute i pasted from - but it worked thank you who ever you may be:
Security.allowDomain("www.youtube.com");
// This will hold the API player instance once it is initialized. var player:Object; var loader:Loader = new Loader();
I have a 2D game (top down), and I would like to make the character escape from a shot, but not just walk away from the shot (I mean, don't be pushed by the shot), I want it to have a good dodging skills.The variables are:
shotX - shot x position shotY - shot y position shotSpeedX - shot x speed[code].....
I have a 20 frame movieclip (named mc), and by default the playhead is stopped at frame 0 of that movieclip. At frame 10 I have a movieclip instance there named "apple". Now I want to tell mc to go to frame 10, and immediately access "apple" movieclip. This is what I do (from the main timeline):
mc.gotoAndStop(10); trace(mc.apple);
It prints out null (appled is undefined). However, when I put a timer (say of 5 milliseconds) before calling the trace statement, then it works and can access apple. I don't want to rely on timers, since the timer duration depends on different circumstances. At the same time, I do not want to put code anywhere except the first frame of the main timeline.
I have several SWFs built and ready for playback in a container SWF with volume controls, and next/previous/pause/play/stop controls (a-la a DVD player or VCR). This particular project is a product demo, with different scenes that you can navigate through using the on-screen "remote" or just let it play through. I need to know how to preload all of the external SWFs in one shot. I don't want to load them as the demo plays, or when they're needed. It's fairly critical that they all be loaded during one preloader sequence so that they can play seamlessly between eachother.
I'm pretty new to actionscript and so but I manage to read and understand and alter other people's code a little. I'm testing functions to make myself a First Player Shooter game and now I have problem with the fire delay. I want a limit of let's say 1 shot per second. How do I do that?
I thought that maybe restricting the clickings counted, so it doesn't register the mouse clicks too close to eachother. Or put some kind of interval at the functions delaying the sound and event function, but that seems too hard. The game so far: [URL] As u see one get multiple sounds when clicking a lot and it's possible to get several points by clicking the ball a lot.
Also, when the ball goes behind the tree it's not supposed to be able to shoot. The Flash File: [URL] It's not the exact same, some junk code trying to make the delay... The file I used for help (if someone finds it useful for making a game of their own [URL] Here u see the target isn't shot behind the pics. Is that because it is a button there and a mc in my file?
How can i take a snape shot of swf movie at runtime. I want to put this feature both in online application and ofline application. Requirement is this that when user click on a capture button a bitmap of flash movie should be saved on his/her computer.
I want to display 600 photos in a flash gallery. The user must be ble to add photos easily. They will preload load in sets of 12 thumbnails, clicking on a thumbnail will result in the larger photo loading. I would like to be able to arrange the photos by date, location and type of shot. I think I can create a photo class in actionscript with,
I need to load textbox.text in to string Obj and find the x y coordinates of some characters by the start and end index of that string. I am already doing this by using textSnapShot class and it is working great, but this class is working only on static textbox it is not working on dynamic textbox. any one knows any way of doing this! here is the snapshot function it returns xy coords:
function GetStringXY(startindex, endindex):Array{ var xy:Array = new Array(); var mc:MovieClip = this;
I'd like to gain read only access to the following parameters of embedded Flash videos located on sites that I do not own through my own custom browser extension/add-on:
Time location of playback head (so I can display the current time in the browser extension via HTML5/JavaScript) Frames (so I can make capture them to an image file, save it and display image in browser extension) Original Dimensions in pixels (so I can display the original video dimensions via JS/HTML5 in browser extension)
Is this possible by using Javascript and HTML5 from a browser extension?
Would I have to use something like the SWFObject Javascript API [URL]
I made a flash mp3 player and it works fine in any other test pages. but when i embed it onto my site it just shows blank. what do i do? my site is [URL] and the flash player i tested here [URL] and it plays. What im i doing wrong? i tryed everything. right now i just got it in a iframe but i dont want that iframe.
Looking at the attached file, why does bottomScrollV give me the wrong value when the text is dynamically embedded and correct when manually embedded?
Here's the code: ActionScript Code: var loader:URLLoader = new URLLoader(); loader.addEventListener(Event.COMPLETE, onLoad); loader.load( new URLRequest("info.xml") );
Is there any way to make a movie clip start at a frame other than 1? I know with graphics it's simple, but with MCs I'm not sure. If possible, I'd like to do it without code, but if that's the only way to do it, I'd like to know that way too.
But the problem is that the car is moving when you controll it so the bullet stays on the same position and I want it to follow the car and start from the same position as the car whereever it goes.
I can't seem to get around my video and audio files starting when I arrive at the page. I'm even using some example code with start and stop buttons. This is in CS4 Flash. I expect it's because the ActionScript is in the wrong place because when I run the movie it flashes through all of the pages on the site without stopping at the home page. Is there some generic code that will allow me to simply swap out the name of the video or audio file I want to start. If there is, do I need to locate it on its own layer at the top of the timeline?
I just started to make flash animations using Adobe Flash CS4, but there's something I just don't understand. To create an animated object, I know I have to create a new movie clip symbol, animate it, and then put it in the main scene. But when I drag the symbol from the library to the main scene, only the first frame of the animation is copied! How can I copy the entire animation of a movie clip symbol to the main scene?
I'm creating a small car game where you shoot from the car, so I've made a bullet animation with this code inside the mocieclip:
shellNo = 0; function shellEject(){ shell_holder.attachMovie("shellAnim", shellNo, shellNo); shellNo++; }
But the problem is that the car is moving when you controll it so the bullet stays on the same position and I want it to follow the car and start from the side of it whereever it goes.