ActionScript 3.0 :: Create Application In AS3 Where User Can Arrange Number Of Display Objects
Feb 8, 2010
I'm in the process of creating an application in AS3 where the user can arrange a number of display objects (move/rotate/scale/...) in a container.When the objects are added and arranged in the manner the user prefers I would love to have a button that 'captures' a part of the screen and returns an imagefile (JPEG?, BMP?) that can be used for example in MS Word.
I have a message and its visible property is false how can i make it so it becomes true when the user types anything but a number. So there input textfield and a send button if the user types hello when they click send i want the message to become true. How would you do it? restrict?
I want to have different ContextMenus appear when the user right clicks on different objects in my application. Right now, I define a custom Context menu in each different class that needs a unique menu. This works, but seems unnecessary.Is there way to centralize this so as to handle all ContextMenus globally? Im looking for something similar to how you can handle click events globally by determining the type of the target.
I've been reading a lot about the benefits of Object Pooling. Found some "tutorials" online, all above my skill level. Can anyone please show me an extremely simple example of an Object Pool. What my game does is creates Ball objects when the user holds down the mouse, stops when user lifts up mouse. I need to store these Ball objects in an array(or Vector), and hit test them with other objects, removing them from the stage when the hit another object. I'd like to create a pool of say 20 of so, created once, and recycle them.
I would like to know if flash can allow the user to arrange elements (in a published swf) on the stage and "lock" their positions so that if the swf is reopened or reset, it will retain the new arrangement. How would you describe this feature?
I want to arrange objects in an arc by specifying start angle and end angle. I came across following code to arrange objects in a circle, but was unable to modify it to meet my requirement due limited knowledge of math
I am trying to create an interactive animation which allows the user to click on objects which then starts a new animation and i'm having trouble with removing the old animation movieclip and adding the new one my code is this:
stop(); var snake:Loader = new Loader(); var box:Loader = new Loader(); var snake2:Loader = new Loader();
[code]....
(its after the box is clicked I want the snake animation to be removed and the 2nd snake animation to be added)now I reckon I dont need the boolean.
I am looking for a script which would it make possible to arrange different movieclips on/arround a vector object. let me explain a bit better what i mean:imagine you have 6 different illustration of flowers, all seperate movieclips.then i have an object like for example the siluette of a man in vector format. now i would like to load like 4000 copies of the flower-movieclips on top of the siluette with a little bit of random so the flowers form in a way the siluette.
I would like to create a main menu and a hud within the application that stores and displays user information. Buttons like sound and main menu options should exist.. Now i cant seem to find any examples of how to create this user interface / hud.
I always thought this (mixed arrays) was possible, but now as I want to use it it won't work. I'm trying to create an array consisiting of 4 Vector3D objects and a Number. Yet Flash won't let me create such an array like:
Code:
var myArray = new Array(new Vector3D(1,2,3),new Vector3D(2,3,4),new Vector3D(3,4,5),new Vector3D(4,5,6),new Number(0));
Am I missing something here with the creation of the Array or is it just not possible and will I have to use an "Object" instead. Of course I could also just store my Number in the .x a fifth Vector3D-Object but this doesn't seem very practical to me.
Is it possible to arrange (z) order of objects in Flash with ActionScript 3?
e.g. I have 3 symbol instances on a given layer, and I want to perform the equivalent of 'Bring to Front', 'Bring Forward', and/or target a certain z position.
I'm relatively new to flash, and just upgraded from Flash 6 to Flash 10. This is a HUGE jump for me, but strangely, I already feel more at home in Fl10 than Fl6, as it is more object oriented, and as a hardened programmer, I like.I'm attempting to create dynamically animated objects in a flash application. I can't think of a way to approach the issue without either a: converting each keyframe into a bitmap, or b: brute-force generating each frame every step of the way.Seeing as my application will have hundreds of the little bastards on the screen at any time, option b is out of the question, I presume. So, essentially, I have a few questions about AS3:
1) Can a curve be modified after it has been drawn, or must it be cleared, then redrawn each frame?
2) Can a IK chain modify curves, or is it only per-symbol?
3) How fast can flash render complex objects in 3D? (I.E. would drawing hundreds of 400+ poly objects be too much?)
4) How fast can flash draw vector objects? (I.E. would drawing hundreds of creatures made up of dozens of curves be too cumbersome?)
It is possible to make file transfer from air application via server?I think need to create like byte array streaming or somethink like this from sender and write the destination file on receiver user pc.
Currently i'm developing a facebooks apps with falsh application. i've have completed the development with all API required to run a facebook apps. Everything went well and it's live now. My question :
1. How can make user to go directly to the application page everytime they click the link posted by user who already use the application instead going to the canvas page applications. i'm been trying to look for the article that support saying that user will go directly to application directly to canvas application page instead of going to the application page.
I'm trying to create a shuffle button for my mp3 player. I don't want it to repeat any song in the xml playlist until all the songs are played. Is there to display a random number on the click of a button, without repeating any number in the array until all the numbers in the array are used?
When using Loader class to load display objects (bitmaps, SWFs...) from remote URLs, is there any way for them to be instantiated (referenced as we know, by Loader::content property) as some user specified valid subclass? For example if I had a class that extended a Bitmap, is there any way for the loaded object to be of this class?
Is there any way to display flash objects which are outside the display area when flash is embeded in HTML The reason i ask is my current project has a rotating + enlarging effect which is largely dynamic so sometimes an object may clip the edge of the stage areathis looks messy but i dont want to increase the stage area to cover the largest possible area any object could enter because most of the time the objects are at the center and small so i would end up with a lot of white space
I have a list containing display objects from throughout the application (insertion order). I want to process the list either top-down (parent, child) or bottom up (child, parent). The only requirement is that either a parent is processed before any child or vice versa a child before its parent. What is a good approach? This question is not about sorting a list. It's about retrieving the depth of a particular display object.
Example Display list: A (root) B1 C1 C2 D1 B2 ......
My list: list = [E1, F4, A, B2, B1, C3, ..., N9, N8]
Bottom-up: N9, N8, F4, E1, C3, B2, B1, A
Top-down: A, B2, B1, C3, E1, F4, N9, N8 Does not matter if N9 before N8 or N8 before N9. Important is that any N is before M (first run) or any M before its children N* (second run).
I have to make time so the hours to be starting with 0 for the numbers less then 10 for example 9:30 to be 09:30 and in my code it works for the minutes but not for the hours. I have written the following code here:
function UpdateClock () { myDate = new Date () hours = Number(myDate.getHours()) minutes = Number(myDate.getMinutes()) seconds = Number(myDate.getSeconds()) [Code] .....
How do I identify all the display objects in the display list in ActionScript, bellow the one that I have clicked? All the other objects are shadowed by the first one. What if other objects have visible parameter as hidden?
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.
I 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 want to create a flash movie which firstly loads a selection of images/objects into a portion of the frame. After this is complete, the user can then drag these objects onto another area and the object will be created where the user has chosen. The user can then drag another instance of the ojects onto the area.
For example, there is a background of a lake in one area. A selection of boat pngs are loaded in an area below the lake. The user can drag these boats and place them on the lake. They can drag a boat multiple times if they wish.
I have a quiz that, on completion, I need the user to be able to enter their name and user id (already generated externally) which is then passed to either a database or an email is sent to a pre-determined address to log that they have completed the quiz.
I'm guessing that when the above has been done, the playhead could move to a frame that gives them a confirmation and closing message. Can anyone point me in the right direction as to how to achieve this?