dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Undocumented or 'bad-documented' reference?

  1. #1
    flashguy
    Join Date
    May 2005
    Location
    In the mountains
    Posts
    341

    Undocumented or 'bad-documented' reference?

    Hi,

    I am having some trouble to find AS3 information in the Adobe livedocs, and seems that sometimes I need to 'guess' things.

    For instances, I was looking for a property that could return me the path of a loaded picture, and I just found it because I tried the 'url' property by myself (I didnt find it documented this way anywhere). Does anybody out there know where to dig these small treasures?

    Code:
    function LoadPic():void
    {
    	myloader = new Loader();
    	myloader.load(new URLRequest("pics/mypic.jpg"));
    	myloader.contentLoaderInfo.addEventListener(Event.COMPLETE, PicOK, false, 0, true);
    }
    
    function PicOK(e:Event):void
    {
    	trace (e.target.url);
    }
    Visit my business at http://www.ballooncreator.com - Software Tool For Party Balloons Online Design!

  2. #2
    lemon juice hurts your eyes florianvanthuyn's Avatar
    Join Date
    Jul 2005
    Location
    Merelbeke, Belgium
    Posts
    546
    When you're programming inside of Flash, pressing F1 will get you to the helpfile, but if you put your cursor inside of the word "Event" (parameter of PickOK() function) and then press F1, the Adobe Livedocs of that class pop up, and there you should be able to see all of the properties the event.target has to offer

    This works for every class of course!
    Florian Vanthuyne

    WAR AGAINST SOLVED THREADS
    mark yours as Resolved under Thread Tools!

  3. #3
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    At the top of each doc there are lists of all the public properties, methods and events - there is also a little line above each of those that reads "Show Inherited Public Properties" (or similar) - clicking that will give you all the extra "hidden" properties that come down from superclasses.

    You can also check out the index (up in the top nav) which will give you every keyword in the language. Apart from those two I think it's just experience.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center