Hi,
I'm trying to create a endlessly scrolling bitmap background. I want to make it as efficient as possible as there is plenty of other game logic going on too.
The idea is to have a repeatable bitmap scroll horizontally on an endless loop, which can obviously be achieved by placing two sprites of the same bitmap next to each other an...
I have a photo gallery but what i want to do is when i click on a photo i want the name of that photo to be shown in a dynamic text field. pls help because i am beating my brain over it
import fl.containers.UILoader;
import caurina.transitions.*;
//---------loading the external xml file-------
var urlRequest:URLRequest=new URLRequest(...
I want to run some code whenever a DisplayObject is added as a child to a DisplayObjectContainer.
Or to put in other words, to catch the addedToStage event of all DisplayObjects, even ones I don't know about.
Is it possible? and if not, any ideas on how to do something similar?
...
A couple years in now, there's still something about mouseEnabled I'm not getting. I have a Sprite (for example here "Sky", that contains many objects, one of them is a Cloud, which I do not want to receive Mouse Events. I overlay this Sky on some other display objects. I want the cloud to be visible, but not to block mouse events. If yo...
I am having problems with my collision detection. basically when I hit a solid tile my character's body is half way in the tile already. here is my code.
The properties wY and wX are my game world positioning. Not the stage positioning. dx and dy is the velocity the character is traveling. This first snippet of code is within a game loo...
I have found some code that uses the virtual keyword for functions, like:
package tryOut{
public class Parent {
public function Parent() {}
public function foo():void{
trace("Parent foo");
}//foo
public virtual function bar():void{
trace("Parent virtual bar");
}//ba...
I want to make a turn base strategy game. I was just curious if anyone had any sources or books that explains the concept and architect of designing a turn based strategy game or any turn based game. thanks!
...
I have some shared code between an Adobe AIR App and an Adobe Flex App.
On one line of this code, the program must behave differently depending on if it is running within the Air runtime, or the Flex runtime.
How can I programmatically detect the difference?
...
Hi,
I am developing a network based allication in flex 3 using actionscript.....i need to find the range of ipaddress in which mine will be ....
for example in wireless if my ip adders is 192.168.26.166...then system should detect the rangelike
192.168.24.0-192.168.31.255
so that i can browse all their systems in a LAN(WIRELESS or WIRE...
This is a super simple event. Why it is not working is making me go crazy.
This is in my AsciiArt class:
dispatchEvent(new ArtEvent());
That fires this very simple event class:
package
{
import flash.events.*;
public class ArtEvent extends Event
{
public static const DONE_NOW = "done";
public function ...
Are there any custom libraries available that allow me to code/publish in CS3 using some of the features of CS4?
EDIT:
I say "some", because I understand that it is obviously nearly impossible to reimplememnt CS4 in CS3.
...
Hi,
I had developed the flex application with panel container.
And i have a requirement like, if i change the resolution of the computer, all the panel's in my applcition are auto setted to particular resolution by defaultly. but it should not happened like this.If resolution changed, the scrollBar comes into the picture for panel.
Fo...
This is a screenshot of the canvas.
I have a visual objet - circle table. It has circles around it - circle chairs. On those chairs a user guestIcon object by dragging it onto the chair. guestIcon has a label child visually near the chair itself. I explicitly assign a hitArea for each chair (and a guestIcon object has a hitArea too, whi...
I am trying to implement paypal payment in as3. But the return variable conflicts with an as3 keyword. So how to set return variable for returning from paypal to merchant site.
...
I know there is something I am doing wrong. In my controls I have keydown events that control my hero. As of right now, I am trying to rotate my hero but he refuses to turn . Below is my Hero Class, my control class, and gameobject class. pretty much all the classes associate with the controls class.
package com.Objects
{
import c...
I'm currently learning how to make facebook apps, and I've hit a problem.
Usually when I make flash applications, I can use the index.html and run the swf from a webserver.
However, I tried to make a facebook iFrame app using the same setup, all I get is the Alternative Content Text.
Any experienced flash/facebook developer help would ...
It seems allot of questions for Flash/Flex are related to bugs in the Flash Player. What are some of the bugs and what is the workaround. It would be nice to compile a list of known bugs and common workarounds.
Example:
In Flash Player 10 the DoubleClick event does not trigger in Firefox. The workaround is to avoid using the DoubleClick...
I'm trying to read the width and height of a locally loaded image. This seems to work for images that do not exceed the dimensions limited by the Flash Player 10 (http://kb2.adobe.com/cps/496/cpsid_49662.html), but as soon as the images are bigger, the width and height remain 0. The strange thing is that now and then, I can read the dime...
I have a Flash movie embeded with swfobject in a html container.
Through ExternalInterface I have registered a javascript function to fire callback to my flash app.
ExternalInterface.addCallback("notifyClose", notifyOnClose );
The javascript function is added as an event listerner to fire onbeforeunload.
<script language="JavaScript"...
This link will show you what I'm trying to do, but in AS3 and with additional features I've described below:
http://www.kirupa.com/developer/mx/slider.htm
Sliders will have different max and min values (5-100, 0-80, etc)
Need to be able to modify the text in the dynamic box, which also manipulates the slider. For instance, I'd like to ...