I have a loader loading two files. One can be anything, and the other is the one im working on. It has a textField.text within which it should list the variables in _level0 for both files. I dont mean objects or info like what os im using (which is all i can get now). I mean the vars defined in the AS. Like what you get when you debug yo...
I have a grid that is dynamically drawn with the Graphics class. I have bricks that collectively make up pieces that need to snap into the grid. These pieces can be rotated by 90 degrees. Each time a piece is rotated I need to find the new points for the piece (an irregular shape) so I can calculate whether it is over an open square(s...
Ive been using the loader a lot of upload images into my movieclip. But the only way I know how to do it is load the content, add an event listener, wait for it to finish finish the job in the handler using the reference to the loader like this.
protected function loadImage(imageDir:String):void
{
loader:Loader = ne...
I am trying to copy the pixels of a bitmap data. but I keep getting the following error
Parameter sourceBitmapData must be non-null.
it happens in the method drawImage. exact after my trace that says "got canvas data".
canvasData.copyPixels(image,tileRect,tilePoint);
Below is my code
package com.objects {
import flash.displ...
I am having problems loading a bitmapData. I am getting the following error
Engine Init //trace
loadimage//trace
ArgumentError: Error #2015: Invalid BitmapData.
at flash.display::BitmapData()
Below is my code. it appears it happens after the trace loadimage
package com.objects {
import flash.display.Sprite;
import flash...
We're working on a Flash CS4 project where the main .fla file has ballooned in size and 'Publish' is taking forever. I suspect a large amount of the size (and at least some of the compile time) is due to the quantity of audio symbols in the library.
I would love to remove this unnecessary bloat from the .fla file. I've experimented with...
What are the advantages and disadvantages of having just one main loop and having a main class control individual objects on your stage, in oppose to having each individual object have its own loop and giving it the responsibilities of doing what ever it has to do on its own. What are consider best practices.
...
I am building a site right now using the new siFR3 it works perfectly on FF & Chrome but not on IE7 to view click here
...
I am creating a blit game and as of right now, the only thing that is blitting is the world itself (i.e. roads, fences). i was planning on displaying my character as a sprite and any interactive objects that it comes by as sprites as well. PickUps, Houses, Enemies. I was wanting to know what are the best practices when it comes to this. ...
Hi friends! I'm a noob trying to develop my first site with Flash. I made some scrollers, but they aren't smooth...
The code I used was:
const scrollUpper:int = -151;
const scrollLower:int = 366;
const scrollRange:int = scrollLower - scrollUpper;
var dragBounds:Rectangle = new Rectangle(scroller_mc.x, scrollUpper, 0, scrollRange);
var...
I am trying to remove an object from an array. but from some reason its not working. I am under the impression that a splice accepts 2 parameters. the position of the array. and for parameter 2 , how many to delete from then on out
I just want to delete one array so I am doing this
array.splice(i,0);
but it isn't working. can someone...
This might be a dumb question. I think I already know the answer, just clarify. If you declare a object in varible1 and then pass the value into varible2. If you decide to null varible2 would that kill just the reference or the object itself as well. I want to say no, but then again, everything you do to the reference it self, also affec...
I'm quite new with as3 via cs4 so please bear with me.
I'm trying to make a phone book type list that displays the users name, cellnumber and possible a delete button.
---
Bob
09XXXXXXXXX delete
---
Sussie
09XXXXXXXXX delete
---
Johnny
09XXXXXXXXX delete
---
I've tried making a list and added to it a XML dataprovider
<prof...
hi guys,
I have a (old) Flash Document ".fla" file created in Flash 8.
It just has a static textbox with "Hello World"(many more text boxes) in it .
(just for the question. )
The font set is Arial 12pt Bold (thr. the Flash 8 IDE).
When i open the same file in Flash CS4 IDE i get the Missing Font Dialog and then it
asks to Map "Arial...
Hi,
I want to change font name, font size and character embedding properties of a component (Combobox in my case) through Flash IDE (not in action script).
Is there an option to do that?
Thanks.
...
Hello everyone,
I am using the following code to load .md2 model in a scene using Papervision3D 2.1.932.
_md2.load(MD2_FILE ,new BitmapFileMaterial("./assets/dragon.png"));
scene.addChild(_md2);
By looking at the trace log, the texture is successfully loaded and so is the mesh.
INFO: BitmapFileMaterial: Loading bitmap from ./assets/...
How to correctly load an .md2 mesh description with Papervision 3D 2.1.932 ?
...
In my game, I encapsulate my addChild so that I can have an array of all the objects that are on stage for later garbage collection. this is how I do so
public function addGameChild(object:gameObject,isDisplay:Boolean = true):void
{
if(isDisplay)
addChild(object);
gameStage.push(object);
...
I am trying to save memory and space. So instead of using the Timer for my application, I was thinking about using my main loop (ENTER_FRAME) to keep track of time that passes. Is there anything wrong about this ??
...
In my game, I have airplanes that are flying past the screen from a top down view. when the air planes crash, I scale them down to make it appear as if they are falling closer to the ground and farther away from the screen. I have turrets on these crafts as well. they are seperate objects from the air plan. I scale them down as well. The...