|
|
|
| |||||||||
![]() |
|
| Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
[HOW TO] - Help Yourself With Flash
Getting Help
Alot of people keep posting questions to things that the Flash docs clearly explain or that can be found via a simple search. Heres a brief guide to finding solutions to both common and not so common Flash questions:
|
|
#2
|
||||
|
||||
|
Hey can we got a mod to sticky this? It has got my vote.
webg |
|
#3
|
||||
|
||||
|
i wish there were more people helping out in the flash department, like PHP always has atleast 150 people in the forums.. haha
nice post and thanks to all who help out!
__________________
|
|
#4
|
|||
|
|||
|
Another quick method is to load up the forum and then tap CTRL-F (Windows IE & FF) to bring up the "Search this page" box and type in a single keyword you're after e.g. PHP.
If you're searching the Flash forum and type PHP in the box then you can be pretty sure any matches are going to be along the lines of "how do I use Flash and PHP?" or "why isn't my Flash/PHP app working?". Last edited by Tann San : March 28th, 2007 at 07:50 PM. |
|
#5
|
||||
|
||||
|
nice idea Tann. I do flash all day and I'll stop in to help. I need help in the PHP enough so maybe I can give back here.
|
|
#6
|
|||
|
|||
|
How to test your site at different connection speeds locally
We've all been down the road where we want to see how something works locally as if it was online, possibly with a really crappy connection speed. Flash actually has some functionality built in for this kind of testing.
|
|
#7
|
|||
|
|||
|
Use the NetConnection Debugger
Sometimes you need to check what's happening under the hood while your Flash file is live online. One method to do this is to simply create a dynamic text field and then write debug text to that as required.
Another method which is a bit cleaner imo is to use the Flash Remoting NetDebugger. There's a handy panel that comes with this called the NetConnection Debugger. If you're using Flash Remoting already then you can use this panel to see what data is getting sent in and out of Flash. Another function of it is to accept remote trace calls. That last bit is what we're after here. It's very easy to implement, as in 4 lines of code to implement. Step 1. Download and install the Flash Remoting files if you haven't go them already. You can get them here. If you have Flash CS3 then checkout some of the results from this google search to see your options. Step 2. Stick this at the top of your main Flash file: Code:
import mx.remoting.debug.NetDebug; NetDebug.initialize(); That imports the relevant classes and then initialises the debugger. Step 3. On the main menu in the Flash IDE head over to Window->Other Panels->NetConnection Debugger. That should open the debugger window. Step 4. Use the debugger. To trace from an online Flash file you just have to stick this code in the section you want to trace from: Code:
NetDebug.trace("I'm being traced!");
Note that if you're tracing from inside a class or another file that is not the one you put the code from Step 2 into then you'll need to add the same import statement (from Step 2) to the top of this second file, not the initialise line though. Step 5. Try it out. Upload your Flash file, make sure you have the debugger open (Step 3) and then view the file with your browser. You should see the trace statement appear in the debugger. The debugger is pretty cool when you're using Remoting as it can show the contents of arrays your passing amongst other things. I use it with AMFPHP to see what's going on in various places. Edit: The Flash help docs list these as two steps to do before the ones I listed. When I tested it I didn't have to do this and it still traced for me:
Another handy thing the docs point out is that you can run the debugger outside the IDE by launching it's swf file directly: Quote:
Last edited by Tann San : May 21st, 2007 at 11:56 AM. Reason: Added extra info at bottom |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > [HOW TO] - Help Yourself With Flash |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|