Tagged Questions
0
votes
0answers
6 views
Actionscript trouble connection
I'm took it upon me to help a friend on an adobe flash problem thinking that it would be a logical problem but i realized that i got way ahead of myself once i saw the actionscript code, well kinda... ...
0
votes
1answer
29 views
Actionscript 3, access Symbol properties (AS Linkage)
I have created a new Symbol in the Flash IDE, I set it to Export for Actionscript and it has a class name of itemCoin
My stage has now 3 movieclips of that class, how can I:
count how many of ...
0
votes
1answer
60 views
How to select multiple objects on MOUSE_OVER during a MOUSE_DOWN
Lets say I have 30 objects created in for loop, added to a container.
Objects stop on frame 1. I have added event listeners to the objects as you can see below, and when I click any object inside ...
0
votes
1answer
24 views
Actionscript 3.0: How do I override browser keyboard shortcuts?
I have a .swf that requires Ctrl+N and Ctrl+T as keyboard shortcuts, however when in a browser this opens a new window or a new tab (respectively).
My question is, how do I (or even can I) override ...
0
votes
2answers
41 views
Make 2d array from single array
I created a level editor for web game, I can build, save, load and play levels.
Now I want to edit some levels but I have a weird situation.
I export a level as a single array, it looks like this ...
-1
votes
1answer
21 views
Setting a textfield in actionscript to “0” causes it to be blank
I have the following code that loads an XML file, parses it, and then sets various text fields to the contents of the XML file:
function loadData(): void {
var myXML: XML;
var myLoader: URLLoader = ...
0
votes
1answer
31 views
Add single line in Actionscript to a flex defined MX Chart
I'm tying to draw a graph of the Accelerometer data, but it is too slow to use the item renderer with an arrayCollection or arrayList.
So, I started using actionscript to draw all the lines and ...
-1
votes
1answer
42 views
Actionscript Loader Error #1009
I'm trying to make a basic loader that uses Splash.swf to then load myisogame.swf
I keep getting error #1009. It's a template we was given in class, originally the Splash.swf directed to Game.swf, ...
0
votes
1answer
31 views
(ActionScript 3) Children and clearing the screen issue
I've been learning ActionScript 3 recently, and for the past 2 hours I have been stuck on this:
I cannot clear the screen when using the usual
while (numChildren)
{
removeChild(0)
}
I have ...
0
votes
1answer
36 views
Folder in actionscript
I am learning actionscript and building a program that has grown large. I am trying to organize the .as in folders but it seems this break the static classes variables,
And you have to add the package ...
-2
votes
0answers
28 views
play video mail ru using other player? now what are they using.?
my problèm is how can i play video mail.ru using other player
Does anyone know what are they using..??
and Thank you very much
best regards
0
votes
1answer
36 views
Bypass objects in the way - flash and actionscript
I have a virtual world, players walking in the world space.
but, i have one problem:
In the map, i have objects(bushes, trees and more..), And I want that once a player clicks anywhere on the ...
-2
votes
0answers
33 views
Flash Builder - I am trying randomise answer positions (not working)
private function displayQuestion(currentQuestion:String, Answer1:String, Answer2:String, Answer3:String, Answer4:String, currentAnswer:Number):void {
questiontext.text = currentQuestion ...
0
votes
1answer
38 views
How to use special key combinations in flash/actionscript?
Hi I am building a rich web application using Flash / ActionScript 3 which needs to use special key combinations inside (like Ctrl+R, F5 etc). But browser looks like always have a priority in ...
0
votes
2answers
34 views
How to specify number type when initialize array directly
I need to initialize an array using direct initializing (ActionScript 3). Like this:
private var aa: Array;
function init() {
aa = [0x0050, 0x00ff, 0xff22];
}
I guess aa will contain array ...
0
votes
0answers
14 views
Disconnect Bug in Flash Chat (ActionScript 3) based on RTMP
There is a flash chat platform i am using for my site and many other sites are using same platform too because its free and fast its actually based on rtmp and client side is based on flash ...
-2
votes
1answer
49 views
“Access of undefined property…” in for loop declaration? Should not happen… AS3
So this is practically straight from the Adobe website. Flash Builder is telling me I am accessing an undefined property when I am clearly not. What is going on?
I am putting a piece of code in to ...
0
votes
1answer
30 views
Include all class files in Flash
I currently have all these files:
The problem is, none of the actionscript files are being included in ~shell.fla. I [think I] can include all the files separately, but there are a TON.
It would ...
0
votes
0answers
16 views
Scripting a TRQ Digital and TRQ Analog Guage for a dynamic slide show in actionscript 3 from actionscript 2
I had this code in AS2 and now I believe I need to bring it to actionscript 3.
The primise of the code takes a string and breaks it down to create a number to input that number into a guage and a ...
0
votes
2answers
60 views
actionscript3 function parameter modifier. Is it possible? [duplicate]
I tried to search about that, but didn't find anything. I used links to modify data via parameters in C++. In C#, for example, I can use like that:
bool foo(ref string r)
{
r+= " is text";
}
...
3
votes
1answer
43 views
Context3D not available when forcing software rendering in flash
I'm having a problem with fallback from GPU to SOFTWARE rendering.
I want the .swf to work on machines that don't support GPU rendering and I have found that the following line forces the software ...
0
votes
1answer
46 views
ActionScript 3 Selecting a MovieClip
My situation is this:
I've got several (2+) MovieClips on the stage.
Each one contains an input-textbox in addition to the background.
When I click the first MovieClip, it gets selected and a light ...
1
vote
2answers
62 views
Why does the following code for switching the visibility of two containers not work and what is the correct way of doing it?
I am trying to make a button that makes a box visible or invisible depending on the state of another box. Here is my code:
<?xml version="1.0" encoding="utf-8"?>
<s:Application ...
1
vote
1answer
26 views
Why does this non-descriptive error happen when I try to build this mxml file?
I get the following error when trying to build a simple MXML file:
Build halted with errors (fcsh).
Here is the MXML:
<?xml version="1.0" encoding="utf-8"?>
<s:Application
...
3
votes
1answer
37 views
Generate a Static Unique ID for every Computer without storing it locally in ActionScript
I want to generate a unique id for every computer and it should remain static every time the id is generated which means we dont need to store it in local storage because most of our user disable ...
0
votes
1answer
53 views
Transfering Actionscript 2 code to Actionscript 3
I started a few years back with actionscript 3 when I got out of school and the first real job I had, I had to get into actionscript 2. So after about three years of coding things into actionscript 2, ...
0
votes
0answers
18 views
Android (ActionScript) : Bind to a service (AIDL)
I have an android application (java) with a Service with multiple methods (based on AIDL file).
One of my client has developed an android application with ActionScript3 and want to bind it to my ...
3
votes
1answer
97 views
AS3 NetstreamInfo Class returning wrong values
I wrote a little swf Container which should load a video file and playback it.
I followed the official Adobe documentation and the video plays smoothly.
Afterwards I added some ExternalInterface API ...
0
votes
0answers
27 views
GET PHP Variables in Actionscript 3
I have trawled the web and used multiple examples but not getting anywhere at all!
I want to URLRequest (LOAD) a PHP file with the get parameters that look like this "q1a=test"
Current script gives ...
1
vote
2answers
20 views
AS3 SharedObject IF isset or equals
very new to SharedObjects, but essentially all I want to do is let a user answer a question once and not allow them to answer again, how is it possible. This is what I have below?
...
0
votes
2answers
68 views
bitmapData to base64 and then to html tag img with src containing base64 encoded data
i'm trying to get a snapshot from my cam. i have this part of code (as3) for a snapshot
private static const encodeChars:Array = ...
0
votes
2answers
63 views
how to set up a Tuio AS3 OSC receive function
I'm using the Tuio AS3 library to work with OSC data. And successfully implemented to send OSC signals through UDP from the example here:
http://bubblebird.at/tuioflash/guides/sending-osc/
My ...
0
votes
1answer
25 views
Movieclip not orbiting correctly
I'm current a student doing a flash animation. I'm new to it and algorithms.
The problem with my current project is that the movieclip I'm animating is not orbiting correctly, I followed the video ...
0
votes
1answer
31 views
factory with asynchronous loading
I have a singleton factory class, which upon first instantiation loads (asynchronously) some information from a file.
The information is important for the products the factory produces.
My question ...
-1
votes
0answers
30 views
TypeError: Error #1009 when tabbing through elements
I keep having this error when I press the key "TAB" to switch among text inputs:
TypeError: Error #1009: Cannot access a property or method of a null object reference at ...
1
vote
1answer
58 views
Get the upper, bottom, rightmost and leftmost point of a pixel-perfect BitmapData collision
How can I get the upper, bottom, rightmost and leftmost point of a pixel-perfect BitmapData collision? This is my collision-detection code:
public static function checkCollision(object1:*, ...
0
votes
1answer
33 views
In ActionScript how to count number of lines in a Text Field and Update it by keeping only specific number for lines
In a shoutbox application we use clear command so users can clear their screen if it's get so much text.
The clear command execute UI["TABS"].TABS[UI["TABS"].CURRENT]["BOX"].htmlText = ""; which ...
0
votes
1answer
34 views
How to Detect Duplicates in an ActionScript Array and For Loop
Here is a piece from my code:
for (_variable1 in _variable2) {
_variable3 = new Array();
_variable3["ip"] = _my_so.data[_variable1]["ip"];
...
0
votes
2answers
31 views
Adobe ActionScript 3.0 and “this”
private function onEnemigo(e:TimerEvent):void{
var tiempoTranscurrido:int = getTimer() - ultimoEnemigo;
if(tiempoTranscurrido > proximoEnemigo){
ultimoEnemigo = ...
1
vote
0answers
28 views
Differences in assigning on-stage or code-created object instances to stage.focus?
I am trying to focus on a button(a MovieClip) with up/over/down/disabled effects and I am facing the following issue.
When I specifically place an instance of the MovieClip to the stage and name it ...
-2
votes
1answer
52 views
NoClassdefFoundError on thirdparty class files when building Adobe Native Extension
I am building an Adobe Native extension (ANE) which has third party JAR dependencies. I am making sure that the third party class files are extracted and packaged inside the ANE JAR (as explained in ...
1
vote
1answer
46 views
In ActionScript how to disable CTRL+V Paste in a TextArea
I disabled the Paste option in right click of TextArea using:
MyField.textField.mouseEnabled = false;
But still i can paste any text using CTRL+V is there anyway to stop it?
0
votes
1answer
32 views
How to create time type double in AS3
i have view solution AS3 in have const:
var enddate:number = 1.35947521048E12;
and it show in swf is 29-Jan-2013 23:00.
i want create number like 1.35947521048E12 by custom date and time. ...
0
votes
0answers
37 views
ActionScript how to check if Local Storage is Disabled?
I am using a flash chat based on actionscript 3.0. We need to make sure the chatters dont have their Flash Local Storage set to none / disable. Because we need to to store some data for future use ...
-1
votes
1answer
55 views
Updating SharedObject Data Value in ActionScript
First of all i am sorry for my little knowledge of actionscript i need some help.
I want to update the value of _third.data["#ID"] in this code. What i want to do it to add something with ...
0
votes
1answer
36 views
expecting colon before rightparen and expecting identifier before if
Another probably dumb question.
I followed a tutorial (popping game by Richard Parnaby-King).
i got this anoying errors that i cant seems to fix.
the main.as (called test1):
package
{
import ...
0
votes
0answers
62 views
Play Pause NetStream Video As3
I am trying to pause my netstream video on a button click function. I am not sure how to do that. I tried several ways. but every time i failed. please check my process and tell me how to reach my ...
-1
votes
1answer
43 views
convert class to object actionscript 3
I`m tring to covert class to json.
The class is:
package com.globalData{
public class userSite {
private var uID:int,uName:String,uSocket:int,uZone:int,uRoom:int;
public ...
-5
votes
1answer
54 views
How do I code Actionscript 3.0 textarea components in Adobe Flash CC to display text in a non-editable text field from an editable text field? [closed]
I am working with Actionscript 3.0 within Adobe Flash CC 2014 and I am extremely new to Actionscript.
My SITUATION: I currently have two textarea components, one editable field and one non-editable ...
0
votes
0answers
40 views
Sprite layers are disappearing in AS3 drawing code
I'm building a custom painting application, and I'm running into a problem where the layers I'm adding to the canvas are disappearing after 24 layers get added.
Here is my code for the drawing ...