ActionScript 2.0 :: Make A Button That Prints Jpg From Server?
Nov 23, 2003I wondered if its possible to make a button, that prints a .jpg from the server. If it is possible that what script should be added to the button?
View 2 RepliesI wondered if its possible to make a button, that prints a .jpg from the server. If it is possible that what script should be added to the button?
View 2 RepliesI need to create a button that when clicked will print out the contents of a movie clip which will be some text and background graphics. Not sure how to go about this, but it should be in AS3.
View 2 RepliesI'm building a stand alone presentation application (.exe) in Flash CS4, and want to add a print button which prints current frame. Tried to find about that everywhere on internet, but didn't quite found what I need. So when someone clicks the button, I wish to save that image in original size as bitmap or jpeg image. How can I do that?
View 2 RepliesI'm aware this sounds quite involved, but would it be possible to make a Flash button counter that would store the number of clicks (that it displays) on a remote server; so even if the page was closed and re-opened it would still show "2" or "11" for example. In addition to that, would it be possible to only allow one click per IP address? So for example, one specific IP address (user) couldn't keep clicking it over and over and increasing the number.
The reason I wanted to use a Flash object as opposed to something like jQuery was because I want to embed it on a forum that isn't mine. Obviously I don't have access to the site's files/modules etc. Essentially it's almost like the Facebook "like button." It displays the number of likes, as well is storing the value on a remote server.
I am having a problem with my printJob. I have a button setup to call the printJob. When I click it the pages that I want to print, print properly the first time. But then if I click the button again to print the same page, it does not work. The button continues to work and calls the function properly, but after that it does not work. Here is the code that I am using:
public function Print_PTSD(event:MouseEvent):void{
trace("Print button clicked");
//Generate the Sprite to be printed
[Code]....
I'm trying to print different frames of my movie, which are located in different scenes. I've put a frame label named #p on every frame that I want to get printed when the user presses a button. Code for this button is:
[Code]....
This actually works fine, the specific frame gets printed OK but all of my other frames labeled #p are printed too! And part of my dynamic loaded data (information of tables, texts, etc.) cannot be seen anymore after printing! It seems as if all dynamic information gets lost. Is there any way of printing just the frame I'm asking for and not all of them? What about the "duplicate label" warning? Is it OK to ignore it?
I am building a very basic report writer for an AIR application that I am developing. I am using the Flash PrintJob class to output the contents of my report (in which pages are stored as Canvas objects in a ViewStack object).The problem is, only the content that I see in the report preview screen gets printed.Is there a way that I can print what the Canvas object contains not just what is visible? Here is a code snippet that I am using:
protected function doPrintReport(event:Event):void
{
var pj:PrintJob = new PrintJob();
[code]......
I've been making flash based websites recently with a simple PHP and MySQL backed CMS. The only problem I'm getting is when the text is loading from the database into the dynamic textfield in the flash movie, it prints either 'false' or '_level0...' The text does eventually load correctly, any way I can get it to print LOADING instead of these two or something similar?
View 2 RepliesI have a problem about input text fields. I have an application that uses input text field and users can write and print. The problem is sometimes the input text fields backgrounds prints grey instead of white. In my actionscript code I have the properties to config background and stuff and even so the grey boxes always appear.
View 5 RepliesI've got an application which gives the viewer the capability to create a design then further customize it with their own art, i.e. a logo, which can be a .jpg, .gif or .png. I may narrow the file options down, but right now I'm finding when one prints this design (I have a "print" button as well) any transparent .png file that's in this design prints out with a white "box" that is obviously the canvas on which said .png was designed.
View 2 RepliesI'm attempting to make it so that when a person fails to fill in blank textboxes in another app that someone else made and I have nothing to do with but affects the XML node Path, my flash file will look instead at DefaultPath if it can't load whatever is in Path..
Here is the sample XML
Code:
<abatch>
<Title>Title!</Title>
<Path>/content/main/broken/path</Path>
[code]....
Is the code I've been trying to use but it won't do what I want. I keep getting this error:
VideoError: 1000: Unable to make connection to server or to find FLV on server
The XML is being properly loaded. Everything else is working. I just need to know that when something is blank it will look at the DefaultPath. I don't seem to be able to get it to do that.
I've spent a lot of time in the past couple of weeks learning Flash. I developed a Flash (swf) file that plays a Flash video (flv) with cue points. It all works very nicely locally, but when I put it on the server and try to access the html file, the Flash control is white (nothing visible) and a popup error message comes up with this error.I've looked all over the web (including non-English sites), tried playing with all the Publish settings I could think of (version check, local/network access, omit trace, enable debugging) and tried adding error handling code to the swf file itself. I've also tried changing the path for the flv file to be relative, absolute and somewhere in between, but nothing works.Does anybody know what can cause this error?
VideoError: 1000: Unable to make connection to server or to find FLV on server
at fl.video::VideoPlayer/play()
at fl.video::FLVPlayback/http://www.adobe.com/2007/flash/flvplayback
[code]....
i am developing video chat system , one side is model, another sider is customer. Now i want that model sider stream sended to FMS, and then FMS make two streams, that the one stream is regular, the other stream is compressed. the compressed stream is just for administrator, so it should be small.
View 1 RepliesI managed to make a local streaming (connection) to the server,by seting the FME at rtmp://localhost(or my IP)/live.But now i want to make a non local streaming.
View 2 Repliesi have coded my first xml gallery, it loads jpgs and swf files.the swf files have each a video component on stage that controls the related FLV file.Testing the gallery locally I had no problem at all, but when uploaded to the server the jpgs works fine while the swf files (containing the videos) keep trhowing this error:
VideoError: 1000: Unable to make connection to server or to find FLV on server
at fl.video::VideoPlayer/stop()
at fl.video::FLVPlayback/stop()[code]....
the chat client application is created using adobe AIR, the application should be able to do communication sims like Google Talk and AIM does. If it is impossible is there any other solution to do that?
View 2 RepliesFirst off I am new to flash, actionscript, java script, ..., and I need server side to interact with a database. I have developed the below code that through trace statements seems to work, but when I try to access variable(s) they are still in their initial state. The trace statements in "Results.onResult = function(result)" are called and printed out to the Administration console. In main.asc there is an interval that checks the variable(s) and prints trace statement. app.MyDataManager.initCalled is always false. I'm not sure if this is the right terminology, but the call back from the web service seems to be in different memory or scope.What am I missing here. I know the function setInterval(...) you have to pass this. But I have been unable to find an equivalent for WebService. Is it possible to do what I'm trying to do?
//######################################################
// DataManager.asc
//-------------------------------------------------------------------- -------------------
[code]....
I have a sprite that has a scrollbar that uses the scrollrect feature. The sprite has several bitmaps and textfields. When I print the outer sprite (The one with the scrollrect) all of the textfields outside the scrollrect are cut after the first line. In case anyone else is having problems with printing sprites with scrollrects using the bitmap printing option fixes and prints most of the stuff in the sprite. Excluding all textfields outside of the scrollrect. This however can be fixed partially by embedding your fonts.
So now the only problem left is printing multiline textfields that are outside the scrollrect. P.S. Imho the scrollrect should have nothing to do with the printed area of the sprite because the printJob.addPage has a printarea parameter.
this is my code for photogallery.there will be 61 images loaded in this array.how can i make an AUTO button which will make a slideshow,showing all the images in array?
arrayrow = new Array()
arrayrow=[
["00.jpg","0","sajkad","hjsgadhj"],[code].....
Im have an flv playing on my stage. I want to make a mute button for the video that can instantly make the volume 0 or 100 depending on what it is.So i have tried using this code:
ActionScript Code:
m.onPress = function() {
[code]........However, it doesn't seem to work.
I have a map of the US and each state has a rollover that changes the color of the state...what i am trying to figure out is how to click on the state and have text appear to the side of the US map and have that text stay up until the user clicks on another state.
View 16 Replies* I have a flash project called contact
* The document class is ContactClass
I am trying to make a sprite button with graphics and can't make it work. I have successfully added text fields so I know the path is correct. I suspected my code was correct and confirmed it should be, after reading several tutorials showing the process for creating sprite buttons with graphics. Anyway, I imported nearly every class on Earth, but certainly everything which needs to be. Stage is gray and 800x600.The graphics code by itself with appear, but not when linked to the sprite. Also, the sprite won't appear no matter what. Another interesting piece of the puzzle: nothing will trace, not even objects such as textfields which actually appear and function on the stage when I text the code.
public class ContactClass extends Sprite {
public function ContactClass() {
var home_btn:Sprite = new Sprite();[code]....
I have a site that plays either .mp3 or .flv files depending on what is selected from the menu. Menu loads in from xml. I get "unable to make connection with server or unable to find flv on server" when I try to play the video. But the video and audio files are all in the same directory and the mp3 files play fine. I think I'm having a problem with the setMedia command. Here's the code that loads the video and audio files.
[Code]...
What button event should I use to make the program understands to DO SOMETHING only when the button is pressed/dragged. In my sample code below, I want something to happens only if the button is dragged beyond 200 in y axis. I tried onRelease, onRollOver and onDragOver but still not working
[Code]....
I want to design a music button for a game like geochallenge
View 1 RepliesI am trying to make a button in such a way so that after you clicked on it, the button will change colour, indicating that the link has been visited.
View 3 Repliesby the way you need to make a symbol and need to export for ActionScript and class name is "ball". And the button instant name is:bButton. So here's the script I wrote so far.
var boundaryRight:Number = stage.stageWidth;
var boundaryLeft:Number = 0;
var balls:Array;[code]....
As you can see that code made the multiple ball go to left and looping over and over again. So here's what I want to do. I want to make a button and when I click the button it'll change direction like click and it change direction to right. I click it again and it'll go left again. How do I write the code for that?
I created a button using the following code,
Code:
on(release) {
attachMovie ("my_btn", "my_btn", _root.getNextHighestDepth(),{_x:34, _y:158});
}
Now I am trying to make the button gotoAndStop on a scene on release. I tried this code,
Code:
onEnterFrame
my_btn.onRelease = function() {
gotoAndStop ("SettingsPanel")
}
I have a function that executes when a button is pressed:
btnRandomAll.addEventListener(MouseEvent.CLICK, clickHandlerBtnRandomAll);
function clickHandlerBtnRandomAll(e:Event)
{
...but, I need it to also execute once, upon the file loading.
I want to make a button (or graphic) active and visible if another button is clicked. But it must be invisible and unclickable before the other button is clicked. (this is a "find the differences between the 2 pictures game" and I want circles to appear over the differences that the user finds but only after he clicks it)
The button (or graphic) I want to become active has instance name of "sockcircle_btn" The button you click to make it appear is called "sock_btn"
In the first frame of the sockcircle_btn layer, this is my code
sockcircle_btn.addEventListener(MouseEvent.CLICK,sockcircledisable);
function sockcircledisable(evt:MouseEvent):void{
sockcircle_btn.mouseEnabled = false;
}
In the sock_btn frame (frame 3) this is my code
sock_btn.addEventListener(MouseEvent.CLICK,sockcircleenable);
function sockcircleenable(evt:MouseEvent):void{
sockcircle_btn.mouseEnabled = true;
}
The file is setup to loop between frames 2-3. But the sockcircle_btn never enables even when sock_btn is clicked.