ActionScript 3.0 :: Create A Python Interpreter Inside
Dec 14, 2011Would it be difficult to create a python interpreter inside actionscript 3? Would it be impossible, or extremely slow?
View 1 RepliesWould it be difficult to create a python interpreter inside actionscript 3? Would it be impossible, or extremely slow?
View 1 RepliesI experience strange behavior of sockets in Python (3.2). Client connects to my application using Flash. Most of the time there is nothing unusual but sometimes python crashes in a way that should not have taken place - enter into infinite loops. Below I attach to the loop code and error message in the log. Python hang on bytesRecived = sock.recv(64) and receive b'' witch is visible in log.
code:
try:
buff = ''
[code].........
I am using python and webapp framework in app engine for backend and flex 4 for front end.I would like to pass a string form backend to front end, so i write the following code in the main.py:
[Code]...
I have created a flex application in the Python Gae sdk and I got the error 2048, so I put a crossdomain.xml under the static folder.
The crossdomain.xml is following:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy> [code].....
However, I still got the error 2048. Therefore, I would like to know is anything I need to configure or miss in my case and how to fix the error.
Does Adobe Flash expose any Automation or hosting interfaces through COM or a DLL in %systemroot%system32? I'm working with Python and wxWidgets to host a flash application to monitor lunar phases.
View 1 Repliesi develop one project on python and upload on google app can i use swf file to import in python web application?
View 1 RepliesI love django, and I like flex. Django for it's cool debugging system (those yellow pages helps a lot to find bugs in my code), and flex for it possibilities. Recently I come across a problem. If I create a form in flex and then communicate with the django server, I can't see any debugging info (when the exception happens in django). Not sure, if there is a way to get the debugging info, because it is not accessible in command line (no error output), or in firebug.... Also I tried to create a quick html form, and post same data as I send from flex form, but it's a bit of pain to be honest. Will be happy to listen how do you solve the problem
View 1 Repliesi need a simple python lib that check the uploaded files to my webserver are flash media (FLV), by reading the flv header (metadata) and not the mimetype extension.
View 1 RepliesIf swf file is embedded in html it is easy to call ActionScript methods via ExternalInterface using JavaScript. Now I want to use the swf file outside of a browser and still be able to access its methods, but now I want to use Python to call ActionScript. Is it possible? There is so little information about it in the Internet. Probably I can use AMF (pyAmf) for this, can I?
View 2 RepliesSo i'm building a plugin system for my game, and i need to know actively what objects each plugin wants to use. For this, i have made a simple String interpreter. What it can do so far is separate id's and get whether a required input uses all of that kind.
my input format is like this:
Code:
IA:[param];IA[param];NN
IA is the index of all objects matching the parameter to the right of it. A is replaced by A if you want all those objects with the ID of param, or a number for a specific index.:[] tells the interpreter that what is inside the ['s is the param.the param is the string identifier that it looks for when finding objects.NN is the end sequence. this tells the engine that it doesn't need any more params.so say i had a plugin that uses the string
Code:
I2[player];IA[world];NN
the engine will loop through all objects with the ID "world" using them as the second param for the plugin's behavior, and the first will always be the 2nd "player" in the list.I can currently detect whether it wants all of a certain parameter, and what the parameter is. Now, i need to be able to find the index each param requires if it is not all. And i've tried multiple ways of doing this, but none so far have worked. What method would i use? Also, if you see anything that would kill performance in the interpreter, i would love to know, as this is called every frame.
My current code is a class with static methods called StringInterpreter, with the below code:
Code:
package Utils
{
public class ScriptInterpreter
{
[code]...
I'm trying to find out if there is a way I could embed a Python back-end into an AIR application? I'm looking to employ an approach similar to the one outlined here to implement the business logic for my application, but additionally, I would like to provide the user with a single binary which they can load. I don't want the user to have to fire up a seperate server process to make this work.
View 3 RepliesI know there is one, but it's not easy to implement the way I want. I would like to know the steps to interpret the lisp language and what functions are essential to be implemented.
View 5 RepliesI am trying to make a Visual Novel engine script interpreter. What it does is, it reads simple instructions from a source like: "DISPLAY_TEXT: Hello world", "SHOW_IMG: scene.png".
I figured:
while(read_next_instruction())
{
handle_instruction(instruction);
}
This looks fine so far. If next instruction is DISPLAY_TEXT, handle_instruction() will display the given text on the screen, and then the while loop will keep on reading. The problem is, some instructions will have to wait for the user to click on screen so it can jump to next instruction, but how can I do this, if the while loop won't wait for the user to click on the screen?
I have an xml snippet that contains an object hierarchy:
doc = """
<RootObj val1="ValueOne" stat1="Stat1" stat2="Stat2">
<internalarray type="array">
<InternalObject val1="12" val2="12" />
<InternalObject val1="13" val2="13" />
[Code]...
Is it possible to create a webbrowser inside a Flex (not AIR!) application? I want to display some links in a Flex application and when a user clicks the links, it should open a custom component with some sort of a webbrowsing component. Is it possible?
View 2 RepliesI have a syntax problem using Actionscript. Can I create new objects from inside an ArrayColletion ?
var tagsList:TagsListModel = new TagsListModel(new ArrayCollection([
{new TagModel("News", 36, yearPopularity, false, true)},
{new TagModel("Information", 18, yearPopularity, false, true)}
]);
This is the error I get:
1084: Syntax error: expecting colon before rightbrace.
Is it possible to create a textfield with text inside it, and track or trigger the text as a movieclip wich allow you to do onRelease etc.
Or trigger only the created textfield as clip with behaviour of onRelease etc.
Click here for the demo
I can't figure out how they create clickable buttons around the text that has associated changes. The button even shifts with the text so that it remains in the correct spot as I type in front of it.
i am trying to "dynamically" create variable names inside a for loop and add them to an array...
[Code]...
// ' this["thumb" + i] ' is definitely not the way to write it.. so how should i write it?
Is there anyway to get the client's ip address when running PyAMF via the WSGI gateway interface (Apache)?
View 1 Repliesin a local as3 application i need to capture a video at 25 frames per second and send the bytearray to a local python script.when i try to encode the bytearray to png inside as3 it is much to slow.so i decided to just write the raw bytearray i got from :[code]this is pretty performant and does not drop frames so far.however, i need to convert these raw bytes to png on the python side.
View 1 RepliesHow do I move / create a button that functions inside a movie clip?I have been creating a quasi-simple website following the tutorial provided by Lynda.com. Using I have created a functional site in which the buttons work so long as they are part of the main timeline. However if I take this functional button and drop it into a movie clip I've created, it ceases to function. Drag it back out of the movie clip and it starts working again. I am sure it's an action script coding problem on my end.[code]
View 2 RepliesI'm trying to create an url to a word inside a dynamic textbox but I'm not sure how to do that. I'm familiar with TextFormats, etc. but that only apply to the textbox and not to a word or a sentence inside that textbox. Or have I been misguided??
View 3 RepliesI am new to SWCs in Flash (I have CS5.5). I would ike to know if there is any documentation out there that shows how to create a SWC from an existing FLA and then access a symbol inside that SWC via its class name linkage via Action Script 3 from a different FLA.
View 2 RepliesI'm trying to create multiple Functions inside a Loop.[code]I essentially want to make 4 Functions called closeButOut1, closeButOut2, closeButOut3 and closeButOut4.This is the error message I get:
-1084: Synax error: expecting identifier before this.
-1084: Syntax error: expecting leftparen before rightbracket.
I have tried to do this here [URL] but what I want is not this
but rather the equivalent of this. I don't see how:
action script 3 code below:
package {
import flash.display.*;
import flash.text.*;
import flash.net.URLRequest;
[Code]....
I'm programming a kind of "Lights Off" game in Flash Professional (not Flash/Flex Builder)and it would be very nice if I could manage on/off state in a grphically designed Symbol like this[code]...
View 2 RepliesIs there anyway to create a search engine that runs inside an swf and that will index and search an entirely flash based website?[url]...
View 0 RepliesI'm using Flash CS3. Inside my document class, how can I create a child MovieClip that loads an image from a URL? what I did wrong? I tried changing the Main class to a Sprite, still not working.
[Code]....
how can i dynamically to create movieclips and addimages inside of them.I'm using this code to load images from XML. I need this so i could add hand cursor on the movie clips.[code]
View 2 Replies