IDE :: Making A Graphic Flash Programmatically
Feb 19, 2009
I am trying to make a graphic flash at regular intervals that I can control via AS3. I was trying to do this with tweening but I am getting bogged down because for some reason when I try to get the darn thing to loop it just won't do it. I want to be able to change the rate at which the graphic flashes on and off the screen within the constraints of the frames per second so that I can simulate a light and sound machine. Ideally I'd like to be able program the starting frequency of the flashing light (say 15hz) and the ending frequency (5hz for example) and the program would gradually shift the frequency from one to the other over the course of the graphic. For right now I would love it if I could just programmaticly set the frequency of the flashing graphic within the limitations of the frames per second.
View 14 Replies
Similar Posts:
Jul 1, 2011
I'm trying to make a visual novel in flash, I have created the UI and the characters, but I don't know what could be the best approach as how to load the dialog and how to save them. I've been thinking about external files, but I don't know what could be the best type of files to do so. Also, when I load the game I want it to continue in the same scene and with the same variable values (obviously) is there a way where you can save all of them (like an image of the game).
View 2 Replies
Oct 5, 2009
I have a image of a cartoon (it is vector graphic created in Flash not bitmap!) and I want to change it
into grayscale, how do I do that?
View 2 Replies
Sep 20, 2010
I have created some code that creates a blue circle of random size on the stage, and startmoving it in a random direction, at a random speed.
But I'd like to create this as a static class, so that I can just import into a banner and make multiple instances appear at a time, but my limited knowledge doesn't allow me to
Here is my code:
Code:
var child:Shape = new Shape()
var childSpeedX:Number = Math.random()
var childSpeedY:Number = Math.random()
var childDirectionX:Number = Math.random()
[Code]....
View 4 Replies
Dec 26, 2010
The stand-alone Flash player has an option to print a SWF. However, there is no shell action registered for this, and as far as I can see the only way to do it is to use a keyboard macro (or do something invasive such as inject a DLL in the player). Is there some official API for this?
View 1 Replies
Nov 17, 2009
I am developing PDF to e-book converter which will run on a server.I need to programmatically extract embedded fonts from PDF file to finish the project.Now I am able to extract images and text, but to display content in the Flash Player precisely I need the fonts to be extracted from PDF and compiled to SWF to be loaded by Flex application at run time.
I am wondering if it's possible, as such tool as pdf2swf.exe from SWFTools is able to do this. I have decompiled the swf file produced by the tool and there were fonts embedded.The extracted fonts will be used for displaying the same content from PDF file only, just in Flash player. So i think it will not be any rights violation? Moreover, people who will use the converter have all rights for the PDF files content.
So I see next workflow:
1. Call pdf2swf.exe to produce SWF file with fonts embedded;
2. Call some tool (Which one?) to parse previous SWF to SWFs with separate fonts.
3. Load the SWFs with fonts to Flex application at run time to correctly display content.
View 2 Replies
Dec 28, 2009
Some sites have forms which are Flash.How can I programmatically, fill out these forms ?Is the only solution sending POST via cURL by first monitoring the http headers being sent ?
View 2 Replies
Jul 17, 2010
I want to programmatically detect flash on a web page. From my search, I understand I need to parse the code and look for embed tags that have the attribute "application/x-shockwave-flash". Is that all? Or there are other ways to embed flash into a web page?
View 2 Replies
Oct 5, 2010
How can I verify that flash content includes or excludes certain text?
View 1 Replies
Oct 8, 2010
I'm trying to control the video playback of a live video stream using ActionScript 3 code in Flash Professional.
There's a FLVPlayback component on my stage titled "flvPlayer", and in Frame one of my "Actions" layer, I have the following code:
import fl.video.FLVPlayback;
import flash.display.Sprite;
var vidURL:String = new String("rtmp://www.mycompanyserver.com/test/live/livestream");
[Code].....
I can get it to work by adding the source to the Compenent Parameters window, but I need to be able to access those parameters in code.
View 2 Replies
Jul 21, 2011
This probably goes for all programming languages. I use Adobe Flash AS3 and for some reason that is boyond this post, I cannot use built-in dropshadow filters. I do, however, have bitmap data available, with color and alpha values. So there should be a way to draw my own dropshadow filter.... right? Any good existing algorithms I should go and check out? Not specifically looking for an AS3 implementation, any other example will probably allow me to convert the code.
View 1 Replies
Aug 3, 2011
I want to play/stop Pandora's web radio tuner, which is flash-based, via Javascript. How do I programmatically interact with it's online flash player?
View 2 Replies
Sep 11, 2011
In my application I am accessing a XML file which is in the same location as the fla, yet I have to add my folder location to the Flash Global security settings in order to avoid that infamous Security violation that is thrown. Thats fine in my development environment, however when deployed on a customer's machine they have the same issue. Is there a way programmatically to to trust the xml file and avoid the security violation? NOTE the customer is accessing the swf in 2 ways through a .NET loading mechanism and 2. opening the file location in a web browser (NOT in a we page but opening the swf directly - YES I know this is not recommended - but nevertheless is the customer's preference)
View 2 Replies
Dec 30, 2011
I want to ask if there is a way to link a movieClip with a class programmatically, without going to the properties menu and checking "export to actionScript" (in flash pro). I know that you can just use addChild or use other work-arounds, but is there a specific method that does this thing.For example: movieClip.link(class)
View 1 Replies
Jan 5, 2012
Here's what i'm trying to do: I have a slideshow of pictures with a simple fading transition. I do not have the source file and i'd like to extract all of the single pictures from the slideshow. I've imported the video into flash so that all of the images from the video are keyframes.
So now, I have a movie with about 10,000 keyframes. I have a known interval of keyframes that I do not want (when the picture is on a frame by itself and it's not transitioning with another picture).
Can I:
Delete an interval of keyframes Create a new movieclip/document/scene... with the keyframes that I want
View 2 Replies
Feb 12, 2012
My flash asset file contains seven poses of a cute character. On the other hand, a C++ application (OpenCV), detects my gestures on the webcam. Each gesture is mapped to one of the seven poses. How to generate a sequence of animated poses in Flash format? Which library/plugin can best output such flash sequence? SWFTools has a command called jpeg2swf that does the job - but my asets are (already) in swf format. I guess I need something like swf_frames2swf
REF: [URL]
View 1 Replies
Feb 28, 2009
Is there a way to programmatically set flash to make sure it is the most updated copy of the swf? Let me see if can be clearer as I really don't know how to ask. Say I am building a movie and I just changed it, I open my browser and see the old version. I have to clear my cache to get the updated version. Is there a way of making flash "clear its cache" so to speak? I tried googling "SWF updated ActionScript" or variations of that, but calamity ensued.
View 2 Replies
Dec 29, 2009
I need to write a small Flash app that will need to extract a video frame from a playing video. It will not need to be saved to the HDD of the user. I just need to get the image data and display it in the Flash movie. The frame to extract will be chosen by the user, which is why I'd like to do this purely on the client side (though I know I could do it from the server side).
View 2 Replies
Mar 12, 2010
Do any libraries exist with this functionality?
View 2 Replies
Mar 15, 2010
I have tried to embed a flash movie in a zend view using the htmlFlash helper.
In theory you only have to pass the movie path to the htmlFlash helper in a phtml view[code]...
View 3 Replies
May 31, 2010
I heard about jsfl (Flash IDE API) so I guess it is possible but I can't find any concrete example ?
View 1 Replies
Jul 14, 2010
What's the best way to draw cubic bezier curves programmatically in AS3? The Graphics class only seems to support quadratic curves. I want to be able to do something like:
var startPoint:Point = new Point(0, 0);
var endPoint:Point = new Point(5, 5);
var control1:Point = new Point(5, 0);
var control2:Point = new Point(0, 5);
var myBezier:Sprite = getBezier(startPoint, control1, control2, endPoint);
For a performance target, I'm planning on having ~50 of these on the stage at once.
View 3 Replies
Jul 16, 2010
We're building a kiosk app that will have a fairly wide deployment. The app is in Flash running in a browser and requires the use of the webcam. As it stands, each kiosk will show the usual Flash "do you want to allow the use of your camera/microphone" dialog, which I suppose a local admin could click through, choose "remember," etc.
Given that this is a kiosk app, where we have access to the machines themselves (or at least to people who do), is there a way to pre-seed the whitelist so the dialog does not appear?
View 1 Replies
Jun 20, 2011
I'm looking for a framework enabling me to programmatically add moving/scaling shapes and text areas over a flash video.
I'll have an XML file with text, starting times of animations, ending times of animations, positions, scales, etc. And want to use this file to animate stuff into place.
The idea is that I'll have a video with moving shapes. Multi-language content has to be put into the shapes and scale along with them.
framework that enables me to do such a thing?
View 1 Replies
Nov 17, 2011
I am trying to write a small piece of Actionscript that gives focus to a TextInput. The reason being, I don't want my user to have to click into the text field to see the cursor and start typing, it should just already be there.
View 1 Replies
Jan 3, 2012
I want to accomplish the same thing with code that Flash's Align - Align Bottom Edge button does within the IDE. I have a series of move clips of different heights which are all added to the stage dynamically via XML. When they are all added, I want to then align them - does flash provide a method for doing this with code? Or is the only way to do it to detect their heights and adjust them by the height difference?
View 2 Replies
Mar 27, 2012
I am trying to figure out how to send an email from a Flash Mobile (smartphones: blackberries, iphones, androids) app using mxml and Flash using Flash Builder 4.6. My boss told me to find out if it is possible. So far, I have been doing a lot of searching around on the internet for an answer.
I found this website: [URL], that has some classes for sending email in flash, but #1, I don't know if they work in Mobile apps, and #2, I can't find any instructions or tutorials on how to use the classes to send a simple email.
I downloaded the package from the site and imported into my project, where I am trying to send the code. But without sample code on how to simply send an email, I am not entirely sure what all do, and nor am I sure how to determine things like what port number to construct the SMTPMailer object (the SMTPMailer object is included in that package, and it takes a host string and a port number integer in it's constructor), right now I am trying 80 or 8080 for the port number, and I've tried localhost and one of our server computers, 198.162.1.109 for the host.
Anyway, I keep getting this error: Error #2044: Unhandled IOErrorEvent:. text=Error #2031: Socket Error.
Here is some of my sample code:
[Bindable]
private var mailer : SMTPMailer;
private function init() : void {
[Code]......
View 2 Replies
Apr 10, 2012
I realize this is a total newbie question, but it is driving me crazy. In Flash Professional I have a movie clip, say 1000px high and 50px wide. I have it contained within (under) a mask layer where the mask is 100px high and 50px wide. In my program I move the movie clip vertically and as expected it is masked such that I only see 100px vertically.
My question is: how do I remove the mask from my movie clip? When I debug inspect the movie clip in Flash Builder, its .mask property is null. But it is masked..
View 2 Replies
Nov 10, 2009
Flash has an API to control the volume for a Sound object. Can volume be controlled like this currently or is there support planned for <audio> or <video> html5 elements?
View 2 Replies
Mar 19, 2011
my current situation maybe akin to me painting myself into a corner. i have many vector shapes drawn with the Flash Professional CS5 IDE, which have been converted into sprite objects and exported to actionscript. for example, here are 3 shapes:
i want to programatically fill each shape with a bitmap from my library. i realize i can fill these shapes with library bitmaps in the IDE, but i need to scale the bitmaps at runtime as well as swap them out for others. how is it possible to programatically bitmap-fill shapes drawn within the IDE at runtime without having to also programatically redraw them?
View 1 Replies