Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Managing My XML File In Flash



Hi all,my name is Jonathan, and I'm very new to all of this. I need to some pointers in the right direction. I'm using Flash pro cs3.I'm creating a project in flash - part of it is displaying news / notices for the clients. I've set up an xml file to store the data - really basic - nodes for : title, displayFrom, displayUntil, noticeText. I have no problem getting this data into my flash site, as there are bountiful tutorials. However, what I really want to do is to have an 'admin' site which will enable the user to update the notices in the XML, and add new nodes (notices). I don't want them to have to learn XML stucture. I basically hope to put the admin site into an AIR application so they can run it from the desktop - keeping it separate from the online site.From hunting around I figure I need to send my data from flash to PHP to actually edit the XML file on the server. Does anyone know of any examples that I can work from - tutorials out there - (I can't find one, but it would be a very helpful tutorial !!!) Or a pointer in the right direction. Thanks.Jon



KirupaForum > Flash > ActionScript 3.0
Posted on: 03-20-2008, 07:29 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Managing VERY Big Image File
I will use very high resolution image in my flash project (around 6000x4000px). It will be opened in the middle part of my movie as full resolution (and according to the resoulition of flash movie, that much area will be shown), and i will move it (by dragging, or with scrolls, or with arrow buttons) to view the location i want to see. Also i should go to a location in that image by entering position.

The main problem is, it is so big that it will consume very very high ram space. So i should divide it in to smaller parts. Then somehow corresponding parts must be showed as i explore this picture (such as when i move to the left, new image parts will be loaded to my movie, and others that will not be seen will be unloaded).

I dont know if i can explain my problem very well, but if you understand, there should be some way for me to make it . i searched flashkit for an example but i cant find anything related (ofcourse i didnt look all of them).

Thanks

Managing Large XML In Flash
I am loading many large xml files in my appliaction. Then I need to display the result in flash relating the different xml on the basis of some common node, like we use SQL queries to get result from different tables.

Currently i am loding the xml files, storing the nodeValues in arrays and the comparing the values.

What should be optimized method to do this, because the size of one xml can be in MB.

Please suggest!

Managing Data With XML And Flash
I want to do a CD presentation without installing any runtim (so I don't prefer VB) and IIS servers (so I don't prefer ASP).
The presenation has to take data from an Access databse.

My requirement is to have an extensive search facility with this data That I can distribute to my Clients so that they can have a search and find suitable choices of products among 12000 products in my DB.

1. Any chance of implememnting this through Flash with an Acces DB without any installtion ?
2. if I convert this to XMl - how I can make a good search facility?
like how I will search the data in XML file with Flash

Help most appreciated.

Managing Data With XML And Flash
I want to do a CD presentation without installing any runtim (so I don't prefer VB) and IIS servers (so I don't prefer ASP).
The presenation has to take data from an Access databse.

My requirement is to have an extensive search facility with this data That I can distribute to my Clients so that they can have a search and find suitable choices of products among 12000 products in my DB.

1. Any chance of implememnting this through Flash with an Acces DB without any installtion ?
2. if I convert this to XMl - how I can make a good search facility?
like how I will search the data in XML file with Flash

Help most appreciated.

Some Software For Managing 2d Enviornments In Flash
can u please suggest some software
in which i can manage my 2d flash game
enviornments

at present i am managing is(somehow) with excel, visio and illustrator

Dynamically Managing Flash Content
Hello all.

I'm writing (in PHP) a content management system for a Flash-based website. The Flash movie draws its text from an XML file, so I decided to use SimpleXML to write a quick online editor.

But first, I wanted to ask how other people dynamically manage Flash content. Am I going about this the standard way, or is there a simpler, more common way to manage Flash content online? I am definitely not a Flash designer, I am a PHP coder, this is why I ask.


Thanks!

Managing Content - HTML & Flash Sites
Hello,

I'm creating a site that will maintain two versions, HTML and Flash. Is there a superior method to manage the content? Obviously, I don't want to update two sites so I was thinking of writing the content to an XML file and having both sites read from the XML. Would that be the best route? Thanks for any opinions.

Luke

Managing A Combined Flash/non-flash Site
hi all,

sorry if this is in the wrong place - admins feel free to move it.
what would be the best way to create a html and flash version of a website, that run off the same data. the html is looking to be made using drupal (php cms) but that can change. i was thinking of two ways, but not sure:
1 - using xml and xsl should allow web browsers to display all the info in an xml file, which the flash can also read
2 - flash queries a php file, which queries the content database, which returns the string text (or code, whatever) back to the php, back to flash. im not sure how well this approach would work give flash's limited html capability and other things.

what are your opinions? is it just a lost cause and should i approach it to create each site seperatly - ie to add new content, you'd have to edit the flash and non-flash version

thanks

Managing Between Movies
I'm making a flash website. I've created a "Scene 1" who is the main movie. In that movie i have created a movieclip called Menyår7 in the mainmovie. This is a movieclip with menus and my question is. Why can't i use mouseevent on the submenu to jump to a specific label in the main movie.

i have used the script for the subbuton in my menu

on (press) {
gotoAndPlay ("Scen 1", "Matte7");
}


I am using Flash 5

/Gamiz

Managing Your FONTS
I have been using an excellent program called suitcase for managing fonts, though on a MAC.

I'd love to know if theres a PC program thats similar??

thanks

Managing Combo
Can any one please help with this. The problem I am facing is when ever I use both Next and Previous buttons to navigate my script works fine but when I choose the combo to select a particular item and later if I click the Next and Previous button the selected index not increasing/decreasing properly. Is it a bug with comobox component? or any of my?

source fla is attached

Managing Sounds
I am making a Flash game, and I have trouble with the action getting choppy when sound effects play. It doesn't matter if I do it by code or put them on the timeline. It's like they are being loaded every time they play.

Another interesting thing is, channels don't die when they go out of scope or are nulled. So I guess once a channel is created you can't get rid of it.

I have been considering using a singleton and a limited number of channels to manage SFX, but wanted to ask here if anyone already has a method that doesn't mess with the frame rate.

Managing Video
I have a programme with 13 video clips (about 8.5 Mb in total) and I need to be able to access any frame from any clip 12 times/second. Currently each clip is embedded into flash as a movie clip object so I can use the gotoAndStop() function. The problem is once the clips have been unpacked and loaded into ram the programme runs really slowly. Is there a better way of doing this?

Managing OOP Stuffs
i'm trying to make sure that i handle objects that aren't be used anymore and delete them as they are no longer needed.

here's a very simple stripped down version of what i'm dealing with.

Code:
var amazing:MovieClip = new MovieClip();
amazing.wow = function():void
{
trace('wow()');
}
trace('->TRY TO CALL FUNCTION BEFORE ADDCHILD');
amazing.wow();

addChild(amazing);
trace('->TRY TO CALL FUNCTION AFTER ADDCHILD');
amazing.wow();

removeChild(amazing);
trace('->TRY TO CALL FUNCTION AFTER REMOVECHILD');
amazing.wow();
so i understand that when you removeChild() the coded object still exists, but is simply not visible. because you are still able to call it's methods/functions etc.

i tried to do this...


Code:
delete amazing;
trace('->TRY TO CALL FUNCTION AFTER DELETE');
amazing.wow();
this seems to no longer work. the syntax for deleting objects seems to have changed.

soooo, HOW do I delete objects so that they no longer exist. I want to make sure that they don't keep on piling up and taking too much of the proc

ty in advance!!!!! soooooo much!

Managing Memory In AS3
hi,

I am really worried while thinking the memory management in AS3.

My application occupies the memory increasingly. it never frees up the memory.

But i have unloaded, removeChild and made null, whichever not in use. But there was no use.

Then i tried to force system to garbage collect using System.gc() method. It also failed. Most of my design uses only weak references.

I am trying to see the memory values thru task manger (using clrl+alt+del in windows). My application loads some external and internal assets from the library, which increases load in memory, after removing the assets the memory is not freed.

But one thing i noticed was, that when i minimize my application and launch, it frees up the memory occupuied by inactive assets. that means the garbage collection is done at that juncture. am i right?

Managing Extensions
Hi,

Do people use the Extension Manager a lot? What's the best way to utilize this application? Just download a bunch of extensions and try them out? What's the latest version of extension manager? What's the difference between an extension and a component?

Also, can someone explain how to utilize the Flash Project thing in MX 2004 to my advantage?

Managing Interval
I've got an interval that I can't clear.

The interval is set in a swf that i'm loading into a mc. The interval targets a function that is sitting in a navigation menu off of the root.

so when i set the interval, i'm using:


Code:
autoSwitch = setInterval (this._parent.menuContainer_mc.menuSwitch, 3000);
//where menuSwitch is the targeted function.
then when i want to clear it, i'm adding this to the last line of the menuSwitch function that the interval is calling:

Code:
clearInterval(this._parent.containerClip.autoSwitch);
It sets just fine but I can't clear it.

Managing Sound
Is there any way to manage the volume of a complete movie. I mean, a sentence that applies to all sounds playing and sounds that are not playing yet.

I´m trying to manage some sounds that must be inserted on the timeline in stream mode. I must can set all sounds to volume zero without stopping them. They have to keep running.

I know that if I call the sounds by actionscript without inserting them on the timeline is easy to do. but this time I just have to use it this way.

i just need help! urgently...

Managing Swap Depth With Mc's
I have a set of thumbnail images. Each is a button that triggers the mc with the larger image to play. It slides out from the side of the movie, in its last slide out keyframe is a command to send the previously selected image mc back to frame 1.
That parts fine.
I used swap depth to bring the selected image mc to the top. I store the name of the selected mc in variable, when the next mc is selected I swap with it. It works but what I really need is the old image to slide out over the last viewed image.
To do this the "stacked" order of the mcs needs to be managed better. The new one has to come to the top and the last viewed has to go down to the level below.
Any idea how I can achieve this.
tutorials, code, suggestions, anything please
mark

Sound Managing With Actionscript
my movie contains two sounds.

sound 1 is about 20 seconds long and is some kind of an intro.
sound 2 is just about 5 seconds long, but it should be looped over and over, for keeping the movie size small.

the actionsscript of the first frame is:
s = new Sound();
s.attachSound("mySound");
s.start();

"mySound" is the first sound clip; (i chose "link" in the right-mouse-click menue and the i exported the original file with the new name "mySound")

but now i m stuck. how can i tell flash to start sound 2 exactly in the moment when sound 1 stops? and how can it be looped?

i would be glad about every idea! thank you!

Managing Sound Output
In Flash 5 I am having trouble controlling the launch of a sound file on the movie. There are several manifestations.

The sound in scene one works fine, but at the end I hear the file that is intended for the next scene, and has no business being played on the first one. Yet, there it appears in Scene one no matter how I scrub it for clues of the sound of the file that should only be heard on clicking to get to the next scene.

Is there a tutorial that gives helpful hints to managing sound?

I would also like to stop the playing of a sound file at the clicking of the mouse "on release" so as to clear the stage for the next scene.

Other times, I have a sound file in place to play, all settings are normal, but when I play the movie normally, that scene's music drops out without a sound.

Also, in another case, a "pop" occurs at the beginning of a loop after I have changed a setting that should not affect the .wav files at all.

To see the movie "Vows" (about two minutes long) go to:
http://www.ancientsky.com/questing_first.html

sincerely,

cf

Managing Sound With Actionscript
I have two sound loops in my movie.
Now I want the first sound to start automatically at the beginning, but later there should be the option to change to the other sound.

How can this be done by using action script only?

Thank you for your time!

Managing XLS/ODS Files Via Actionscript?
Hi everybody, I have a question about the possibility to link a xsl/ods (MSExcel/OOCalc) document to a SWF file,
in order to show on a web site the results of certain calculations.

I choose this way because I have a global knowledge and confidence
with this workflow,and because I do not know if there are other way to obtain the same results.

I hope this board could be the right place where to post.

The project:

I have a table with this kind of pattern:

Column ID:
A - B - D - E - F

Column description:
Name - Quantity/dayly - Date of start - Date of today - Day passed - Result
....
....

TOTALS

The excel/calc file do this:

1) Inquiry about the "now date" (D column)
2) Difference between D and C cells to obtain the number of days (E Column)
3) Show in F cells the results of B*E cells.
4) Manage the totals in a Graph.

Last thing.. this list (the number of rows) could be grow bigger and vary in time to time it's not fixed.
Is this clear? Hope it is.

Now if there's a function in flash MX that could do the same of what stated in point 2.. well,
I could do it simply in flash. and, every single day, the results could vary automatically. (obvioulsy I have to choose the best way to record all the variables inside a movie, but.. this is a second step).

Otherwise... I'm all ears...

I casted a glance upon the list of getdate.xxx actionscript of Flash MX version but I'm unsure of their capability according to my project.

Do you have any suggestions or ideas about this?

Thanks in advance, for your suggestion and attention
Davhub

[CS3] Managing Video Clips
I have a programme with 13 video clips (about 8.5 Mb in total) and I need to be able to access any frame from any clip 12 times/second. Currently each clip is embedded into flash as a movie clip object so I can use the gotoAndStop() function. The problem is once the clips have been unpacked and loaded into ram the programme runs really slowly. Is there a better way of doing this?

[CS3] Timeline And Managing Sound
I wonder if someone could explain how I manage to fade music in and out during the duration of the flash movie. I have one flash file which also incorporates a movieclip module as well as up to 4 different soundtracks that I would like to fade in and out of for the duration of the flash movie.

I've managed to add the sound files OK and can do the fading out of the soundtracks OK. But I don't appear to be able to fade in the same tracks- it appears you can only do one or the other.

Does this mean I have to split the sound tracks up and fade in part A and then fade out partB? Is this a sensible thing to do? Has anyone done this? Will I get a discernable gap in the soundtrack?

Otherwise, would I be better off building a complete soundtrack for the Flash movie in say, Audacity, and then importing the complete soundtrack into the Flash file? My real concern is the final output size of the .swf file but I don't really want to compromise the quality of the end result.

I would be grateful for any advise on this.

Managing Layers & Using Variables... Help
Hello!

I want to swap the depths of some movieclips that are inside another movieclip in AS3, as you could do in AS2. I've found out how to do that:

In this instance:

the overall movieclip 'container' is called: layers_mc

three movieclips on different layers within that are called:

- bio_mc_content
- current_mc_content
- news_mc_content

when I click on different movieclips (which act as buttons I suppose), on the main stage and outside of the "layers_mc", I want the corresponding movieclip in the "layers_mc" to rise to the top of the pile and therefore be the visible one.

the respective names of these "button" movieclips are

- bio_mc
- current_mc
- news_mc

I've managed to make this work if I specify the exact name of the layers_mc.movieclip I want shifting to the top, but I want to get my code to be more re-usable, so I can do this all in one function.

Hopefully if you at the code below I'll make more sense...


Code:
bio_mc.addEventListener(MouseEvent.MOUSE_DOWN, sendToTop);
current_mc.addEventListener(MouseEvent.MOUSE_DOWN, sendToTop);
news_mc.addEventListener(MouseEvent.MOUSE_DOWN, sendToTop);


function sendToTop(e:MouseEvent):void

{
var maxIndex:Number = layers_mc.numChildren - 1;

var texty:String = e.currentTarget.name
//trace (e.currentTarget.name)

var texty2:String = "layers."+texty+"_content"
//trace (texty2)
layers_mc.setChildIndex("texty2" as MovieClip, maxIndex);


}
the above doesn't work but if I put the last line as:


Code:
layers_mc.setChildIndex(layers_mc.news_mc_content as MovieClip, maxIndex);
it does work. when I trace my texty2 variable it comes out as layers_mc.news_mc_content ...so what's going on, I'm new so I might be missing some obvious syntax mistake or sometime, I don't know! Hope I making sense... Please Help!

Managing Layers & Using Variables... Help
Hello!

I want to swap the depths of some movieclips that are inside another movieclip in AS3, as you could do in AS2. I've found out how to do that:

In this instance:

the overall movieclip 'container' is called: layers_mc

three movieclips on different layers within that are called:

- bio_mc_content
- current_mc_content
- news_mc_content

when I click on different movieclips (which act as buttons I suppose), on the main stage and outside of the "layers_mc", I want the corresponding movieclip in the "layers_mc" to rise to the top of the pile and therefore be the visible one.

the respective names of these "button" movieclips are

- bio_mc
- current_mc
- news_mc

I've managed to make this work if I specify the exact name of the layers_mc.movieclip I want shifting to the top, but I want to get my code to be more re-usable, so I can do this all in one function.

Hopefully if you at the code below I'll make more sense...



Code:
bio_mc.addEventListener(MouseEvent.MOUSE_DOWN, sendToTop);
current_mc.addEventListener(MouseEvent.MOUSE_DOWN, sendToTop);
news_mc.addEventListener(MouseEvent.MOUSE_DOWN, sendToTop);


function sendToTop(e:MouseEvent):void

{
var maxIndex:Number = layers_mc.numChildren - 1;

var texty:String = e.currentTarget.name
//trace (e.currentTarget.name)

var texty2:String = "layers."+texty+"_content"
//trace (texty2)
layers_mc.setChildIndex("texty2" as MovieClip, maxIndex);


}
the above doesn't work but if I put the last line as:



Code:
layers_mc.setChildIndex(layers_mc.news_mc_content as MovieClip, maxIndex);
it does work. when I trace my texty2 variable it comes out as layers_mc.news_mc_content ...so what's going on, I'm new so I might be missing some obvious syntax mistake or sometime, I don't know! Hope I making sense... Please Help!

Managing Client's Streams
I have found that I should be able to create a folder for a client on connect. then, I'll save audio recordings to that folder during a session and delete the folder on disconnect.

I need to create a unique folder name for each client. I thought of using their login email address, but that isn't an ideal format for a folder name! Alternatively, I thought of using the client's first and second name, but there's a risk that the name won't be unique.

I see that the FMS2 creates a unique client ID on connect but I can't see any way of using that in actionscript. I don;t see anything in the Client class to provide me with the client ID. Can anyone tell me if I can use this Client ID in my actionscript so I can use it to create a folder?

Thanks in advance.

Managing WebCam With Actionscript
Hi there. My custmomer has a small LAN and he asked me to connect them also through a webcam, so, everytime I press a button, the camera turns on at both sides (the two computers) and when conversation comes to end, you just click on another button and pc goes to sleep or goes back to main menu... Any idea ? thanx in advance !

Managing Event Listeners
Can anyone outline some strategies for managing Event listeners. It seems that this is a key element to getting the most out of AS3.

I have a project that creates Tween objects periodically to animate objects. I'm curious if I should be deleting these after each use. The next time I animate an object I create a new Tween.

Each time I create a Tween I'm adding an event listener for that Tween, sometimes two. How fastidious should be about cleaning these up?

Accessing/managing Bitmaps?
Hi, I'm a Flash/Actionscript noob (but experienced programmer) and have some questions about using bitmap assets:

My goal is to have a number of bitmaps in memory (but off the display list) that I can copy portions of to visible on-screen bitmaps.

What is the best way to get bitmaps data into my script? I know I can use the loader class to load them in at runtime. Is this the best (or only) way? If so, should I use a separate loader for each bitmap or reuse the same loader (copying its content to a second bitmap before loading the next asset)?

Alternately, it seems that I should be able to add them to the library as MovieClips and then create instances of them, but unless I'm missing something, I don't seem to have access to the bitmapData of a MovieClip (even if the MovieClip is just a bitmap).

How are you managing your bitmap assets? Any source code you can point to showing best practices would be great.

Managing Listeners Between Frames
I'm working on a gunslinger game. I have numerous frames which correspond to different stages of the game. The frame that corresponds to the actual gameplay has a really involved ENTER_FRAME function attached to particular item on the stage. When the game is over (or an error occurs, or the network connection fails) I want to leave the gameplay frame and move to some other frame. When this happens, I would like the ENTER_FRAME function on the gunslinger to be removed because the player may finish a game and then re-enter the gameplay frame later after selecting a new opponent.

QUESTION: Can anyone recommend a good way to manage the keyboard event listeners, all the button event listeners, etc? As you might imagine, I have no reliable way to determine which frame might be entered after the gameplay frame because the frame change could be triggered by a variety of different reasons.

Managing Layers & Using Variables...
Hello!

I want to swap the depths of some movieclips that are inside another movieclip in AS3, as you could do in AS2. I've found out how to do that:

In this instance:

the overall movieclip 'container' is called: layers_mc

three movieclips on different layers within that are called:

- bio_mc_content
- current_mc_content
- news_mc_content

when I click on different movieclips (which act as buttons I suppose), on the main stage and outside of the "layers_mc", I want the corresponding movieclip in the "layers_mc" to rise to the top of the pile and therefore be the visible one.

the respective names of these "button" movieclips are

- bio_mc
- current_mc
- news_mc

I've managed to make this work if I specify the exact name of the layers_mc.movieclip I want shifting to the top, but I want to get my code to be more re-usable, so I can do this all in one function.

Hopefully if you at the code below I'll make more sense...



Code:
bio_mc.addEventListener(MouseEvent.MOUSE_DOWN, sendToTop);
current_mc.addEventListener(MouseEvent.MOUSE_DOWN, sendToTop);
news_mc.addEventListener(MouseEvent.MOUSE_DOWN, sendToTop);


function sendToTop(e:MouseEvent):void

{
var maxIndex:Number = layers_mc.numChildren - 1;

var texty:String = e.currentTarget.name
//trace (e.currentTarget.name)

var texty2:String = "layers."+texty+"_content"
//trace (texty2)
layers_mc.setChildIndex("texty2" as MovieClip, maxIndex);


}
the above doesn't work but if I put the last line as:



Code:
layers_mc.setChildIndex(layers_mc.news_mc_content as MovieClip, maxIndex);
it does work. when I trace my texty2 variable it comes out as layers_mc.news_mc_content ...so what's going on, I'm new so I might be missing some obvious syntax mistake or sometime, I don't know! Hope I making sense... Please Help!

Managing Loaded Movieclips (swf)
I have 6 instances of a loaded movie clip on the stage. Right now it take forever to load because it is loading the same swf 6 times. I need to find a way to load it once and use it 6 times.

I thank you in advance for any help you maybe able to offer up.

Plug-in For Managing Guides?
Does anyone know of a plug-in that will manage ruler guides in CS3? I did a Web search and looked at the Exchange section here, but didn't see anything. Mostly, I need to create a single set of guides that will be visible and adjustable in all scenes at once.

Managing Large Arrays
Im creating a game that enemies come on to the stage that you shoot at. The enemies and shots are attached into arrays and everytime a instance of eather the "enemy" or "shot" comes onto the stage the array gets another attached to the bottom of the array so it never runs out.
After the enemy "dies" or the shot exits the stage it gets deleted but the array "slot" just turns to undefined so after a bit these arrays get large. I'm then doing a hit test of every shot to every enemy in a loop. So when these 2 arrays get large, even if undefined the frame rate drops to nearly 0.
Each "enemy" has 5 other matching arrays with it for speed, health,experience,money, and damage and I'm wondering how to make these Arrays small enough to run properly or a better way to create this with the same results.





























Edited: 03/01/2007 at 01:41:52 PM by Tyler1128

Managing Files And Folders
Hi;

I 'm working in a flash project in which the user is requiered to register (fill a form - user name, password,..............etc).

is it possible to create a new separate XML file for each user once he register and save his data in it then save this XML file in a certain directory?

Also, can flash action script create any file or folder? if so: how?

thanx alot

Managing Client's Streams
I have found that I should be able to create a folder for a client on connect. then, I'll save audio recordings to that folder during a session and delete the folder on disconnect.

I need to create a unique folder name for each user. I thought of using their login email address, but that isn't an ideal format for a folder name! Alternatively, I thought of using the user's first and second name, but there's a risk that the name won't be unique.

I see that the FMS2 creates a unique client ID on connect but I can't see any way of using that in actionscript. I don't see anything in the Client class to provide me with the client ID. Can anyone tell me if I can use this Client ID in my actionscript so I can use it to create a folder?

Thanks in advance.

Managing Loaded Movies
Hi, I have a movie that loads external movies, into empty movieclips, using a movieclippreloader in different frames of the main movie.

My question is: Is it recommended to unload the movies previously loaded once the user changes to a new section/frame/loaded movie?

If so, any advice on how to make a smooth transition between these two movies (the one that will be unloaded and the one to load)?

Thanks a lot for your help.

Managing Multiple .swfs
I'm creating a system that will load multiple (up to 30) .swf files depending on what buttons/actions are triggered. For a project like this, would it be better to switch to Macromedia Director or some other Flash-creation platform?

My Flash Authoring environment (the one from Macromedia) seems to slow to a crawl when it tries to juggle this many swf files.

Managing Websites Projects
Hi all.

What software do you use to helping your projects management?

I hand-create diagrams for helping the code development and a TODO list done in Excel with coloured tasks. But i think that there is some software, simple and complex, that can help me.....

Thx to all

Managing Huge Text Files
Can anyone help me manage large text blocks in Flash 5?

I want to have a large block (about 200 lines, INCLUDING bold etc). I've simply put the huge block onto the stage (as a movie clip) and managed to get the up-and-down scrolling worked out (using two buttons with Action Script).

The problem is that there is only a finite height on the stage, and my text gets cut off at the bottom. Should I be importing the text from a file? How do I do this, and can I keep the formatting?

Thanks,

Martin Hanstead
Bristol, England
martin@martinz.demon.co.uk

Managing Source .. External Editor
Writing more than a couple of pages of AS within the Flash Authoring tool is becoming unwieldy. Does anyone make a practice of writing with an external editor and then maybe #including it during the test or publish?

FlashMX; Managing Scenes And ActionScript
Hello All,

OK, so trying to teach myself FlashMX and ActionScript. Things going well except for one thing. I have a simple movie of 170 frames. For interactivity, I have made some buttons to go to another scene; however, when I test the movie it plays through all the scenes. If I back it up, the button does work and goes to the scene, so perhaps my problem is understanding scenes?

Anyone out there to help?

Thanks very much,

Joe

Managing Dynamic Image Content
Hey,

I'd like to design a Flash site and be able to add images dynamically with an admin. My friend knows php, but neither of us know how to connect it to flash.

I'd really like to be able to add new images as well as replace old images with new ones. Basically, it would be a photo gallery. Users would click on button 1, 2, 14, etc to see the new image which I guess would load inside a movie clip.

Can anyone suggest a good tutorial or thread, or some other suggestions to help me get started?

cheers!
jen

Managing Collisions And Movieclip Bouncing
[Flash MX 2004 / Flash 8, Actionscript 2.0]

Hello eveyone,

I'm just about to make something like a pool.
on a stage, I would like to throw a bunch of colored movieclips, probably between 5 and 15, as you see in the image...



...and that's the easy part!

Now, here's the tuff job:
the shapes of these movieclips should not be overlapping with each others, but simply bouncing between them... untill they find their position on the stage.
Basically, a simple friction untill they stop.

Here's where I'm in troubles.
I studied some math from Mr. Newton because I downloaded a few tutorials that are actually explaining some fisical processes, but the effect of "hit" between the squares is still very tricky to me.
I don't know how to calculate the new direction and the new speed of a movieclip after it has been hit.



I made this T E S T where I have 2 squares... one of them has gravity, the other one does not.
Both of them are bouncing and slowing down when they hit the stage border, but different story between them! (I used hitTest)

Here's the actionscript I have for every movieclip...


Code:
onClipEvent(load) {
//inizializzo gli oggetti
var vel:Object = { x: 0, y: 0 };
var pos:Object = { x: _x, y: _y };
var old:Object = { x: _x, y: _y };
var radius:Number = this._width / 2;
var movie:Object = { width: 400, height: 300 };
var dragging:Boolean = false;
}


...and then on EnterFrame I manage the motion...


Code:
onClipEvent(enterFrame) {
if(!dragging) {

vel.y *= _root.friction;
vel.x *= _root.friction;


if( pos.y + radius > movie.height ) {
//controllo se sbatte contro il pavimento
pos.y = movie.height - radius;
vel.y *= -_root.restitution;
vel.x *= _root.friction;
}
if( pos.x + radius > movie.width ) {
//controllo se sbatte contro i lati
pos.x = movie.width - radius;
vel.x *= -_root.restitution;
}

if( pos.x < radius ) {
pos.x = radius;
vel.x *= -_root.restitution;
}

if(this.hitTest(_root.Ball_MC)){
//controllo se c'è sovrapposizione dei MC
//QUI NON SO COME FARE PER GESTIRE IL RIMBALZO
vel.y *= -_root.restitution;
vel.x *= _root.friction;
pos.x += vel.x;
pos.y += vel.y;
}else{
pos.x += vel.x;
pos.y += vel.y;
}


// Now update the ACTUAL position of the ball...
_x = pos.x;
_y = pos.y;


}else{
//trace("draggo");
old.x = pos.x;
old.y = pos.y;
pos.x = _x;
pos.y = _y;
vel.x = ( pos.x - old.x ) / 2;
vel.y = ( pos.y - old.y ) / 2;
}


...so it's like to play pool!
did anybody have made a pool in flash???

[F8] Trouble Managing Movement Of MCs (containers?)
This should be easy, but it is not, easy for me. I've tried using an array, and I've tried what I will show. In each case it comes tantelizingly close, but just misses.

I've spent way too much time on this. I'm falling behind. I realize this may be a bit convoluted. But if anyone can grasp this problem, I would appreciate a helping hand. I need someone with a brain (mine is fried).

This one will move both of my mc's on the y axis, but only after clicking three times. The on the reverse trip, the mc moves jumps up and then increments correctly, only with that initial jump offset.

let me show you my code (these variables are supplied by the loaded MC):

Code:
_level0.maxDown = -271;
_level0.stepY = 140.334;
_level0.maxUp = 150;
_level0.maxRight = -323;
_level0.maxLeft = 0;
_level0.stepX = 80.25;
_level0.newYPos1=150;
_level0.newYPos2=150;
_level0.newXPos1=0;
_level0.newXPos2=0;
I have a navigation mc four directional buttons, here are the functions:

Code:
downM.onRelease = function() {
if(!(_level0.newYPos1 < _level0.maxDown)) {
_level0.dataFile._y = _level0.oldYPos1;
_level0.rHead._y = _level0.oldYPos2;
_level0.oldYPos1 = _level0.newYPos1;
_level0.oldYPos2 = _level0.newYPos2;
_level0.newYPos1 = _level0.dataFile._y - _level0.stepY;
_level0.newYPos2 = _level0.rHead._y - _level0.stepY;
_level0.activateYScroll = true;
}
}
upM.onRelease = function() {
if(!(_level0.newYPos1 > _level0.maxUp)) {
_level0.oldYPos1 = _level0.newYPos1;
_level0.oldYPos2 = _level0.newYPos2;
_level0.dataFile._y = _level0.oldYPos1;
_level0.rHead._y = _level0.oldYPos2;
_level0.newYPos1 = _level0.dataFile._y + _level0.stepY;
_level0.newYPos2 = _level0.rHead._y + _level0.stepY;
_level0.activateYScroll = true;
}
}
leftM.onRelease = function() {
if(_level0.newXPos1 < _level0.maxLeft) {
_level0.oldXPos1 = _level0.newXPos1;
_level0.oldXPos2 = _level0.newXPos2;
_level0.dataFile._x = _level0.oldXPos1;
_level0.head._x = _level0.oldXPos2;
_level0.newXPos1 = _level0.dataFile._x + _level0.stepX;
_level0.newXPos2 = _level0.head._x + _level0.stepX;
_level0.activateXScroll = true;
}
}
rightM.onRelease = function() {
if(_level0.newXPos1 < _level0.maxRight) {
_level0.oldXPos1 = _level0.newXPos1;
_level0.oldXPos2 = _level0.newXPos2;
_level0.dataFile._x = _level0.oldXPos1;
_level0.head._x = _level0.oldXPos2;
_level0.newXPos1 = _level0.dataFile._x - _level0.stepX;
_level0.newXPos2 = _level0.head._x - _level0.stepX;
_level0.activateXScroll = true;
}
}
And on the main timeline (_level0) I have two functions to trigger the move:

Code:
onEnterFrame = function() {
var togoXPos1:Number;
var togoXPos2:Number;
if(_Level0.activateXScroll) {
togoXPos1 = _level0.newXPos1 - _level0.dataFile._x;
togoXPos2 = _level0.newXPos2 - _level0.head._x;
trace("togoXPos1= "+togoXPos1+", and togoXPos2 = "+togoXPos2);
trace("spot is head: "+_level0.dataHead._x+" and head: "+_level0.rHead._x);
_level0.dataFile._x += togoXPos1/5;
_level0.head._x += togoXPos2/5;

if(Math.abs(togoXPos)<0.3) {
delete _level0.activateXScroll;
trace("xscroll deleted");
}
}
}
onEnterFrame = function() {
var togoYPos1:Number;
var togoYPos2:Number;
if(_Level0.activateYScroll) {
togoYPos1 = _level0.newYPos1 - _level0.dataFile._y;
togoYPos2 = _level0.newYPos2 - _level0.rHead._y;
trace("togoYPos1= "+togoYPos1+", and togoYPos2 = "+togoYPos2);
trace("spot is rHead: "+_level0.dataHead._y+" and rHead: "+_level0.rHead._y);
_level0.dataFile._y += togoYPos1/5;
_level0.rHead._y += togoYPos2/5;

if(Math.abs(this.togoYPos)<0.3) {
delete _level0.activateYScroll;
trace("Yscroll deleted");
}
}
}

Managing External Swf Files As Navigation
I've been digging in to AS3, and it's been fun... but trying.

Currently, I have built a website that starts with an intro movie and stops on the Main Navigation. All of my navigation buttons need to link to external swf files that contain the corresponding page.

I figured out how to load the external swf's as follows:


Quote:




var bio:MovieClip;
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.IN IT, doneLoading);
loader.load(new URLRequest("thlBegin_bio.swf"));

function doneLoading(evt:Event):void{
bio = MovieClip(loader.content);
}




Now, I need help figuring out 2 things:

First, how do I load the external swf file when each navigation button is pushed? I tried the following and it works, but it doesn't play the loaded swf from Frame 1:


Quote:




//THE FIRST MENU BUTTON
function clickBio(evt:Event):void{
stage.addChild(bio);
}
mcMenu.bBio.addEventListener(MouseEvent.CLICK, clickBio);




Secondly, once I've figured out how to properly load the external swf, how do I gotoAndPlay at a specific frame on the original fla file when I want to return to the main navigation?

I hope I'm not making a mistake trying to learn Actionscript 3 for the first time, having no previous knowledge of older versions of Actionscript.

THANKS!

Managing Buttons From A Document Class
so I got the buttons state to stay "selected" but don't know how i should code the logic to turn off the old page... i'm attaching a zip file of everything.
again, all help is appreciated as I am just learning OOP concepts on my own.

Main.as :

Code:
package classes {
import flash.display.MovieClip;
import mcButton;
import MainButton;

public class Main extends MovieClip{

private var btnHome:mcButton;
private var btnNews:mcButton;

public function Main():void
{
btnHome = new mcButton();
addChild(btnHome);
btnHome.txt.text = "HOME";
btnHome.gotoAndPlay("selected");

btnNews = new mcButton();
addChild(btnNews);
btnNews.x += btnHome.width+2.5;
btnNews.txt.text = "NEWS";

}
}
}
MainButton.as :

Code:
package classes {
import flash.display.MovieClip;
import flash.events.MouseEvent;

public class MainButton extends MovieClip{


public function MainButton():void {
this.addEventListener(MouseEvent.CLICK, onClick);
}

private function onClick(event:MouseEvent):void {
//event.target.gotoAndPlay("selected");
this.gotoAndPlay("selected");
}

private function onOut(event:MouseEvent):void {
trace("rolled out of " + event.target);
}

private function onOver(event:MouseEvent):void {
trace("rolled over " + event.target);
}
}
}

Copyright © 2005-08 www.BigResource.com, All rights reserved