Skip to main content
Inspiring
October 3, 2008
Pregunta

Flex-built Component doesn't drag onto Stage

  • October 3, 2008
  • 2 respuestas
  • 452 visualizaciones
I'm working with a fellow coder on a project; he's the Flex guy and I'm the Flash guy. He supplied me with a custom Component he built in Flex, to act as an API. It's working just fine for him when he runs it in Flex.

I installed the .swc file in my Components folder. When I open my Components window, I can see it sitting right there. However, I can't seem to drag an instance of it onto the Stage. It highlights in the window when I click it, as I drag it I can see the little dotted-outline box indicating that something's being dragged, but when I release it it disappears. Nothing on the Stage, nothing in the Library.

We're both stumped. Anyone here ever run into this problem? Many thanks.
Este tema ha sido cerrado para respuestas.

2 respuestas

bhnhAutor
Inspiring
October 4, 2008
Thanks, Luigi.
Inspiring
October 4, 2008
Maybe (haven't tried that myself yet) the Flex guy can try to compile the component using compc with the option
-compute-digest=false
Inspiring
October 4, 2008
You can't use a component build in Flex in Flash like that. The option you have is loading the Flex Component as a swf in your Flash app and register event listeners on the loaded component. In a complete handler, check if the loaded swf is on frame 2 (every Flex swf has 2 frames) using a Timer, then register event listeners on the application property:
loadedClip.application.addEventListener("someEvent", "someEventHandler");