ActionScript 3.0 :: Flash - Output Images With Xml To Button?
Oct 25, 2010I need from the xml images output in my button, how do this?
View 4 RepliesI need from the xml images output in my button, how do this?
View 4 RepliesI need from the xml images output in my button, how do this?
View 0 RepliesI have an AS3 swf which users can upload jpg images to my EC2 instances which sit behind and Elastic Load Balancer. The jpg images are converted into bytearray data and sent using URLLoader.load(URLRequest)I make 2 calls when uploading, one to upload a large version, then another to upload a thumbnail version. A PHP script to which the bytearray data is uploaded converts this to a file using file_put_contents($destination,$GLOBALS["HTTP_RAW_POST_DATA"])Is it possible to combine these two requests into a single request which contains both the bytearray data for the large and thumbnail images and 'split' the HTTP_RAW_POST_DATA to create 2 files at the server. This would be better than uploading the bytearray for the large version then using something like ImageMagick to resize the resulting image into a thumbnail which I realise is another option.
View 1 Repliesvar nextY = 0;
var nextY2 = 18;
for (var count = 0; count < result_lv.typeCount; count++)
{
[code]....
The type count is correct but the information for the project is wrong.
when pressing on a button that error comes up in the OUTPUT tabthe file is in the linkError #1006.rarThis is the navigation_actions code where are the codes of the navigation bar (the buttons)
var buttonArray:Array = new Array( );
var currentButton:Object = new Object;
var navContainer:Sprite=new Sprite ;
[code].....
I have a simple drag and drop project. I have 2 drag able objects and 4 drop targets for those objects. I also have output text that gives a message depending on what target the objects are drug to (1 and 1, 1 and 2, 1 and 3, 1 and 4, 2 and 1, 2 and 2, 2 and 3, 2 and 4 and so on). I would like to add a button to this project. I want the button to change the output text. So if you had an object on 1 and 2 then hit the button it would read "1b and 2b" and so on, or anything else I want it to say. If you hit the button again it would go back to the original text "1 and 2".
View 1 RepliesI have tried to work my way through it.I can't understand why my button actions are causing an output error,the first two on this keyframe work just fine, but when I add the third it causes this error...
TypeError: Error #1009: Cannot access a property or method of a null object reference.at clear_fla::MainTimeline/frame86()
Here is the script
stop ();
function clickFunction(evt:MouseEvent):void {
gotoAndPlay(87, "Scene 1" );[code]........
Like I said, sg_btn and ak_btn work, but az causes the error...They are all on the same keyframe, dont know if that matters
I'm quite new to AS3 (coming from php/c#) and like it very much. My problem: trace doesn't output anything in the Output window anymore?!
View 2 RepliesI'm quite new to AS3 (coming from php/c#) and like it very much.My problem: trace doesn't output anything in the Output window anymore?!
View 3 Repliesi have a drag and drop exercise that will output a value based on the drop positions of 2 points. What I would like is to be able to add a button that basically has a whole new set of outputs based on the same drop positions. Here is an example. If I place an object on drop target 1 and 3. The output says something like "good job". Now if I click a button and place and object on 1 and 3 the output would say "try again".
View 4 RepliesI need a radiobutton to output two numbers in to two different text boxes.Like, if I would to select a sofa(radiobutton_1),it would give me the cost and yardage needed for the fabric. then I would pic an ottoman(radiobutton_2), and it would add the two.right now Im using the data(in parameters) from the button itself to get one number(cost):[code]
View 3 RepliesI have a button on the main timeline that works fine, part of the code in the button:
for (b=1; b< dpth; b++) {
var lineMovedx = _root["Line"+b]._x;
_root["Line"+b]._x = lineMovedx-9000
trace(_root["Line"+b]);
It basically moves stuff a person draws off the screen when the button is pushed, there is another button that brings it back. But when I put that same button in a movieclip on the main timeline and change the code to this:
for (b=1; b< dpth; b++) {
var lineMovedx = _root._root["Line"+b]._x;
_root._root["Line"+b]._x = lineMovedx-9000
trace(_root._root["Line"+b]);
It no longer works and the trace shows no output, it basically loses it completely, I can't figure out why it does not work, it seems so simple.
I want to display a test in input box to output box on lick of go button script i wrote for this on go button is as follow:
on(release) {
output.text = input_phone.text;
}
i have two text field, textfield1 and textfield2, and a button..
textfield 1 = inputtext
textfield2 = the output.
when i click the button it will save the text in textfield1 into the textfield2.
How to show different images for a single button?It should show different images when the mouse pointer is over the button and out of the button.
View 3 RepliesHow can I call an action(method) when I hover my hand over a button displayed on the camera output screen?
View 1 RepliesI had been made a dress-up game...I arranged the set of dress images into to be the different frames of movieclips with the next button.When i drag the dress images from frame1 movieclip and put on to the stage(avatar),the images from frame1 movieclip will be dissapeared when i clicked on the next button going to the frame2.How do i need to do to make the dress images from frame1 remain on stage even when i clicked the next button to frame2 ?Which coding should i use to make the image stay on stage?....
View 1 RepliesI'm teaching myself ActionScript and the book I'm reading just got into input text capabilities. The book shows me how to link input text to a variable and output that text to the output window using trace. My question is: how can I display the text that the user input onto the actual movie. For example... if I wanted the visitor to type their name into the input text box and click Submit and then a phrase shows up with their name such as "Hold on Name, my site will be done soon." How do I reference that variable and have it actually display in my movie?
View 5 RepliesI'm running FMS 4 Dev on my win XP SP3 machine, also running flash cs5 professional on same machine. I get the server admin screen to come up and it says it's running. I'm using a tut book on FMS and trying to run the first script in the book. It's long but I'll add the script at the bottom so you can see what i'm doing. In the server app folder I placed another folder called vid2 with nothing in it just like the book told me to do. I wrote the script line for line out of the book. When I test my movie it lays out my video window and buttons. It diplays my ugly mug on the screen. when I press the record button it does nothing. when i press the stop button the output window shows me an error of "#1009 can't access properties or methods of a null object". I assume that this is telling me I do not have a net connection.
when I types in the example it had an IP address in the code.How do I know the correct IP addy to my dev server? If I'm doing development and testing on the same machine do I even need to know this? 2) How will what I'm doing now differ from leasing space from an FMS provider?
the script:
package{ import fl.controls.Button; import fl.controls.TextInput; import flash.display.Sprite; import flash.net.NetConnection; import flash.net.NetStream; import flash.events.NetStatusEvent; import flash.events.MouseEvent; [code].....
I was wondering if there is any way to get an number output always in a two digit number, for example time:What my code does right now:
0:1
0:2
0:3
0:4
[code]....
Does anyone know if it is possible to randomize assets in Flash. Basically I am creating a flash based application which when the user hits a target button the preceeding screen should show a completely random asset (which would be an SWF), at the moment each button is simply tagged to a particular swf, although i need it to be more random than this?
View 1 RepliesI am trying to trace a fairly large 2d array (many thousands of elements) to copy in some other code. The code obviously takes a while to run but this doesn't matter to me since it's a one time thing. I used to be able to do this no problem in Flash CS5, but now Flash is truncating the text somewhere in the middle so I don't see all of it. Is there a way to disable this?
View 0 Repliescan I use PHP to create an XML file called AGConfig.xml on a server? AGConfig.xml is a file that is used by 2 different applications there is a config swf and a main app swf...initially you run the config swf which takes in MySQL Login information...and a event name.when you load the config swf all the fields are blank (whether or not the AGConfig.xml exists)...what I want to do is write an XML file on the server.I am wondering if its possible to do this using PHP? What I have found is that you can definitely save it to your local drive.but is it possible to output an XML file on a server? For example.my php file and flash app files are at www.somesite.com/test/ and if i run.[code]
View 3 Repliesi try to create my logo from flash
i use export function in gif format.
the output color is not same as what i saw at flash.
may i know why? below is the screenshot.
flash
output
If there's a way to disable the Output panel in Flash? I've tried turning off most of the Warnings section in the prefs, but apparently that doesn't affect the Output panel.
View 3 RepliesI want to allow a user to create a comic page layout in Flash which would allow them to upload JPEGs into the comic page layout then the Flash interface would allow them to move them around and add speach bubbles.
I would then like these to be uploaded to my web server and the whole thing converted to a JPEG. What would be involved to achieve this?
Is there an easy way to output flash data into a word document or into a text file without using API scripts,PHP and all that kind of stuff? Because it's fairly over my head. And If there is a way possible - will it interfere with security settings on someones computer?
View 1 RepliesIs there any way to record what flash player displays? I thought of sampling the framebuffer contents like 30 times per second but i am not sure if that is even possible under Windows.note: i know that there are plenty of software that converts swf to avi, but i wanna do it programmatically because my aim is not to save them to my disk as avi or sth.
View 1 RepliesI'm setting up an email form in an AS2 movie.
Everything works, and emails are sent properly. However, at the end of my PHP is a check to see if everything sent properly. It sends output=sent if all is peachy, otherwise output=error. Flash can't see either one, and lists as undefined.
The PHP:
[Code].....
I am set up with d they have given me their html code for submitting to their php file. here is threir html code:html code not php
PHP Code:
<form method=post action=http://www.yourmailinglistprovider.com/subscribe.php?larhymes>
<table border=0>
[code]....