ActionScript 3.0 :: Writing An Irc Client?
Nov 24, 2010
i'm running into major problems with writing an irc client, it works perfectly when i execute it through flash, but when i upload it to a site, it won't connect, i understand that i need an crossdomain file, i've been doing alot of research, and can't make head's or tails
debugging shows that even though i do: Security.loadPolicyFile("http://example.com/crossdomain.xml");, it still attempts to read an crossdomain file from the target irc server, however, i don't have control over the target machine(nor should that be necessary), how do i get around this, or what am i doing wrong?
what i really need, is a simple example of connecting to an server that i don't control to load some resources(i.e grabbing an image), where all the crossdomains file's sit, and how it's generally done, googling around, it seems this information isn't as easy to come by as i thought
edit: also, i'm using raw sockets to connect to the irc server, if that makes a diffrence edit: alright, been reading alot more information, it looks like i do need to have a policy file to connect to said server, which is beyond retarded, please, someone tell me there's a way around this, but that doesn't explain why it works through flash?
View 2 Replies
Similar Posts:
Oct 27, 2010
how can I find on fms server that client disconnected if if client disconnected due to power cut off. I client manually close the application then onDisconnect on server is called but if due to power cut off it does not called.
View 1 Replies
Nov 19, 2008
Can we perform client to client file transfer, client to server can be done by FileReference. but how do we do client to client transfer, for example if a user wants to send file to another user to whom he is chatting online.
View 3 Replies
Mar 17, 2010
I am trying to build a client-to-client streaming program - client 1 has a webcam and client 2 will connect to client 1 and be able to view the webcam. Is this possible using 2 swf clients? Can someone point me in the right direction as to what commands would be used to connect the two clients. I have tried: binary sockets Connect() where each clients points to the other and they both time-out NetConnection to try to point each client to one another to establish a connection, but no luck with that either; this seems more oriented towards streaming content to a flash media server rather than to another flash client.
View 1 Replies
Mar 8, 2012
We're writing a flash application that can download a MP3 file, convert it to a Sound object, get the raw data and make some processing (like adding sounds, change octaves). After the processing, we want to send the data back to the server in chunks, so the server will be able to glue the data together and recover the new generated file. The problem is: if we send to the server "wav" pieces of sound, we are able to glue them together without any problem in the generated file. However, if we convert each wav piece to a mp3 file (so we can send a smaller file to the server) and join the mp3 files at the server, the result is a sound with some problems at the merge point.
This is how we load the mp3 file from the server:
sourceSnd.load(new URLRequest("sample url to mp3"));
sourceSnd.addEventListener(Event.COMPLETE, carregou);
This is how we convert each piece of mp3 to bytearray and wav:
[Code]....
View 1 Replies
Apr 3, 2006
I have an menu for user to populate it. Then when the user finish, I would like to store his Order into an XML database. I do not know how to write to XML file in Flash.
View 9 Replies
Nov 27, 2009
I'm making a simple flash game as sort of a test, and I'd like to have save files by making flash write information to an xml file. Is there anyway to generate and edit an xml file using actionscript?
View 5 Replies
Mar 19, 2010
I have been struggling with this all week now. I am using as3 and within my movie I have a dynamic text box that contains a score.I need this score to be written to a text file preferbly in an array that only stores the highest 5 scores.I then need values from the array to be read and displayed on another movie which will act as a high score table. e.g. I will have a dynamic text box in my high score move that will display the 1st value in the array, and then the 2nd etc.
writing/reading data to text files.Alternatively if anyone else can suggest another method for a high score table please let me know. I only need a basic high score table that runs on a users local machine as the app i am making is desined to run on individual users machines.
View 1 Replies
Mar 27, 2010
i load in xml file so i can read the data. i've figured out how to add, delete and modify data. but the problem is, is that even when i do that it only does it within flash it doesn't make the changes to the actual file.so i want someone to help me do this. so please help i've been at this for week and its time i ask you nice and incredibly smart people.
here is my file, its clean and organized as its something i whipped up for the sake of figuring this out.i found this, people say it allows you to save the xml data, which would work, if i have to delete a file i can do that, i know how to do that. the script i found to do this is below incase it helps you guys to help me.
Code:
package com.hodgedev.xmlcreator
{
import flash.display.Sprite;
import flash.events.Event;
[code]....
View 5 Replies
Jul 14, 2009
is it possible to post to php in an .exe file instead of a .swf displayed inside a browser? If so, how? I figured if you just created the .exe on the server with the .php file in the same folder it would read it and work fine.
View 2 Replies
Jun 11, 2010
I have successfully written my XML from flash to the server using php. But now I need to have it write to a Windows server using either asp or asp.net. Below is my code for PHP.Have searched allot of places and found how to write text files and lines inside text files.But I use a URL variable to write my XML file name out with xml data I created in Flash as3.For simplicty I am using localhost... but really is set to my web domain.On the address line I pass: Example
PHP CODE
<?phpif (isset($GLOBALS["HTTP_RAW_POST_DATA"])){ $data = $GLOBALS["HTTP_RAW_POST_DATA"]; $myFileName = $_GET['ClientFile']; chmod($myFileName, 0777); $fp = fopen($myFileName,
[code].....
View 3 Replies
Dec 1, 2010
I have successfully read an XML file into my script and used the data.Very handy.Now, I want to be able to create an XML file and save it.I have seen in the documentation how to add a child and so on - so I think I can manage that bit.I assume that I can save a file (locally) - but how? I have not been able to find a 'save'.
View 5 Replies
Sep 6, 2011
I have looked far and wide but I can't find any resources on how to write to CSV files from flash AS3. I know that flash cannot write to it alone. I have used PHP before to write to a txt file but now I need to open a csv and insert/edit entries that are already in it.
View 1 Replies
Jul 28, 2009
I'm sure there's already an answer, but I haven't found it yet. (It may be because I'm not exactly sure how to phrase the question.) Here's the skeleton of what I've done.
Let's say that I'm making a simple guestbook. All I want is to collect the visitor's name and email address. I started out by creating a simple XML file that looks something like this[code]...
View 2 Replies
Nov 22, 2007
So I'm working on this project for my school's library. I need to make an interactive calendar with which teachers can sign up for the computers in the Lab and Library. I'm using mostly ActionScript 2.0, and this is what I have so far.
Basically I need a calendar for each month of the year, in which you can click on each day, and edit it. It will have to have a drop-down box in so that you can select which class you need to schedule them for (1-7) and two check-boxes to choose either Lab, Library, or both. It will be used on many computers throughout the school, and so it will need to be able to write to XML (via PHP I presume?) and reload the XML file directly after the changes are made. It will all be password protected. I've figured that much out already, lol.
I've run into a hundred thousand problems. Everything I know has been self-taught or learned from the amazing Kirupa tutorials (I'm sure most of you are the same way!). So far I've tried combining several tutorials, the most promising of which was the XML Guestbook Tutorial. I wasn't able to get that to work, but then again, I am adapting it to work with something completely different. Also, I tried using a tutorial to render a calendar instead of hand-drawing each month (I don't even want to think of how long that would take!). I wasn't even able to successfully complete the calendar tutorial!
View 3 Replies
Apr 1, 2009
What is a better way of writing this.
function fade() {
_root.mcBlue1._alpha = 50;
_root.mcBlue12._alpha = 50;
[code].....
View 1 Replies
May 6, 2009
I've been searching all morning for some samples on how to read and write xml files.Here's what I have so far.My XML File called Call2Action.xml
<?xml version="1.0" encoding="utf-8"?>
<Call2Action version="1.0" creationDate="2009-05-06">
<ProceraFixedImplantBridge>
<Yes>5</Yes>
[code]....
'String(xmlData[idx].Yes' is where I'm having a problem, can't figure out the syntax for declaring the element I want to read, plus I want to read the elements inside let's say <ProceraFixedImplantBridge>. I need to add that to the code.I want to increment the counter for yes or no, and write the file back.
View 5 Replies
Apr 30, 2002
I've got all these flash books, yet not one of them tells me if it's possible to write to a txt file. They show how to read from a txt file using loadVariables(), but not the reverse.
View 11 Replies
Aug 20, 2009
Well I've been trying for about 2-3 days with no success. I am using the POST method and its not working. I have gotten it to work before.... but I do not have the old files anymore. There is a text box on the stage with the instance name: textTxt the fla fla Code:
Code:
var variables:URLVariables;
var fLoader:URLLoader;
var fData:URLRequest;
[Code]....
View 5 Replies
Mar 8, 2010
How can I write variables into new XML? I need to take variables and write them into new XML but that I am getting is the name of the variable I am using, not the value.
Code:
var _label:String = _set.attribute( "containing" ).toString();
_subMenuItems.appendChild( XML(<item><label>_label</label></item> ) );
[Code].....
View 2 Replies
Feb 6, 2012
I am a AS newbie, so just learning AS3 (I have heard that this is a good place to start!). I am trying to read and write to an XML file.I have learned how to read an xml file but for the life of me, I can not write to the file.I have found many many tutorials that I can't seem to get to work.This is my goal... I have a small flash game that after the user wins, their user name, date, time and score get entered into the xml file. So, I just want to append the new info into the existing xml file (all the files will reside in the same directory on my server). I have all the variables ready to send.. just need the way to do it!
I have a separate AS3 flash file that shows a listing of the xml file to display the scores to the users, I have a working version of this... but I may have to change this to match how the info is being stored into the xml.
[Code]...
View 5 Replies
Dec 11, 2009
I am kind of new to Flash, I was pretty good in SwishMax, but I think it was time for me to move on. I wrote a small application, but I'm not really happy with all the functions mess that I did. Don't get me wrong, it works great, but I was wondering if you could take a look and perhaps simplify it? I'm willing to learn the tips and tricks from what makes an application from good to great.
View 4 Replies
Sep 10, 2011
What is your approach to writing documentation explaining the options and use of XML files for a project ?Do you write commented instructions directly in the XML file ?Do you create a different text file in which you write instructions ?Do you explain the use of blocks of XML or do you detail each element and it's function ?I am looking for some guidelines on how to write the documentation for large XML files that control the settings and content of projects.
View 1 Replies
Feb 2, 2009
I am writing a loop and want to position 25 boxes in a square. I can make 5 boxes appear in a line, but can't make 25 boxes appear in a square without writing 5 seperate loops (e.g. j, k, l, m, etc.). This seems long-handed, can I shorten the code? Here is the code I have used so far:
var box:Box;
for(var i:int = 0; i < 5; i++)
{
[Code].....
View 2 Replies
Apr 15, 2009
Does anybody know a tutorial or something about writing to a txt file in Flash AS3?
View 4 Replies
Jun 9, 2009
I have a client who has a video that is to only play once when a user visits. So I created a shared object to create a param that the video has been played. It works perfect locally and on my live test site. However when the client posts it on his ning website in the header it doesn't work. The strange thing is that live and locally on my server you can see the shared object and it's size through the advanced tab in Flash's privacy settings.
View 7 Replies
Aug 5, 2009
I am working on a survey project where I want a user's answers to get logged to a text file. I used the code from this post to make a php script in an attempt to do this: [URL]
I modified it as follows:
var urlLDR:URLLoader=new URLLoader();
var urlR:URLRequest = new URLRequest( "filewriter.php" );
var urlVar:URLVariables = new URLVariables();
[Code]....
When I run my movie, it does not invoke the PHP script. why it is not working? Are there alternative methods to logging this data to a text file?
View 3 Replies
Nov 30, 2009
i can write constants in two ways:
MouseEvent.CLICK - "click"
MouseEvent.ROLL_OVER - "rollOver"
TextFieldAutoAlign.LEFT - "left"
etc.Is there any difference between the two ways of writing?
View 1 Replies
Jan 14, 2010
Anyone know of any code I can add to my project to keep a log of how many times a button is pressed? Ideally it would write to the disk with date/time stamp.
View 1 Replies
Sep 2, 2009
I am sorting an XMLListCollection in alphabetical order. I have one issue though. If the value is "ALL" I want it to be first in the list. In most cases this happens already but values that are numbers are being sorted before "ALL". I want "ALL" to always be the first selection in my dataProvider and then the rest alphabetical.So I am trying to write my own sort function. Is there a way I can check if one of the values is all, and if not tell it to do the regular compare on the values?[code]
View 4 Replies