Comunication and events: Flex Builder 2 with Flash CS3

Hey hello...well, my question is: how can i comunicate Flex
Builder 2 with Flash CS3?
this is my code on Flex Builder 2:
<mx:Script>
<![CDATA[
import mx.controls.*;
import mx.events.*;
public function CargaCompleta(e:Event):void
try
e.target.content.objeto_salida.addEventListener(Event.COMPLETE,uno);
catch(er:Error) { Alert.show(er.message,"Error"); }
public function uno(e:Event):void
try
s1.content["objeto_salida"].removeEventListener(MouseEvent.CLICK,s1.content["Finaliza"]);
s1.source = null;
s1.source = "recursos/reactivos/208M-1R.swf";
catch(er:Error) { Alert.show(er.message,"Error"); }
]]>
</mx:Script>
<mx:SWFLoader id="s1" width="278" height="251"
complete="CargaCompleta(event)"
source="recursos/interactivos/208M-1I.swf">
</mx:SWFLoader>
and when it change from one file to another, on the event
"Complete" for the SWFLodar, an error happend
TypeError: Error #1009: No se puede acceder a una propiedad o
a un método de una referencia a un objeto nulo.
at 208M_fla::MainTimeline/frame1()
Hope somebody can help me...for your time thanks...

"Jorge EdOardo" <[email protected]> wrote in
message
news:gfcfcr$9s2$[email protected]..
> Hey hello...well, my question is: how can i comunicate
Flex Builder 2 with
> Flash CS3?
>
> this is my code on Flex Builder 2:
> <mx:Script>
> <![CDATA[
> import mx.controls.*;
> import mx.events.*;
> public function CargaCompleta(e:Event):void
> {
> try
> {
>
e.target.content.objeto_salida.addEventListener(Event.COMPLETE,uno);
> }
> catch(er:Error) { Alert.show(er.message,"Error"); }
> }
> public function uno(e:Event):void
> {
> try
> {
>
>
s1.content["objeto_salida"].removeEventListener(MouseEvent.CLICK,s1.content["Fin
> aliza"]);
> s1.source = null;
> s1.source = "recursos/reactivos/208M-1R.swf";
> }
> catch(er:Error) { Alert.show(er.message,"Error"); }
> }
> ]]>
> </mx:Script>
> <mx:SWFLoader id="s1" width="278" height="251"
> complete="CargaCompleta(event)"
> source="recursos/interactivos/208M-1I.swf">
> </mx:SWFLoader>
>
> and when it change from one file to another, on the
event "Complete" for
> the
> SWFLodar, an error happend
>
> TypeError: Error #1009: No se puede acceder a una
propiedad o a un m?todo
> de
> una referencia a un objeto nulo.
> at 208M_fla::MainTimeline/frame1()
>
> Hope somebody can help me...for your time thanks...
http://weblogs.macromedia.com/pent/archives/2007/04/using_actionscr_1.html

Similar Messages

  • Flex builder with AS3 project

    Hi,
    I am developing a Flash game using as3, I chose flex Builder with an AS3 project. Now I am thinking that if selecting the project to be a flex project instead of as3 project I would have a lot of flex functionality like a swf loader,preloaders and the popup manager etc. The graphic components would obviously have been made in flash and used through the swc (avoiding the heavy mxml components).
    Need to know what other developers think of this approach.

    You must include in library:
    ${FRAMEWORKS}/locale/{locale}

  • Using Flex components within Flash CS3

    I'm new to Flex and I enjoy all of the components that it has
    to offer, but I am wondering about their availability within Flash.
    My plan is to make a highly animated and interactive menu and
    I have reached a point where I have to ask two questions:
    1. Is is possible to use any of the Flex components within
    Flash CS3?
    2. If the first is not possible, then if I make my menu and
    specify "containers" within the Flash file then is it possible to
    populate these "containers" with Flex components by making the
    Flash (.swf) file of my menu into a Flex component itself?

    No, Flex components cannot be used in Flash 8.

  • Flex Builder with a Package

    I cannot find any example of successfully setting up,
    building and executing an Actionscript project in Flex Builder with
    the main class being in a package. I don't care if I have to create
    the appropriate directory structure manually, I just want to get it
    to work. Every combination of project settings I have tried fails
    to generate the .swf file in the correct location for execution.
    [This is NOT a double posting -- no one seems to know where
    you go to get answers concerning Actionscript development under
    Flex Builder.]
    Thank you.

    Ah, then I have no idea.  Might be part of the text support which will be repackaged.<br /><br /><br />On 8/1/08 2:21 AM, "Pradeek" <[email protected]> wrote:<br /><br />A new message was posted by Pradeek in<br /><br />Developers --<br />  What is Parser Package?<br /><br />No, Matt , It is not a class.<br />Parser package contains a class named as$173.<br />Here is what I did:<br />Create new ActionScript project in Flex Builder 3 with Flex 4 SDK.<br />Then right click the project -> Properties. In library path, remove playerglobal.swc and add it seperately. Then type import and press Space. You can see:<br />__AS3__<br />adobe<br />authoring<br />com<br />flash<br />flex<br />mx<br />parser<br />text<br /><br />All these packages. You can't use anything. But they are there.<br /><br />________________________________<br />View/reply at What is Parser Package? <a href=http://www.adobeforums.com/webx?13@@.59b5fd0e/1><br />Replies by email are OK.<br />Use the unsubscribe <a href=http://www.adobeforums.com/webx?280@@.59b5fd0e!folder=.3c060fa3>  form to cancel your email subscription.

  • Flex Builder 4 == Flash Builder 4

    I've seen a ton of blogs discussing Adobe's decision to rename Flex Builder to "Flash Builder" for version 4.0, and wanted to see what you all think.
    Personally I agree with many of the blog comments that it is a bad move.
    Flex apps are not Flash apps (thankfully), they just happen to run in the same runtime (Flash Player). AIR apps are not Flash apps as well.
    I still think Flex will succeed, but are you all looking forward to working in Flash Builder 4?
    I for one hope Flex continues to succeed despite this move.

    Just recently re-infuriated by this terrible decision on Adobe's part so I located this thread.
    On Adobe labs they use this as the reasoning:
    If you are new to the Flash Builder beta, the first thing that you’ve already noticed is that we are renaming Flex Builder to Flash Builder. This name change will create a clear distinction between the free open-source Flex framework and the commercial IDE.
    So instead of developers (most of which have already learned the distinction by now after TWO versions) having to know the difference between an SDK and an IDE (what kind of idiot developers can't understand this???), now Flash designers (many more of those) and programmers also need to understand the difference between Flash Builder and Flash Professional.  They aren't the same product in the least and are barely related, but Flash "newbies" won't know that from the names.  Meanwhile Flex newbies will still be confused by the Flex SDK/Flash Builder mismatch.
    You would think that Flex devs (many of which come from the Java world which has exactly the same concept of SDK/IDE) who are familiar with software engineering (unlike your typical Flash developer), would be able to overcome this "confusion" more easily than the much larger number of Flash devs.
    So now this change is needed, to add even more confusion for everybody involved:
    When Flash Builder 4 is released for purchase, the current plan is to name the full-featured edition Flash Builder 4 Premium edition. This change is being made to reduce any risk of confusion between Adobe Flash Professional and Adobe Flash Builder.
    If it's already realized that you're just replacing the confusion of Flex newbies with the confusion of both Flex AND Flash newbies... why do it?
    Was this some over-paid executive's knee jerk solution to an almost insignificant problem?  Given that it seems almost nobody thinks this change is a good idea, perhaps they should have asked (here or elsewhere) their customers what they thought of such a change before simply announcing it and passing it off as a big marketing improvement?
    But more importantly: Is it too late to reconsider this idiocy?  (I can't wait till Google searches start mixing up Flash Pro and Flash Builder information making it just that much harder to find relevant links!)
    If you really want to eliminate the confusion of "Flex Builder" vs "Flex SDK" for the mentally challenged, why not simply rename Flex Builder to a more creative and unique name similar to what Java has in Eclipse/JDK?  Heck even calling it FX Builder would have been better than Flash Builder!  The marketing dept here needs a serious wake up call IMO.

  • How to use Flex Components with Flash?

    Hi!!
    I found a lot of very useful components in the web, but they are all for  Flex, is it possible to use Flex Components with Flash IDE?
    Thanks !!!
    jenry
    PS: this is one of the components I need to use (a tree with checkbox  nodes)
    http://www.sephiroth.it/file_detail.php?pageNum_comments=30&id=151
    another one:
    http://www.darronschall.com/weblog/2006/09/a-flex-2-checked-tree-control-component.cfm

    Flex components are delivered as SWCs just like Flash components, but the
    SWC format is incompatible with the Flash IDE.
    Also, the default fl.. components in the Flash IDE are incompatible with
    Flex components.
    You should be able to load a Flex SWF into a Flash SWF as long as you aren't
    using fl.. components in the Flash SWF.  If the Flex SWF overlays things
    in your Flash SWF then it might block interaction, but otherwise it
    shouldn't.  I don't think the statement you quoted is true for all
    configurations.
    But loading a Flex SWF into a Flash SWF isn't going to help you use those
    Flex components from your Flash IDE.  Try Flash Builder 4 to build out the
    Flex portion of your application.  I haven't tried it myself, but it I think
    it is supposed to have better integration with Flash.

  • Adobe AIR updater applicationupdater_ui.swc with Flash CS3 not working

    Hello AIR geeks,
    I have a project which is running in Flash CS3 with AIR.
    I would like to incorporate the functionalities which are available in applicationupdater_ui.swc
    Can any one please help me to make it available for flash cs3
    got a very nice code sinppet also
    http://www.fmajakovskij.info/air-updater-made-easy-with-scheduling/
    but Its not working with Flash CS3
    Thanks a lot
    Regards,
    Srinivas

    Use the Flex/Flash Component Kit to wrap your symbols for use in Flex
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Problem with compression with flash cs3

    our web developper says that she was unable to compress image
    with flash cs3 any idea why and what i can do for her ?
    Thanks

    Mark,
    > I have set my publish settings to Flash Player 9.0 and
    Actionscript
    > 3.0, but keep getting an error as follows:
    >
    > "WARNING: The component 'FLVPlayback' requires
    ActionScript 2.0."
    Gotcha. You must have started the document in AS2, then
    changed the
    publish settings. Each version of the language has its own
    version of the
    FLVPlayback Component (written in the relevant language).
    Start over and
    compare two compleley new FLA documents: make one for AS3 and
    one for AS2.
    Open the Components panel and note the differences between
    the two. There
    are a different set of Components depending on the language
    chosen for the
    document. Drag the FLVPlayback Component from the Components
    panel in an
    AS3 document, and you'll have the AS3 version.
    David Stiller
    Co-author, Foundation Flash CS3 for Designers
    http://tinyurl.com/2k29mj
    "Luck is the residue of good design."

  • [svn:fx-trunk] 10317: In ASDoc comment, change reference of "Flex Builder" to "Flash Builder"

    Revision: 10317
    Author:   [email protected]
    Date:     2009-09-16 12:56:03 -0700 (Wed, 16 Sep 2009)
    Log Message:
    In ASDoc comment, change reference of "Flex Builder" to "Flash Builder"
    QE notes: -
    Doc notes: -
    Bugs: -
    Reviewer: -
    Tests run: - checkintests
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/rpc/src/mx/netmon/NetworkMonitor.as

  • IMac won't turn on. Only a clicking sound and a grey folder with flashing question mark.

    iMac won't turn on. Only a clicking sound and a grey folder with flashing question mark.
    Help.

    Your iMac is actually turning ON as proven by the grey folder with the flashing question mark.
    The flashing question mark indicates that your system is unable to find a bootable volume. The clicking sound that you hear is probably coming from your hard drive while it tries to recalibrate. I suspect your hard drive has failed.
    What model imac do you have? If it's under warranty I suggest taking it in for service. Hopefully you've been maintaining a regular backup of your data as all users should. I lost my data once and it was a valuable lesson. I back up regularily now.
    If your iMac came with install disks then you can boot from them, choose your language when asked, then pull down the Utilities menu to launch the Disk Utility application. The Disk Utility application will allow you to verify whether your hard drive has an issue. Usually a clicking sound, assuming it's coming from the hard drive, is a sign of a bad hard drive.
    If your system has Lion installed then you can hold down the Command and R keys when you restart the system, then launch the Disk Utility application from the menu that appears.

  • Why is adobe forcing me to download Chrome and the Google Toolbar with Flash?

    Why is adobe forcing me to download Chrome and the Google Toolbar with Flash? I'd rather not see CNN videos than have to have Chrome and the Google Toolbar on my computer.

    ScottSatellite wrote:
    the only way Adobe was offering the Flash download from CNN was if you accepted Google Toolbar and Chrome at the same time.
    You shouldn't download Adobe software from anywhere but the adobe.com domain.  If you download it from http://get.adobe.com/flashplayer/ you will get an opt-out for Google Chrome (or McAfee, or whatever is on today's menu):
    Better yet, use the offline installers that were posted earlier.
    While I use many Google products and services, Google Chrome is not one of them.  I especially don't like how it installs, setting itself as the default browser without asking, and when you uninstall it, it will remain the default browser, which of course causes lots of problems.

  • How to use Flex builder with blazeds and JBoss

    Following the instructions it is pretty easy to set up a project to work with the turnkey tomcat. However, I am having problems with JBoss because the app has to be deployed as a .war file. I can create a war file manually and depoly it no problem. How do I get flex builder to deploy to a war file? I want to be able to debug in flex builder and run at the click of a button.

    Hi,<br /> I am trying to configure BlazeDS with JBOSS Application Server.<br /> I have downloaded BlazeDS binary version - blazeds_bin_3-0-0-544.zip from Adobe. But in the installation steps, it says that copy blazeds.war, samples.war and console.war into <JBOSS_HOME>/server/default/deploy folder. But in this zip, it contains only blazeds.war file only. I have copied it to <JBOSS_HOME>/server/default/deploy folder.<br /><br />I have restarted JBoss. I didn't get any error. But when i give <br /> http://localhost:8080/blazeds ... i am always getting "Page not found 404" error.<br /><br />Please help me, if you have detailed steps to configure BlazeDS on JBoss.<br /><br />Thanks for your time.

  • Using web services with flash cs3 and actionscript 3.0

    Hi,
    I want to use web services under flash cs 3 and by using as
    3.0.
    It was possible with as 2.0 to do it easily thanks to the
    webservice Connector.
    But I can't find how to use web services under flash and as
    3.0.
    I thought web services took part of the many improvements
    flash cs 3.0 contain, but obviously it does not:(
    Can anybody help me to use webservices with flash cs 3 and as
    3.0?
    Thanks in advance,
    Pascal

    Dark Armor, You mentioned the book Adobe Flash CS4 Professional Classroom in a Book, which I have.  I could not find anything in there.  Did you mean to say Actionscript 3.0 for Adobe Flash CS4 Professional?  I do have that book and it looks like there is information there.  Just wanting to make sure that you meant what you said.  Thanks!

  • Flex Builder 3 Flash package changed / incomplete?

    Hi,
    I have installed
    Flexbuilder3_b2,
    flex3sdk_b3 &
    air_b3_win_sdk. I am having problems with the
    flash.desktop package in Flex builder 3.
    When I use the Help I can see that in Flex 3 flash.desktop
    are package components flash.desktop.NativeDrag* but when I try to
    use them in code it appears they are not in my flash.desktop
    package. Have flash.desktop.NativeDrag* been replaced by
    flash.desktop.Drag*? I refer specifically to
    NativeDragManager, NativeDragActions, NativeDragOptions.
    Also, I am trying to run an example project which also refers
    to flash.desktop.NativeApplication thus:
    import flash.desktop.NativeApplication;
    NativeApplication.nativeApplication.addEventListener(Event.NETWORK_CHANGE,
    checkNetworkConnection);
    - but NativeApplication is not referred to in the Help as
    part of flash.desktop & not available in the list of
    components. Can anyone tell me what this has been replaced with?
    Thanks in advance,
    Ob

    Hi, your Flex Builder beta 2 is out of sync with your SDKs.
    You should upgrade to FB beta 3.
    NativeApplication is now WindowedApplication, and NativeDrag*
    is the current naming for those classes. Perhaps you are looking at
    the beta 3 AIR help while compiling with the beta 2 SDK paired with
    FB beta 2. Try bringing FB up to date.

  • Workaround for using the latest nightly SDK 4.0 builds with Flash Builder Beta 2

    The latest builds of SDK 4.0 have been updated in preparation for including playerglobal.swc for Flash Player 10.1. Flash Builder Beta 2 can not find playerglobal.swc due to the addition of the {targetPlayerMinorVersion} variable found in the flex-config.xml file.
    When using recent nightly SDKs with Flash Builder Beta 2, please modify them as follows:
    1) Rename the folder <nightly sdk location>/frameworks/libs/player/10.0 to "10"
    2) Edit the file <nightly sdk location>/frameworks/flex-config.xml and remove ".{targetPlayerMinorVersion}" and save
    When you restart Flash Builder, we will now find a correct location for playerglobal.swc, allowing for code hints and many other features to work properly.
    Jason San Jose
    Quality Engineer, Flash Builder

    Bump.
    As people continue to have problems with the nightly SDK 4 builds and Flash Builder Beta 2, please remember to use the workaround described at the top of this thread. Also see http://blogs.adobe.com/jasonsj/2010/02/workaround_for_using_the_latest_nightly_sdk_40_buil ds_with_flash_builder_beta_2.html.
    Jason San Jose
    Quality Engineer, Flash Builder

Maybe you are looking for

  • How to link Interactive fields in acrobat 9Pro

    Hi Im new in this and I would like to now how to link interactive fields in acrobat. lets say that I have 10 files (File1, File2, File3 etc......) and each file have the same  COMBO BOX that display 5 options (option 1. option 2, option 3, option 4 a

  • IPod Touch 3G won't turn on or enter recovery mode, but is recognized by iT

    I recently put new songs on my ipod touch 3rd gen and they started skipping when I was listening to them so I decided to Restore it. So I went through the whole process and it went through I guess what they call a "Recovery Loop". So it keeps Restori

  • LaserJet Pro 200 color M251nw does not print from internet

    I have a LaserJet Pro 200 color  M251nw, set up for wireless printing. It finally works when printing from Microsoft Word 2010, but refuses to do so from the internet. Can anyone help me? Thanks! SALLYANNC

  • Sorting the results of CONNECT BY query

    Hi, I have a table with following columns and values: DIS_PARENT_OID OID CREATION_TIME LEVEL 0 26750 08/02/2001 14.52.14 1 0 26751 08/02/2001 14.52.48 1 26751 26752 08/02/2001 14.53.39 2 0 26753 08/02/2001 14.53.54 1 0 26722 08/02/2001 13.58.04 1 267

  • Create IDoc FIDCCP02 / XMWST

    Hi all, I want to use standard IDoc processing (in stead of using program RFBIBL00 due to user requirement) via SAP XI. When using RFBIBL00 one can enter the markfield XMWST (calculate tax automatically) in header BBKPF and field NEWKO (Account or Ma