ActionScript 3.0 :: Use XML To Save Users Displayobject?

Mar 14, 2009

This is my first project in AS3, been using flash for 10 years, it was time to take the plunge.

I am trying to create a app that allows the user to create an online comic strip.

My thinking is when the user drags a movieclip to the "page" I use addChild to then copy whatever they dragged into the page_mc.

They can then adjust position, scale etc

That is relatively straightforward.

I am having issues on a method so the user can save progress online. I have PHP experience so can set up a database etc. But how do get an XML based on the displayObject.

From reading about the display list, it seems ideal, and very suited to looping through each child and creating an xml file with the same hierarchy.

Is there a "dump display object to xml" method?

I can loop through the displayobject with a trace function, but that does not specify all the parents, just the individual children.

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Save A File To Users Desktop

May 3, 2006

Basically I have a website and I want to give the user the option of downloading wallpapers that they can use as their desktop image.

View 3 Replies

IDE :: Enable Users Save Position Of A Draggable Box

May 6, 2009

Is there any way that I can enable users save the position of a draggable box (for eg with cookies) and then press a button to reset the MC back to where it started off?

View 3 Replies

Actionscript 3.0 :: Save A Jpg Of The Stage To Users Hard Drive?

May 28, 2009

I've been working at this for over a week and simply can't figure it out:I would like to allow a user to export out a jpg of the swf file to their hard drive using flash player 10/cs4.Here is an example that comes close but is in flex (can't seem to figure out how to implement in flash cs4?)His flex code is there, everything works great, but how to get this into flash instead???

View 1 Replies

Actionscript 3 :: ASP.net MVC - Sessions - Record The Users Progress Then Save To A Database

Jul 21, 2011

I want to add the ability to have my flash game record the users progress then save to a database. That part is pretty easy, but how can I make it so the user can login and continue their game. I also wanting to know if it'll be better for the game progress to be saved with SharedObjects or with an SQL database. I would like it that the game could be played on any website and their data can still be accessed and played if that is advised. I am new to user sessions with AS3 and need pointers.

View 1 Replies

ActionScript 2.0 :: Save Information Obtained From Users To Files If The User Is Accessing The Flash File From A Cd

Sep 27, 2003

i'd like to know if its possible to save information obtained from users to files if the user is accessing the flash file from a cd. I would also like to know how it works if possible. And can the flash file be in .exe instead of .swf?

View 5 Replies

Flash :: Check If DisplayObject A Is A Descendant Of DisplayObject B?

Oct 26, 2010

I would like to be able to quickly check if a given DisplayObject is a descendant (not in the inheritance sense - ie. child, grandchild, great-grandchild, great-great-grandchild, etc.) of another DisplayObject. There doesn't seem to be a native way to do this and I can only think of two ways to achieve it: Create the mother of all nested loops. Seems a bit, I dunno, wrong? Dispatch a bubbling event at the 'child' and check if the potential 'parent' receives it.

[Code]...

View 2 Replies

ActionScript 2.0 :: Incorporate A 'Save' Button Which Takes A Snapshot Of Their Drawing Which They Can Then Save To Their Computer

Nov 21, 2009

I've designed a painter program where the user can select different colours and 'paint' a custom design on screen. What I would like to do is incorporate a 'Save' button which takes a snapshot of their drawing which they can then save to their computer.

View 0 Replies

ActionScript 3 :: Save File Locally In Flash Without Displaying Save Dialog

Jan 31, 2010

How do we save file locally in Flash (ActionScript 3) without displaying dialog. I know we can use the following code to save file locally but it prompts Save dialog. I don't want this dialog while saving file locally.

[Code]...

View 3 Replies

Flex :: Bypass The Save Dialog Box Of FileReference.save?

Jul 6, 2011

Can we Bypass the save dialog box of FileRefernce.save()? If not, then Is there any workaround to save a file from web application in Flex without asking user where to save file?

View 1 Replies

ActionScript 2.0 :: Save File By Prompting Save Window?

Nov 21, 2006

I need to create a notepad in flash.here how could i save the file by prompting the save window?

View 11 Replies

ActionScript 3.0 :: Save Images With My MyProject.as With FileReference.save?

Dec 20, 2010

i have movie clip with Images and button Save and class MyProject.as how save images with my MyProject.as, with help FileReference.save? what to write in code? how code should look like? tell me good people I want to write everything in a separate class

View 3 Replies

ActionScript 3.0 :: Get Rid Of Save Dialog Box In Filereference.save()?

Sep 22, 2010

Is there a way to get rid of the save dialog box in filereference.save()?I want to specify the filename and location rather then letting the user do it.

View 6 Replies

Professional :: Save CS4 Documents In CS5 Without Save As Dialog?

May 7, 2011

At my college, they have CS4 (master suite) and at home I've got CS5 (design premium). I can save files in CS5 as CS4 so they can be read at college (by Flash) but I have to do it via the "save as" every time I save. After a couple of times, it get rather irritating. Is it possible for me to save in the usual way (as if it was a CS5 document) without the save as dialog every time I save my work?

View 5 Replies

ActionScript 2.0 :: Save A Page - Add Some Sort Of A Password Or Save Feature To People Can Type In The Password

Sep 23, 2008

Im new at actionscript, and I am making a very project. Basicly, I have some thing were there is a page you can get to by beating other parts of the 'game'. I want to add some sort of a password or save feature to people can type in the password of something at the opening screen and jump to that page.

View 1 Replies

ActionScript 2.0 :: Save Files With "Save As Window" From A CD To User Choice?

Jan 19, 2006

I need to open a popup(html) form a Flash projector.

And I need save Files with "Save as window" from a CD to user choice...

View 1 Replies

ActionScript 3.0 :: A DisplayObject Becomes NaN?

Apr 8, 2010

I've come across a pretty bizarre bug in my code when working with level generation in a side-scrolling platformer I'm trying to make... I've been desperately trying to debug it for the past 2 days! I have a movieclip (exported for AS) called Section1, that contains the first section for a level. It's basically a huge movieclip containing other movieclips; this Section1 movieclip contains the graphics for the level, as well as collision detection (the graphics are .pngs converted into movieclips, the collision detection is transparent rectangles converted to movieclips). FYI, it's a BIG movieclip... roughly 3400 pixels wide.

So, since it is the 1st section of a level, I have it spawn at the beginning of the game. However, I need to access all the platforms, walls, and graphics inside section1 from inside AS. So, here's the code I am using to do this:

public var s1:Section1;
public var platforms:Array, walls:Array, levelGraphics:Array;
...
// in Main's constructor now:
s1 = new Section1(2236, 8);

[code]....

Initially, it works... I've traced the data in the arrays in my update method (run every frame), and I can see that the arrays contain displayobjects... for a split second, that is. Seemingly out of nowhere, the values for all the elements in the arrays become NaN! I think to myself... of course these DisplayObjects are "not a number"... they're displayobjects! Of course, this renders my arrays useless, since I can no longer access the data I need to do collision detections!

View 5 Replies

IDE :: Set DisplayObject Rotation In IDE?

Oct 13, 2011

I can rotate it, or modify>transform>rotate +/- value

but what is the manual equivilant to simply object.rotation=0;

View 4 Replies

ActionScript 3.0 :: DisplayObject Is Not Created

Sep 4, 2008

I have 2 sprite which I create near the beginning of my video application. A bg and screenOverlay. On the first load of the file all is good but when I navigate away and then return to the swf my bg and screenOverlay do not get added to the displayList. I have a example up here at [url]...

View 9 Replies

ActionScript 3.0 :: Copy DisplayObject?

Feb 8, 2010

I have array with DisplayObjects and I need exactly copy of my current array with same DisplayObjects but each DisplayObject should not have direct and indirect relation with my current array. Do you have any clue about this coping display Object.

View 2 Replies

Actionscript 3 :: DisplayObject Not Being Displayed?

May 19, 2010

I have this class:

public class IskwabolText extends Sprite {
private var _tf:TextField;
private var _tfmt:TextFormat;

[code].....

View 2 Replies

Flash :: Can't Add Module As DisplayObject

Jun 5, 2011

I'm trying to load a module and add it to a mx:box object called "mod". [code]...

View 1 Replies

AS3 :: Flash - Add A Border To A Displayobject?

Jun 29, 2011

I know how to draw a rectangle and add it to a DisplayObjectContainer,but do you see a simpler method to directly add a border to a DisplayObject? DisplayObject don't seem to have addChild(), so I would have to add it on the parent, which is not perfect in my opinion...

View 3 Replies

Actionscript 3 :: Take Glow From DisplayObject And Put It In Another?

Oct 18, 2011

I have a grid of DisplayObjects that when I put a glow on any of them, the glow overlap the other objects.

I was wondering if I could take the glow created by a DisplayObject and put it another, so I can attach it to a container that's behind all the objects?

View 2 Replies

Flex :: What Does UIComponent Add To DisplayObject

May 19, 2009

I am trying to understand the interaction between Flex UIComponents and (Flash?) DisplayObjects... But it's not clear to me what the UIComponent class "adds" to DisplayObject. So, what can a UIComponent do that a DisplayObject cannot?

View 2 Replies

ActionScript 3.0 :: About Var Declaration And DisplayObject

Dec 31, 2009

ActionScript Code:
mc.addEventListener(MouseEvent.CLICK,clic);
function clic(evt:MouseEvent){
var clip:MovieClip=evt.target as MovieClip;
removeChild(clip);
}

1) Why it's also possible write removeChild(DisplayObject(clip)) and for what? In which case it's necessary?
2) if I write var clip=evt.target it's works too but if I write var clip:MovieClip=evt.target it doesn't work. Why? It's a movieClip that should go in the variable var.

View 4 Replies

ActionScript 3.0 :: DisplayObject's Unique ID?

Aug 16, 2010

I am trying to store data in an object about different objects, but right now i am using their names. This was working at first but if I have 2 movieclips of the same class (from the library), then their children will both have the same names and this messes with my data storage.

View 5 Replies

ActionScript 3.0 :: 3D DisplayObject Error?

Apr 8, 2009

I'm trying to get the same effect as thiI'm almost ready to complete it but I get this warning and my script crashes."Warning: 3D DisplayObject will not render. Its dimensions (4278, 3977) are too large to be drawn."To make this kind of effect I use the rotationX function and when I zoom in I tween the "z" property. I dynamically generate all thumbnails and show them as a grid using some XML data.

View 2 Replies

ActionScript 3.0 :: DisplayObject Error?

Dec 27, 2009

i'm looping though a display object and trying to reset some button. the issue i'm having is i'm getting and error:1119: Access of possibly undefined property menuText through a reference with static type flash.displayisplayObject.on the line where i try and target obj.menuText below. the weird thing is that this same code works when the actionscript isn't in a document class. i think i'm importing all the classes i need. also in the document class i had to add the MovieClip(obj) as pointed out below or i'd get an error similar to the one about.why moving this into a package is causing this?

public function resetMenu() {
//Loop through all of the menu itemsd
for (var i:int=0; i<menuHolder.numChildren; i++) {

[code].....

View 2 Replies

ActionScript 3.0 :: DisplayObject Coordinates?

Jul 18, 2010

I have found some weird behavior, try this:

Code:
var test_x:Number=0.0000354;
var spr:Sprite=new Sprite();

[code].....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved