Hi,
I've run into weird issue.I've a main game class which extends UIComponent and basecly glue all game logic together - main loop.Then I've app main.mxml file which initialize main game class,keep care of game screen state(main menu,game,game over,etc..) and add some ui control - flex is great for that.Nonetheless problem arrive when ...
Hey,
I have quite a big code here... But fortunately it is not needed to be mentioned at all. It comes down to something which... fails? So, in the end this is supposed to draw two triangles (using AS3 Graphics). It works fine with one, but when I put a second there, it looks weird. I trace debugged it, and I think the bug is in the Gra...
I have several Flex Builder projects which depend on each other (both libraries and "applications", i.e. projects which generate an SWF), and want to compile them from commandline. I know there is the fb.exportReleaseBuild ant-Task, but unfortunately it doesn't work on Linux and only comes with Flex Builder.
Is there any other way to bu...
Is there a way to dispatch a SWFAdresss CHANGE Event but also pass parameters (an Object) along with it?
I see something like that in the documentation but I can't find an example online...
...
Hello
I've got an application that has one screen where there are 8 windows moving around a faux 3D octagon in relation to the mouse position, moving back and forth to give the user the feel of being inside a round(ish) room. Each window is a separate swf that is being called into the application, and when a user clicks on a window, it ...
Suppose all that happens initially in a client swf is a user clicks a hyperlink in a text object of the swf, so this requests a "page" from the server. In response the server just modifies that existing swf in the client browser, by for example (?) invoking public functions of it, and possibly passing in as parameters the name of image...
I have a public variable set within fx:Script tags in a parent component that I'd like to access directly from a child component. How can I do this? I don't want to pass the variable to the child component (I know how to do this and am currently using this approach). Following is a simplified version of the mxml:
Note: SimpleComp is an ...
Just wanted to know what the best way of transitioning between pages in flash. Basically i have 5 pages, each of them have an intro animation (slide in, slide out). I know how to make them transition IN but say they click on some random page out of the 5 how do i transition out of the current page then somehow tell it to go to the one th...
Having problem reading bytearray of custom objects. Any help is appreciated
public class CustomObject extends Object {
public function CustomObject() {
public var _x:Number = 100
public var _y:Number = 10
public var _z:Number = 60
}
}
var cObj:CustomObject = new CustomObject()
var bytes:ByteArray = new ByteArray()
bytes.writeObject(c...
Hello, I would like simulate road in my game, and for this i use road's lanes and traffic, lanes and traffic dynamic created like this
if(roadlineTimer-- == 0){
roadlineTimer = 30;
newRoadline = new Roadline();
newRoadline.x = 0;
newRoadline.y = 0;
newRoadline.speed = 3;
roadlines.push(ne...
Recently I am learning haXe for flash, and I have few actionscript3 experience.
HaXe is really good language.
I notice there is a delete operation in as3, Is there some like delete in HaXe? Is the "delete" about gc? Is there any tips for haXe newbie about memory management, thanks?
...
I have an mp3 player based on the School of Flash code. When I click "next song" I need it to go to the next song, unless it's the last song in the playlist in which case it needs to go back to song number 1 in the playlist.
The following code doesn't seem to do the trick, any ideas where I am going wrong?
var songlist:XMLList;
var cur...
Ok, I have no idea why this is happening.
I'm made an Item class which extends the Sprite class, the Item class basically has a few checkmarks & labels at the moment.
Then what I try to do is run through a for loop of items and create Item classes that I want to place one after each other on the y-axis, so I'm reading the Item.height ...
So i have several items on a page, each of which tweens out or in depending on a mouse event. So far i can do Easing on them when they are going out/in but how do i also set up a tween so that it blurs as the come in and out (motion blur) like the ones in the motion presets. I want to accomplish the same motion preset settings but with A...
Is it possible to call a client method from server using AMFPHP?
For example if there is a Flash chat app with PHP backend.
Everytime a new chat is logged from one of the clients,
server would call update in all of the clients?
...
I have started developing a drawing application in as3. I am thinking that I could integrate a cms and allow swf files to be uploaded in runtime as graphics.What are the potensial security issues involving third party possibly malicious swf files here?
I would simply be adding the swf as a custom sprite class to a masked container sprit...
When working on small projects or some test classes , I would prefer to quickly compile my code from the command line as opposed to creating a full Actionscript project in Flash Builder for instance.
In a previous similar question , an answer was given referring to this article:
http://www.senocular.com/flash/tutorials/as3withmxmlc/
b...
Hey guys, got a problem with my pages in flash. So i created 5 pages, each of which contains several movie clips (text, graphics, forms, etc). There is one specific page however that contains autogenerated content via. sprites. If i happen to land on this page, the sprites will appear, but when i transition to another page, they are stil...
I need to do some updates to components after a user has resized the browser window. Is there a good solution to determine when a user has completed resizing? I wasn't able to find any flex events that would cover this case.
...
This problem has me tearing my hair out.
The Symptoms: pop ups intermittently blocked/let through from external interface and navigateToURL combinations.
The Problem: Flash (or the browser..not sure) wont let pop ups be triggered outside of a time range and/or an event duration.
The Environment: I have an app that needs to send data v...