does anybody know about any good open source xml framework for actionscript? I find the one that comes with actionscript is quite cumbersome and unintuitive so I was wondering if anyone there is a framework that loads xml files into objects in actionscript 2.0 if you know of any such framework
I'm a programmer familiar with object oriented programming, with experience in C++, C# and the MS Visual Studio development environment.
I've been tasked to create a web based game using Flash CS4 and ActionScript3. I am new to Flash, ActionScript and game programming. I have never used previous versions of Flash or ActionScript.
The game will be a single player role playing game. The player will have the ability to create an avatar. The player will move the avatar from screen to screen based on button clicks or drag and drop onto objects in the current screen. Players must register, and player information will be stored in a database backend. Additonal data will be saved to the backend database during game play.The saved data will be based on player actions in various screens, and in some cases data entered in a form on a screen.
For a first pass a stick figure avatar and screens containing simple buttons and simple objects to drag the avatar to will be sufficient. I would like to store data in a database tracking date/time information, e.g. date/time each screen is entered/exited.
I'm new to the object oriented stuff and I'm trying to learn how it works. Here's what I've started on - it's led to a few dilemmas. I have one flash file and two .as each with one class. In the timeline of the fla file, it reads: ActionScript Code: var FileObject:ScriptFile = new ScriptFile(); function onEnterFrame(){ FileObject.CallInput(); }
Call input is a function in "ScriptFile.as" that calls another function in "Input.as"; ActionScript Code: class Input{ public function Input(){ } public function keyListener(target:Number):Number{ [Code] .....
In output, when I press Left, it will say -5 over and over again, and I'm trying to add to xpos value but that isn't happening.
I have no background in programming and at 49 it seems that I am having a hard time understanding AS3, especially AS3 OOP. I wonder if I should give up at this point. I have been studying AS3 for 3 months now. Here's what I don't get right now.:
Clearly i'm a coding Novice, and I am going absolutely insane trying to figure out The Object-Oriented Scrollbar. I have the caurina folder in the same directory as my .fla , but when I publish I get these three error messages:
1172: Definition caurina.transitions could not be found. 1172: Definition caurina.transitions could not be found. 1120: Access of undefined property Tweener.
When I change my publish settings to find the files I get this message: 5001: The name of package 'caurina.transitions' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. /Users/npenta/Documents/AKA::Truth/Web/caurina/transitions/Tweener.as
I have followed correctly the Object-Oriented Scrollbar: Part 1 [URL] and Part 2 [URL] tutorials and I seem to have a problem when I want to use it with code. I have in my library the following objects: ScrollBox:Linkage ScrollBox ; ScrollBar:Linkage ScrollBar ; Thumb ; Track ; Masker ; Long (the long content that I am displaying with a scrollBar)
I create a new scroll with this code: Select allvar scroll:ScrollBox = new ScrollBox(); for(var i:int = 0 ; i<= dictionarXML.length(); i++){ //This are some actions i have in my .fla (the DictionaryWord is a custom class) var word:DictionaryWord = new DictionaryWord(); word.engleza.text = dictionarXML.cuv[i].engleza; [Code] .....
Ive gone through the Object-Oriented Scrollbar tutorial on [URL]. Its working great and I have multiple buttons inside of the moveclip it lives within. The problem occurs when I create another one on the same page. I have put one on frame 1 and the other on frame 5 so that I can select a 'category' and the scrollbar movieclip changes to the relevant buttons.Ive duplicated the movie clips and changed the instances accordingly. I keep getting these errors in the Output panel when playing my swf;TypeError: Error #1009: Cannot access a property or method of a null object reference. at as3_movieplayer_fla::MainTimeline/frame1()and when I click the like to the second category it comes up with this error;TypeError: Error #1009: Cannot access a property or method of a null object reference. at as3_movieplayer_fla::scrollbox_1/thumbUp()Not really sure what im doing wrong - or even what these mean!Here is the code from my main actions layer;
I tried the tutorial on [URL] The Object-Oriented Scrollbar: Part 2 tutorial. Every thing is fine, but when I load the swf to main.swf
- I can scroll the scroller, but not the content - I got this error
TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.leebrimelow.ui::ScrollBar() at flash.display::Sprite/constructChildren() at flash.display::Sprite() at flash.display::MovieClip() at com.leebrimelow.ui::ScrollBox() .....
The scenario is: - The main timeline play and stop at 56. - At 56 the main.swf loads the sec1.swf
I was following Lee Brimelow's Tutorial on making an object oriented scrollbar. I am trying to implement this with a project that im doing. So far im getting this Error.
1120: Access of undefined property masker_mc.
Here is the Code:
import caurina.transitions.*; var yOffset:Number; var yMin:Number = 0;
I am using an Apple PowerBook g4, Flash CS4, ActionScript 3 and I am trying to develop and design my own site and truth be told I have no idea what I am doing nor how I will put all the pieces together. But at the moment I am trying to make a horizontal scrollbar using the Object-Oriented Scrollbar: Part 1 tutorial. Basically all I have done is used x instead of y within the actionscript code. However, the only error I am getting is with the import caurina.transitions.Tweener*; code. What comes up in the compiler error report is:
Location) Symbol 'scrollbox' , Layer 'Actions', Frame 1, Line 1. Discription0 1086: Syntax error: expecting semicolon before mult. Source) import caurina.transitions.Tweener*;
The caurina file was downloaded the from Tweener Documentation and Language Reference site [URL] and I used the tweener_1_33_74_as3.zip Stable version 1.33.74, Actionscript 3 (Flash 9+) Featured Jun 2009 34.4 KB file. After placing the unzipped caurina folder into my project folder and that not working I have placed in Applications/Adobe Flash CS4/en/First Run/Classes as I read within the forum post "Re: Object-Oriented Scrollbar Part 1" posted by AKA//TRUTH on Wed Jan 20, 2010 12:30 pm.
ActionScript Code: Code: Select allimport caurina.transitions.Tweener*; var xOffset:Number; var xMin:Number = 0; var xMax:Number = sb.track.width - sb.thumb.width; [Code] .....
how to make an Object-Oriented Scrollbar. Its working great and I have multiple buttons inside of the moveclip it lives within. The problem occurs when I create another one on the same page. I have put one on frame 1 and the other on frame 5 so that I can select a 'category' and the scrollbar movieclip changes to the relevant buttons.Ive duplicated the movie clips and changed the instances accordingly. I keep getting these errors in the Output panel when playing my swf;
TypeError: Error #1009: Cannot access a property or method of a null object reference.at as3_movieplayer_fla::MainTimeline/frame1() and when I click the like to the second category it comes up with this error; TypeError: Error #1009: Cannot access a property or method of a null object reference. at as3_movieplayer_fla::scrollbox_1/thumbUp()
I know there are a billion questions regarding what books are best and I'm sorry for posting another, but all of them see to have an orientation to a language I am not familiar with.
My problem is I learned to program before OO became big, then I stopped programming for a few years, moved into web design, moved into coldFusion, and now find myself in PHP, actionScript and FLEX.
I have muddled along for quite some time, but I am really struggling with my understanding of OO and would like a good book that will help me out with it. If that book is geared towards Flex and AS3 then that would be awesome, but if it had no language specified either I would be happy. I'm just not sure how reading a book oriented to Java or whatever is going to help my understanding of AS3.
Simply put, what I'm trying to do is create a Dynamic Textfield with custom scroll bars via this tutorial [URL], that renders an external HTML file with CSS attached as its content instead of images like in the tutorial. I've tried a mix and match combination, ultimately, when I test the movie, the scroll bar works, but I see no content to scroll through. I have attached my project file. prototype.fla [ 80 KiB | Viewed 730 times ]
I'm doing this object oriented game and I create a bunch of 'boxes' via a for loop
Code: Select allfor (var z=0; z < numOfBoxes; z++){ var box:Object = new Object(); box.mc = new Box(); box.mc.name = "box"+z box.mc.x = Math.round((Math.random()*(530-box.mc.width)) + 20); for (var i=0; i<boxXArray.length; i++){ [Code] .....
I get my random amount of boxes scattered over my stage (I haven't put in any checks to see if they are touching). How do I 'name' these boxes so I can reference them later? Say I want to move the .x of boxA in another function? Is there a simple way to call them box+z instead of just all as box? (Then I can run them through a loop later to talk to them).
I am dynamically creating a movieclip, say, a ball. I want to apply a movement to each new ball created. I have created a movement function and now I need to know how to use this function as a method on each newly created ball. Would I do something like this:
Any links to any tutorials that teach how to create a full site with Object Oriented Programming? I am one year in now on Flash and AS3 and think I am getting pretty good at the basic AS3 principles and creating dynamic sites. Now I want to start migrating over into OOP so that I can create the more dynamic and browser friendly Flash Sites, but OOP is much more complex and would like a good example or sample of how to finish a full site under OOP coding.
ame_Manager.as= this manages the creation of balloons, players and collisionsBalloon.as= This is the balloon classPlayer.as=This is the player classThe Game Manager class will pass stage to the balloon and player classes and create them. I add these two in the Game Manager class.In the balloon class i add all the balloons in an balloon array.Now when i run the code i am unable to check for collisions as nothing happens when the player and balloon collides. and i get a child must be a caller of the display object when i ry to remove the balloons after they have crossed the stage.I have been trying to make it work for a long time a the game is very very simple.in the Object Oriented way of designing this simple game as i think that is where my error might be.I will post the code for these belowGame Manager.as
Code: public class GameManager extends MovieClip{ public var backGround:BackGround;
I have no experience with Object Oriented Programming, so I wonder about the following:
1) Will the code past the .LOAD line (in red) be executed only after the image completes loading? 2) Can I nest several listeners as seeing in my code below?
As stupid as my question might sound, i have spent the last 2 weeks reading oop books; but could use some guidance. I have a flash project that is basically a supped up slide show. On the stage i have the following: main_mc (instance name = images_mc) = movieclip which holds "pictures" ui1 (instance name = ui1_mc) = user interface that allows user to draw on picture (when drawing is enabled) ui2 (instance name = ui2_mc) = activates invisible hit areas (buttons) on select pics, when hit area is clicked, we jump to another pic in the main_mc.
I accomplished all of this on the timeline, but am updating the code to OOP. I am having A HELL OF A TIME trying to figure out how to store references to the instances (images_mc etc..), so i can control them from varying class files. I have found it is easy to control the instances from the documentclass, but not from unrelated class files. Example: images_mc.stop(); works in document class; but ovieclip(Parent).images_mc.stop() doesn't seem to work from any class file.(ui2 class file for example);
All I want to do is add text from my string to dynamic text field when I click dynamic buttons. What should the as code be for this? Here is my code. Right now I just have the click returning another shape.
A client has asked for a flash product to be delivered with different content in different IP locations, particularly in different countries. It is a simple trick in HTML+Javascript world, but I am not sure about whether this is possible to be done in Actionscript 3.
Im finished with the essentials (I read and exercised AS3 Essentials from Moock) and now Im looking for a more advanced book/tutorial/guide/etc that covers deeply about AS3 game development.
I recently read some forum thread and article talking about Data Oriented Programming. This think seem realy interesting. I tryed to find some exemple, but i did not find any one using ActionScript. I would like to know if it is a good thing to use DOP with AS3 and how exactly this could be done?
I have a question about Papervision3D, or perhaps bitmapData, I am unsure where the problem is. I have constructed a program that takes 4 banners and splits them into pieces and then applies those pieces to cubes so that I can make a banner rotator. So after I run my program I have 10 cubes with a piece of a banner on 4 faces(front, top, back, bottom) of each cube. The problem is that some of the faces are oriented incorrectly(spun 180 degrees). Is there a way in Papervision3D to spin a cube face? The other place I think the problem may be is when I create the bitmapData that will be applied to the cube faces.
i have an event that fires on roll-over in my thumbnail class. it sets the position of all my children within the thumbnail object class to be right aligned.i need to set up a statement that looks at the placement of the thumb on the stage (which is built in my main document class) and loads up my children to the left of the thumb.what's the best way to do this? i tried to do it by adding an if statement inside the constructor, but got nowhere...i also tried to do a switch statement, which, since i don't know how to do it right didn't work either.here's the relevant bit of code:
Code: public function Thumbnail(thumb:String, title:String, date:String) { // all my textformatting is in here...i cut it out for readability
So I have this Photo class than handles loading a pic, and dispatches an event when the loading is done with:[code]which is simple and works, but now I'd like to make something more advanced. I'd like to dispatch the load ratio.So far I have extended the Event class, with my own EventRatio class, and I can put properties on that class. Which is cool, but I need something more dynamic than just sending a fixed value.So, what is the best way to connect the Loader object of the Photo object, with the EventRatio object?
I have this situation where i'm trying to save "chat logs" while people switch around views in my flex mobile application..so, my plan is i'm starting out with a main object that I plan to re-use as the main chat log object..I call it textObjso, when someone new wants to chat my plan is to make a new object with the persons username.so how if i were to get the username from something like data.username how could I translate that into the var name of the object I want to make? So in the end i end up with.[code]