Actionscript 3 :: Create RemoteService In Pure Application?
Apr 6, 2011I want to make a remote service call from my pure AS3 application.In the case of Pure AS3 the RemoteObject class is unavailable.
View 2 RepliesI want to make a remote service call from my pure AS3 application.In the case of Pure AS3 the RemoteObject class is unavailable.
View 2 RepliesI know it is possible to develop a full flex application using AIR for android but what I need is to embed a flex component into an already existing classic java android application.
I found some flash players in java but they all either require a JFrame or include of specific windows dlls.
I was wondering if there are anyways to get the fixed size swf file when I build my AS3 only project in Flex environment. I can't use scaleMode="noScale" since my swf is very small. I don't want it expand it to full browser winder either. Are there anyways to do it?
View 2 RepliesHow to create rectangular Box object through pure action script ?
I think, it can be done through the libary of movie clip but I am not sure. I want to take suggestion to create rectangular box through AS script
I am using Flash profassional cs5 and want to create an iPad application but it only allow to make iphone application. It allows to install on iPad but the resolution is very small.
View 1 RepliesI need to make my Flash application create a connection to a remote application and have the remote application send periodic updates to my Flash animation. The remote app is written in VB 6, and does not support XML sockets. However, I don't need the ability to send or receive XML since I am going to be overriding the onLoad() event anyway.
Or maybe I do need that ability... I'm having trouble getting my onLoad() event to trigger. Right now I'm just testing the onLoad event like this:
[code]...
So, basically I'm trying to find out how I can format the data I'm sending it so that the onLoad() event triggers. I've read that the XMLSocket object listens for the Null byte, so perhaps the data I'm sending it doesn't terminate properly. I need a persistent connection from Flash to the VB app because the VB app will be the one initiating the updates to the Flash application. Is the XMLSocket the way to go here, or is there another class of objects that I'm missing?
I'm not using flex, just pure as3. In flex input text component i have softKeyboardType property for mobile devices but in as3 TextField i can't find replacement.
View 1 RepliesI'm working on a pure ActionScript 3 AIR app, which is my first all AS3 AIR app. One thing I'm having a problem with is adding components to the app so I can see them, here is an example of the code I'm running:
public class iPhoneAIRApp_demo1 extends Sprite
{
protected var context:PhoneAppContext;
[Code]....
but when I run this example I don't see anything.
I guess that using Flex has made it easy for me where I can just drag components to the design view and Flex does the back ground work to add the component to the stage.
What is the process for adding visual elements to a pure AS3 project?
What resources (books or website/tutorials) are available, that cover game development using pure Actionscript 3 code? By pure, I mean not using Flash CS4 and its timeline, and not using Flex MXML components. Everything done using only Actionscript code.
In another question, I asked about using certain objects of the Flex SDK for simple games, and the consensus was that I shouldn't use it at all, but only Actionscript for a game. Sounds reasonable, but the books/website tutorials that I have found on the subject of games, all use AS3 in the context of Flash CS4. They assume your objects will be movieclips, with timelines, etc.
I realize that you can learn game programming from books in other languages, and/or ignore the Flash aspect of AS3 books. I guess what I'm looking for, is whatever information is specific to AS3, such as best practices for AS3-only games, how to make architectural/design decisions, etc. If it exists, anyway :)
I'm trying to use a ComboBox control in an ActionScript 3.0 Project I've been tasked with making modifications to. I know I need to do import fl.controls.ComboBox; Now, the problem is that if I do this within the (unfamiliar) environment of FlashDevelop, I get an error. My understanding is that adding a control is a matter of feeing FlashDevelop the correct classpath, which I think I've done. Some other websites seem to indicate that if I add the control to my library this problem goes away because the act of putting it in the library links the required resources. So, how can I do the equivalent of adding to an .FLA library within FlashDevelop?
View 1 RepliesI have a pure as3 animation which doesn't utilize the stage or the timeline. What is the best way to loop the animation with as3? To my surprise I removed the "stop();" at the end of the animation and it does not loop. I also have the HTML properties set to Loop;
View 3 RepliesI'm developing a flash app by using free Flex SDK and text editor and compiling in command line.
I want to use VGroup or HGroup in my actionscript to manage positions of DisplayObjects.[code]...
One trick shown me that I could use bytes+"" which convert into String but not a pure String. It is acceptable by any UI components except it won't accept when I throw bytes+"" into switch statement. How do I convert bytearray to pure string?
private function socketDataHandler(event:ProgressEvent):void {
try {
rsocket = event.target as Socket;[code]............
I'm getting crazy because I can't access object NativeWindow in a "ActionScript Mobile Project", no matter what I do stage.nativeWindow is always null when I test on desktop. If I create a new NativeWindow then it's the stage property that is null. Oddly enough accessing stage.NativeWindow works when deploying on blackberry playbook but not when debugging configuration Launch Method on desktop.
Can't answer my own question but it seems the feature is just unsupported on the desktop I guess the workaround is use Stage.Resize when debugging desktop. reference: The window represents the native operating system window; the Stage represents the content contained by the window. This property is only valid for content running in AIR on platforms that support the NativeWindow class. On other platforms, this property will be null. In Flash Player (content running in a browser), this property will also be null.
whenever I try to test my flash movie my imported graphics appear as pure red... I've tried using a jpg,png,bmp, and even just importing the photoshop document...why won't it work?
View 1 RepliesI created some button states in flash (swc), and I want to use them in a pure AS3 project. They are movie clips with class of neatButton_on and neatButton_off respectively. I call them like this:[code]I've also used assets, especially for different states of the same item, where I've put everything in one movie clip and then switched frames as needed. Is one way faster than the other? is there a best practice?
View 2 RepliesI'm working on a AS3 project that required a lot of UI, since Flex was used for time-saving for this part we ended up having a Flex Project (UI) and pure AS3 one (All BackEnd) or, in other words, two different .swf files.Currently I can successfully comunicate both of them using a common interface and by loading the UI .swf into the AS3 .swf using a Loader class:
var loader:Loader = new Loader();
var request:URLRequest = new URLRequest("CustomUIModule.swf");
The actual code contains listeners for SystemManagerHandler so Flex doesn't complain.Since we are delivering two different files it is not really practical whenever we release a build of the project. For this case the meta tag [Embed] seems to be a better way to achieve this (With no satisfactory results to date).
With the above information (hopefully I made myself clear enough) what would be the best approach to ultimately generate a single swf? Or how should we properly implement the [Embed] tag for Flex swf?
what the easiest way to play movieclips is using pure AS in classes. Basically, I have a MC instance on the stage with 25 frames and simply want to play it once. Using the play() method causes it to play infinitely, and I can't find any other methods which let me choose the frames i want to play between.
View 7 RepliesWill links in a pure flash site, get spidered? I understand that having links on your site is important for the searchengines to rate your site ( or as i wold put it, so that you will find it if you search google for it) If i use a html site with nothing on it exept the flash file, is there any way i can put the links in it, and still show nothing but the flash file?
View 1 RepliesI'm trying to create an application that has three movieclips that when rolled over show a movie clip over everything that the user reads then they drag one of three pictures over to the corresponding movieclip. I have the Movieclip alpha down until roll over but i had issues with layer order. If its on top i cant access the drag items beneath it and if its below i cant see it.I tried using swapChild but then it makes it crazy. The DragItem "sticks". It shows up on pages it shouldn't (i have it on one frame but it sticks to everything and i cant get rid of it). It works when im on the current frame so i must be close?
here is what my code is currently:
//This is the graphic that i want them to hover over to call the movie clip to show
msdsHover_mc.buttonMode=true;
msdsHover_mc.addEventListener( MouseEvent.ROLL_OVER,
[code].....
I'm trying to create a flash application where the user can add points (I call them draggers) and he can move those points around an image. What needs to happen is that I will use these points and their coordinates to change the image.
What I need help on is how to accomlish the rotation. Let's say the user has added three points on the stage, and they want to rotate the three points along the center of whatever triangle they form.
[Code]...
I was wondering how to make a .fla file to be opened and read by flash and have all the elements required using my own program.the motivation behind this is that i want to create a whole lot of swf files that are all pretty similar but won't ever just be slight modifcations to a base file... that and it requires a lot of data to place certain objects in places and set their keyframes to specific things etc.so i wanted to automate creating the .fla files. how to create a .fla file without flash?
View 6 RepliesIs it possible to create an application that can add effects similar to what shape collage does? I know, it was made using java. Could something like that be built using as3?My idea is that it uses alpha to know, where to start adding the shapes. In php its possible to read every pixel of an image, to check its color, so we can know if it is alpha or not, so i think there is something similar in as3. The images could be uploaded thru filerefence.
View 1 RepliesIf you know Flex, you probably know what the property "includeInLayout" does. If not, this property make the parent of your component disregard the bounds (like width and height) of your component in render their own bounds.Description in reference below:
Specifies whether this component is included in the layout of the parent container. If true, the object is included in its parent container's layout and is sized and positioned by its parent container as per its layout rules. If false, the object size and position are not affected by its parent container's layout http:[url]...
In Flex, for example:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"[code3]...............
This has been driving me nuts. I've worked with SWFObject in the past which is great. However I have a requirement not to use JavaScript. So when I try to do flashvars examples all over the net, they don't seem to work for me. Steps to repeat:
1) Create a pure AS3 project using Flex or Flash Builder
2) In the index.html wherever there is a .swf, add a name value pair suffix.
test.swf?foo=bar
3) In the constructor of the main class Sprite, trace(root.loaderInfo.parameters.foo).
Expected: bar but traces out as undefined I've tried setTimeout() to evaluate 5 seconds in the future, still doesn't work as if it's not loaded at all.
[Code]...
Trying to create a profanity filter for an AS2 application. Working with code found on this site on another post that doesn't seem to work. Anyone see the issue here?
test.onPress=function (){
badWords = ["this", "wont", "work"];
var lc_content = formContent.toLowerCase();
for (j=0; j<badWords.length; j++){
[Code].....
The form field is called "formContent". This returns both traces no matter the input so it must be a problem with the structure but I can't see it.
My idea is to be able to have a number of different objects on the side of the stage, kind of in a toolbar, then to be able to click (and thus select) one of them and place it another area in the room with another click (basically placing it, deselecting it and fixing it in place where I clicked).
I'd then like to be able to re-click it and reposition it by dragging, if I so wish.
I want to create a chat application in AIR but i dont know that how a chatting server can be created in Flash.
Basically i want to create the window application using AIR, so that which can communicate with the server, but i dont know anything how to establish to server that can handle the client requests give by my application.
How to create an AIR application using only actionscript(without mxml)?
View 5 RepliesA while ago, we created a replacement shell to run as a front end for a cybercafe. It was nothing fancy; just a flash movie that had button links to IE and a few trusted applications.
I'm trying to develop it further now and am wondering two things:
1. Is it possible to send an application to a frame within a movie? For example, have a static movie at the top with links, then when a button is pressed, the menu remains but the application opens below without overlapping. I know I can use HTML and frames but really want to keep it all in one movie/swf.
2. Is it possible to build on the above and have some sort of application lister that will allow you to switch between the two applications you have running. For example, a user may opem IE, the open Word. Word has now replaced IE and I want the user to have a simple click button to go back to an existing window rather than open another instance from the menu.