actionscript-3,flash,socketsRelated issues-Collection of common programming errors
simion314
facebook actionscript-3 facebook-graph-api
I can post fine a message but when i try to schedule the post I get that error, googling I found a similar issue on SO but with no answer. The documentation is not clear if I need other permision for scheduling or other access tocken, can someone please share a working example, and explain the list of permisions requiered and the type of access token? ThanksEDIT: I was posting to my profile page and that can’t be done, thx Igy for your comment. I created a page and again tried to post, without s
theDoctor
php actionscript-3 swf flash-cs4 swf-decompiler
Hey, I have been given an SWF to edit a link in the AS code. The fact is the SWF uses some XML that is generated (actually retrieved) by PHP code from a database.menuXML.load(“/sub/page/dynamic.php?genre=” + genre); so the point is we can use the same SWF ‘mainfraim’ and fill them with different animations/sources based on the link provided in dynamic.php?genre=###Now, I’ve used Flash Decompiler Gold to extract all files in the SWF and can open it again in Adobe Flash to edit it. When done I ent
Baelnorn
flash actionscript-3 unicode
Based on this report, I’m wondering if Flash/AS3 also processes the right-to-left override and right-to-left embed characters?For example, would a chat program implemented in AS be vulnerable to someone using RTLO/RTLE to circumvent profanity filters (e.g. writing “\u202E!nmad” to write “damn!”) or impersonate another user (e.g. putting “\u202EmoT” as their username to show up as “Tom”)?If this is true, what countermeasures can be taken to avoid these issues?
gunit888
flash actionscript-3 unit-testing
I’m trying to improve my code by writing unit tests for my ActionScript 3 code for Flash projects I work on, but I’m having a mental hurdle understanding how to deal with it in the context of a Flash program. I can’t seem to wrap my head around how to deal with things like addChild and the stage, as well as all the asynchronous processing typical of Flash applications (addEventListeners for waiting for things to load, etc.). Is it really any different than any other language? How does a devel
cosniq
linux actionscript-3 flash flex flash-builder
I’ve tried to make Flash Builder work on my Ubuntu 12.04 system but ran into some troubles. After installation of FB4Linux with Eclipse Indigo I ended up with a working Flash IDE. Unfortunately running an AIR Application doesn’t seem to work.I use the Flex SDK 4.5.1 (http://sourceforge.net/adobe/flexsdk/wiki/Downloads/) because I thought it might not work with 4.6 (even though I also tried this).When I run my application, the error message “The directory /home/niq/.flex_sdk_4.5/runtime/air/linux
user2817200
actionscript-3 flash actionscript actionscript-2
In flash, I created a button and gave the button this code (in AS1-AS2)on (release) {gotoAndPlay(5);tellTarget(“/Anim”) //’Anim’ is just short form for ‘an animation'{gotoAndPlay(5);} // End of TellTarget }Since you can’t give specific buttons actions in AS3, I gave the button an instance name (the buttons instance name is now ‘runButton’) and then decided to do this in the actions layer.runButton.addEventListener(MouseEvent.CLICK, startAnimation);function startAnimation(event:MouseEvent){gotoAn
Nicola Baribeau
actionscript-3 2d tile
I am making a 2D tile based game and I expect to have a really big world. As I want movement between areas to be seamless I will obviously need to load the world in chunks. So the question is : Is it better if my chunk’s size is based on my game’s resolution Is it better if my chunk’s size is a perfect squareLet’s have an example with simple numbers ; If my game’s resolution is 1024×768 and my tiles are 32×32, I can fit 32×24 tiles in one screen.Let’s say I’d like my chunks a bit bigger than th
ivvedran
actionscript-3 movieclip
Here i am trying to create a new movieclip type object, which is moved when function mvBall is called. When i run the code i get this err: implicit coercion of a value with static type object to a possibly unrelated type flash.display:MovieClip. Later on i want to be able to make the ball bounce back when it colides with another object. I’m new to action script and don’t really know how things work so any help would be appreciated. Here’s the code: private function frame(x:Event):void {var ball:
Discipol
actionscript-3 actionscript tweenlite
I have been trying to implement this http://snipplr.com/view.php?codeview&id=42802 using two 200/100 sprites but the results are totally unexpected.The card flies from the start, towards the right, then comes back to the start and halfway it flips. While the effect itself looks nice, the problem is with rotatingY property and z property.I tried making a simple sprite rotating with some perspective and the anchor point seems to NOT be the 0,0 origin. From what I read it has something to do wi
Frank
actionscript-3 flex
I’m testing a system with a lot of clients using a Flex application. I see some unexpected behavior which looks like eventListeners or bindSetters “stop listening”.I can’t seem to find on-line documentation about the reliability of those systems. Does any of you have some experience with this matter?Let me give you one example I could solve:requirement: clients need to send a command every ten seconds to the serverimplementation 1: timer and eventListenerkeepAliveTimer = new Timer(10000, 0);
Jan Dvorak
php json flash flex rtmp
{name: ‘com.riotgames.platform.summoner.PublicSummoner’,keys: [ ‘internalName’, ‘dataVersion’, ‘acctId’, ‘name’, ‘profileIconId’, ‘revisionDate’, ‘revisionId’, ‘summonerLevel’, ‘summonerId’, ‘futureData’ ],object: {internalName: ‘mrquackers’,dataVersion: 0,acctId: { value: 34117327 },name: ‘MrQuackers’,profileIconId: 502,revisionDate: Tue, 30 Oct 2012 19:38:32 GMT,revisionId: { value: 0 },summonerLevel: { value: 30 },summonerId: { value: 20933307 },futureData: null},encoding: 0 }(newlines and in
Benjamin
javascript flash internet-explorer-8
I’m creating a quiz and as a timer in the quiz I have a flash movie (an animated clock). I poll the clock every second to see if the time for the quiz has run out.The code for this functionality looks like this: (simplified)$(window).load(function() {var flashMovie = getFlashMovieObject(flashId);var timeElapsed = flashMovie.GetVariable(“timeElapsed”);var timeSet = flashMovie.GetVariable(“countdown”);var degrees = flashMovie.GetVariable(“degrees”);var timerStatus = flashMovie.GetVariable(“timerSt
Patrick
html flash
how can I display my flash video, behind the tags on top of the page ?Website: http://www.sanstitre.ch/drupal/portfolio?tid[0]=58thanksI’m using SWFObject wrapper (cross-browser) http://code.google.com/p/swfobject/<div style=”background-color: rgb(255, 255, 255); width: 100%;”> <object height=”445″ width=”660″ type=”application/x-shockwave-flash” data=”/drupal/videoPlayer/bin-debug/videoPlayer.swf?file=http://www.sanstitre.ch/drupal/sites/default/files/files/projects/WM 1976/videos/P103
Baelnorn
flash actionscript-3 unicode
Based on this report, I’m wondering if Flash/AS3 also processes the right-to-left override and right-to-left embed characters?For example, would a chat program implemented in AS be vulnerable to someone using RTLO/RTLE to circumvent profanity filters (e.g. writing “\u202E!nmad” to write “damn!”) or impersonate another user (e.g. putting “\u202EmoT” as their username to show up as “Tom”)?If this is true, what countermeasures can be taken to avoid these issues?
Tony Jose
android html5 flash swf createjs
We have 100s of flash files in our site. Multiple swf files uses AS3 and xml files for flash movies . We have converted .fla files to HTML5 using createJS. We are getting following errors for some of flash files during export to HTML5 and not converting. an unexpected error occurred during export. (JSK) Converted html5 files are not working same as flash. Our approach was to covert the flash file in to HTML5 using tools Editing the coverted code and use the help of java script library, try to
gunit888
flash actionscript-3 unit-testing
I’m trying to improve my code by writing unit tests for my ActionScript 3 code for Flash projects I work on, but I’m having a mental hurdle understanding how to deal with it in the context of a Flash program. I can’t seem to wrap my head around how to deal with things like addChild and the stage, as well as all the asynchronous processing typical of Flash applications (addEventListeners for waiting for things to load, etc.). Is it really any different than any other language? How does a devel
cosniq
linux actionscript-3 flash flex flash-builder
I’ve tried to make Flash Builder work on my Ubuntu 12.04 system but ran into some troubles. After installation of FB4Linux with Eclipse Indigo I ended up with a working Flash IDE. Unfortunately running an AIR Application doesn’t seem to work.I use the Flex SDK 4.5.1 (http://sourceforge.net/adobe/flexsdk/wiki/Downloads/) because I thought it might not work with 4.6 (even though I also tried this).When I run my application, the error message “The directory /home/niq/.flex_sdk_4.5/runtime/air/linux
user2817200
actionscript-3 flash actionscript actionscript-2
In flash, I created a button and gave the button this code (in AS1-AS2)on (release) {gotoAndPlay(5);tellTarget(“/Anim”) //’Anim’ is just short form for ‘an animation'{gotoAndPlay(5);} // End of TellTarget }Since you can’t give specific buttons actions in AS3, I gave the button an instance name (the buttons instance name is now ‘runButton’) and then decided to do this in the actions layer.runButton.addEventListener(MouseEvent.CLICK, startAnimation);function startAnimation(event:MouseEvent){gotoAn
danwoods
flash actionscript command-line actionscript-2
I’m adding a small .swf object (XSPF Web Music Player) to a site I’m working on. I need to add two lines of code to make external javascript calls, so, I guess I need to re-compile to actionscript (please forgive me, I’m extremely new to flash). I’m using MTASC to compile at the command line. I’m getting errors at the start of the file, pretty much at the first thing not-commented. The .as file is posted here http://pastebin.com/f3c4a4a03 and it produces an error(characters 0-4 : parse error Une
squarebear
actionscript-3 flash
I have an array of sprites:for (i = 0; i < 3; i++) {var newLine:Sprite = new Sprite();newLine.graphics.beginFill(0xFFFFFF); newLine.graphics.drawRect((uiSizeX * (.25 + .25 * i)) + (doorSizeX – lineLengths[0][i]) / 2, uiSizeY * .5, lineLengths[0][i], lineHeight); newLine.name = “lines” + i;lines.push(newLine); }I later add each to a background Sprite:for (i = 0; i < 3; i++) {uiContainer.addChild(doors[i]);uiContainer.addChild(lines[i]); }And later wish to change the width of the rectangles
Yuck
c# sockets networking
This is related to c# Sockets. I’m developping a socket program. But there is one problem in my software. I cannot connect to computers which are connected to internet via theirs local network. But I can connect to computers that are uses internet alone. Be more descriptive, Consider that 5 computers connects internet via a modem that uses 1 ip address. When I try to reach one of these computers, API connects to modem via its ip address. But there is no response. Because a modem don’t respond
Canha
c# sockets multicastsocket
I’m trying to set a Multicast connection using this codeprivate async void ConnectSocket2_Click(object sender, RoutedEventArgs e){DatagramSocket datagramSocket = null;if (datagramSocket == null){datagramSocket = new DatagramSocket();datagramSocket.MessageReceived += datagramSocket_MessageReceived;await datagramSocket.BindServiceNameAsync(“51000”);HostName multicast = new HostName(“224.0.22.11”);datagramSocket.JoinMulticastGroup(multicast);CoreApplication.Properties.Add(“clientSocket”, datagramSo
Auliszek
android sockets bluetooth bluecove
Creating a Bluetooth app, I have encountered an unexpected problem, that I cannot understand. PC acts as a server (java+bluecove), and Android phone is used as a client. Client connects to the server (which is confirmed by a message on the server side), server sends then a text sample, and that works fine. Next thing to do, is to send message to the server, and that part doesn’t seem to work so far. I designed a button, thats task is to send short text message via Bluetooth. Server doesn’t get
Chad Schouggins
.net sockets networking tcp tcpclient
Background I am communicating with a server (that I can’t touch, of course) over a TCP connection. The application I am connecting to requires two connections. One as an “I want to connect”, handshake type thing and a second, on a different port, for the actual connection. After days of banging my head against this thing, I found out that for the second connection to be accepted, the first disconnect (FIN) must be initiated by the server (which it does immediately). If the
tsing
linux sockets unix tcp network-programming
I know that when a process crashed, existing TCP socket would be abandoned by sending RST packet(segment) to other peer, and relevant socket fd on other peer would receive the RST packet.Is there other cases that RST packet sent out? Such as if a process call close() on a socket fd but with unread data left on that socket, would it also send RST packet(segment) over that socket fd to other peer?
user2424511
java sockets concurrency
I’ve got a pair of threads running a Socket and ServerSocket:runThreadA() {// Connects to B, or fails if B is not yet acceptingsocket.connect(); }runThreadB() {// Blocks until another thread connectsserverSocket.accept(); }Is there a way I can guarantee that B calls accept() and blocks before A calls connect()?
Brian White
linux sockets tcp
I thought that closing a TCP connection (invoking close() on file descriptor) puts it in a state where it stops sending data, but can still receive data until the peer also close its sockets. However, when testing this, I get “Bad File Descriptor” on the recv() call. I would have expected recv() to return with code=0. Note that the select() call succeeded.if (0 != close(sockfd)) {err_sys(“close failed”); }printf(“select waiting for response\n”); FD_ZERO(&rset); FD_SET(sockfd, &rset); wse
Bart Platak
java sockets stream
I’m developing Server-Client application and I have a problem with waiting for input data on input stream.I have thread dedicated to reading input data. Currently it uses while loop to hold until data is available. (N.B. protocol is as follow: send size of packet, say N, as int then send N bytes).public void run(){//some initializationInputStream inStream = sock.getInputStream();byte[] packetData;//some more stuffwhile(!interrupted){while(inStream.available()==0);packetData = new byte[inStream.r
Eric Pruitt
python sockets readline
I’m working on a server, and all of the data is line based. I want to be able to raise an exception when a line exceeds a given length without reading any more data than I have to. For example, client X sends a line that’s 16KB long even though the line-length limit is 1024 bytes. After reading more than 1024 bytes, I want to stop reading additional data, close the socket and raise an exception. I’ve looked through the docs and some of the source code, and I don’t see a way to do this without re
svick
c# sockets tcp byte
I have a client and server program. The client sends a file to the server by first converting the file to bytes and then send it to the server. The server will then reconstruct the file using the bytes it receives. I am having a problem with the server program. Sometimes, the bytes it receives are incomplete.Now, I have already searched through the internet and found out that it is a common problem among beginner programmers like myself. I have tried various solutions that I found but nothing wo
Web site is in building