Archive for August 29th, 2003

29
Aug

Some things for component developers in Flash 2004

Some of the little things that will make life easier for component developers in Flash 2004

  • Auto Live-Preview: As long as your component knows how to redraw itself, converting a component to an swc will give it a live preview automatically.
  • Meta tags: Using special Meta-tags in your class file of your component, Flash can automatically pick up the parameters rather than you needing to specify it in the component inspector (example: [Inspectable(name=”Title Position”,enumeration=”top,bottom”,defaultValue=”top”)])
  • Easy event dispatching: The component framework has built-in support for broadcasting events. All that you would have to do to is “dispatchEvent({type:”click”});” and the rest is taken care of for you. No more AsBroadcaster.initialize(this)

I’ll try to post some more when i get the chance.

29
Aug

How is a CFC called from a template that itself is never called?

I ran into an interesting problem while developing two custom debug templates. The CFMX debugger provides information on all the templates executed in a request, including the execution time for the template and the “parent” or caller for each template.

Interestingly, there is one situation with ColdFusion Components where the parent template itself will never appear in the template list, seemingly to indicate it’s called from a template that is not executed within the request.

Continue reading ‘How is a CFC called from a template that itself is never called?’