Map and externally loaded swf working together

Here's the setup:
I have a panoramic viewer, and i'd like to have a map go
along side it. The panoramas are loaded externally into the player.
Inside these external swf files are "hotspots" that link to other
panoramic swf files that load and take the previous swf's place. I
have all of this set up, and you can see how I did it in my
previous post:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=288&threadid =1274410&enterthread=y
So now my new question is... how can I have a map with points
on it, that when you click on a point, it will load a corresponding
swf file into the player. I believe that part is easy. My big
problem is if someone clicks on a hotspot in the external swf file
first, which in turn loads another swf file, and if that person
goes back to the map, I want the map to change the position of lets
say, a marker or a pin to indicate the new position on the map that
correllates to the new external swf that was loaded.
make sense? Any ideas? I was thinking maybe it would be some
kind of listener or something so that should a specific swf load,
it will recognize it and automatically change the location of the
marker on the map to the point that relates to the loaded swf or
something...

Hi Thanks for your reply, I tried with a small AS3 file as
well and I get the same ERROR.

Similar Messages

  • Looking for a good usb hub that will allow my mouse and external hard to work together

    I'm looking for some ideas for a good usb hub that will allow me to use a wireless mouse and an external hard drive at the same time, without shorting out the mouse.  The one i currently have, when I plug in just the mouse, it's fine, but as soon as i put the external hard drive into the hub port, the mouse no longer works and i have to reinstall the drivers for the mouse.

    Hubs and computers vary in their power needs, but it seems that your setup is lacking in the power department. This isn't a big deal with desktop computers, but since you use a MBP, you're going to do best with a powered USB hub.
    If you're looking for a USB hub with power supply, Belkin is generally reliable (and above average in price). But the D-Link is compact, reliable, and has a good price. Aim for a USB 3.0 hub if possible, though 2.0 will work fine with just about anything. Insist on a refund if the hub doesn't work in your system. Make sure it's compact, since you'll be carrrying it around.

  • Dynamic Text in Externally Loaded swf

    hi. i have a dynamic text field in an externally loaded swf. Its a digital clock so i want the numbers to update in the dynamic text field.
    this is not my exact code but it is very similar. i show below that i add the loader.swf, and once its loading is complete, i can work on its movieclips and add event listeners to its buttons, etc. but i cannot change the dynamic text field (its "classic text" set to "dynamic text"). after running this, the text just stays empty as it is in the external swf).
    here is the sample code:
    var loader:Loader = new Loader();
    loader.load(new URLRequest("loader.swf"));
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded);
    function loaded(event:Event):void{
         addChild(loader);
         var loader_mc:MovieClip = (loader.content as MovieClip)
         loader_mc.myMovieClip.gotoAndStop(2);//***this works
         loader_mc.myButton_btn.addEventListener(MouseEvent.CLICK, clickMe);//***this works
         loader_mc.myText_txt.text = "12";//***this doesn't work******
    please help. thanks!

    Did you embed the font in the textfield--it needs to be done in the loaded swf when you create it? One other thing to check is that the color for the textfield is not the same as the background it sits on.

  • Using the DateField in an Externally loaded SWF

    Hello,
    I have been having major trouble trying to get a basic PHP
    contact form to work within an externally loaded SWF file inside of
    a parent SWF. When I test the movie on its own it seems to work
    fine (example: I'm able to select a date from the DateField
    component). However, when I open up the parent SWF file and call
    the external SWF file with the form the DateField is basically
    unusable (example: when you click on it nothing happens, no
    calendar pops up to select a date).
    I have no ActionScript on it yet, simply because I figure I
    need it to work before I tell it what to do with the PHP file. The
    instance name on the DateField is "theDate". Any help is very much
    appreciated. Thank you.
    Also, I have just successfully used the contact form on the
    web. But, the only user interface components I am able to edit are
    the input text boxes, not the DateField or the ComboBox I have in
    it as well. This is very odd, I was not aware that anything special
    had to be done using these UI components within an external file.
    Elijah

    Hello 2m,
    Maybe if you were to see it, it may help you out a bit. If
    you
    click
    here for the external file you will see that the components are
    working. However, if you
    click
    here for the parent file and then click on "Meetings" on the
    top menu you will see that they do not work at all. However, if
    someone were to hit the "send" button, the PHP code would actually
    interact with the form. Let me know if that helps at all. Thanks
    again for replying.
    Elijah

  • Does 2 firewire audio and video interface can work together  on FCP ?

    hello,
    My audio interface is a TC Electronic Konnekt 24D
    my video interface is a Canopus ADVC 110
    my hard drives are plugged in firewire too
    and I use Final Cut Pro 5.0.4
    So, the konnekt is recognized by FCP only when the Canopus is not plugged. And even then, the audio sometimes drop out and sometimes causes the app to crash, so that I have to trash the preferences
    When I plug the Canopus, the Konnekt 24D is recognised by OS X but not FCP
    I want to use the voice over tool with the konnekt 24D, so what should I do ?
    Does 2 firewire audio and video interface can work together ?
    If so, maybe I only have a driver problem from TC Electronic.
    But if not, I have to change this interface. Let me know if only RME, MOTU, Presonus and Edirol work, as it is said on apple's webpage for hardware compatibility
    thanks
    eMac G4 1,25 Ghz Mac OS X (10.3.9)
    eMac G4 1,25 Ghz 1 Go RAM DDR   Mac OS X (10.3.9)  

    The 1082 does show up as a possible input when I open
    the VO tool.
    Ok. So an audio interface can be plugged to FCP without crashing the app. Because of the Konnekt driver problem, I wasn't shure of this.
    I use my Aja box for export & external monitoring.
    All my audio sources run back into the Tascam and I
    use the analog mixer in the 1082 to monitor different
    sources.
    When I view external video, the audio follows it to
    keep sync.
    that's exactly what I want with other I/O interfaces. I'd like to monitor video with the canopus ADVC 110, and monitor audio with the Konnekt 24D (or another interface if this one is not compatible)
    I also imput dailies with a deck or a camera (DV or HDV) but that's not the point here.
    I want to imput audio with the Konnekt 24D because of its audio quality. Not audio sync to video dailies. But voice over, in sync with FCP video playback (for me, tha ADVC 110)

  • How can I make my external loaded .SWF file smoothly disappear after 15 seconds?

    Hi,
    How can I make my external loaded .SWF file smoothly disappear after 15 seconds? The following is the code to load an external .SWF file:
    var K:Loader=new Loader();
    addChild(K);
    K.load(new URLRequest("clock.swf"));
    K.x = 165;
    K.y = 247;
    K.contentLoaderInfo.addEventListener(Event.INIT, growLoader);
    function growLoader(evt:Event):void {
         K.width = 130;
         K.height = 130;
    I want to make clock.swf file disappear from the page after 15 seconds using some smooth disappear effect.
    Please help.
    Thanks.

    Something even better:
    http://www.greensock.com/
    Check out TimelineMax I LOVE it...
    The guy that made this (and gives it away for free!) is a saint.

  • Passing events from externally-loaded SWFs

    Hi,
    We have an externally-loaded swf that acts as a kind-of-a slide show.  After a user selects a particular subject from a mxml-based "menu" application, they push "buttons" in the SWF to go through a presentation, then on the last frame of the swf, I'd like to unload the swf and replace it with another "mxml" application.  How can this be done?  I have not tried to pass/capture events "up" from an externally-loaded swf before.
    Thanks,
    Doug

    Do you own those SWFs?  If so, they should dispatch an event from a known
    place like a SlideShowManager or something like that.
    Other folks "cheat" and bubble events or dispatch off of the systemManager
    and/or top-level application.

  • Amber update but map and bere drive not work

    After amber update my here map and here drive not work just open the app but not open and close automatically

    Same thing here. I have tried all things and have a similar issue
    http://discussions.nokia.com/t5/HERE-Location-base​d-services/Settings-gt-Applications-does-not-have-​...
    NOKIA NEED HELP HERE !!

  • TS1702 my ipad2 was restored twice as it will not connect to my network, so what steps must I take to get iCloud and my ipad2 to work together and how do I connect so I am on internet????

    my ipad2 was restored twice as it will not connect to my network, so what steps must I take to get iCloud and my ipad2 to work together and how do I connect so I am on internet????   I connect tp my mac mini. It is on my own network. Mail and Safari open on it just can not get my ipad back online!!!     HELP!  LOST HERE!!!!

    Uwdawgfan-
    Your new router may not correctly handle Bonjour data required by AirPrint.  Contact Frontier to correct the router's setup.  A firmware update may be required.
    Fred

  • I bought a mic for my ipod touch 2nd gen and the mic works yet when its plugged in the speakers dont work, meaning i cant hear, so skype and other similar apps are un-useable, is there a way in which the mic and speakers will both work together?

    I bought a mic for my ipod touch 2nd gen and the mic works yet when its plugged in the speakers dont work, meaning i cant hear, so skype and other similar apps are un-useable, is there a way in which the mic and speakers will both work together?

    Looking at the details for this mic, it appears that the app has to have the option to use the internal specak when a mic is plugged into the headphone jack. Specifically:
    NOTE: When MityMic is plugged into your iPod/iPhone you won’t be able to use the onboard speaker for sound output. You must remove the MityMic then play back your recordings. (The Skype app has an option to enable the onboard speaker even when the mic is plugged in, so you could use MityMic for placing Skype calls. However most other apps do not have this function.)
    The above is from:
    http://touchmic.com/products-page/view-all-products/touchmic-mitymic---voice-rec ording-and-interview-mic/

  • How to unload externally loaded swf which contains 3D Carousel?

    Hello to all
    I am learning AS3 and have been taking on various tutorials found on the net. While learning about AS3 I came across a lesson on http://tutorials.flashmymind.com/2009/05/vertical-3d-carousel-with-actionscript-3-and-xml/ titled "Vertical 3D Carousel with AS3 and XML".
    I completed the tutorial and all worked fine so I then wanted to load the swf into a existing project. The loading of the swf goes fine and when I unload my loader it is removed but only visually as in my output panel in flash CS5 I get an error as follows
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at carousel_c_fla::MainTimeline/moveCarousel()
    this error repeats over and over again slowing my swf movie.
    So does this mean my main flash movie trying to still play / find my unloaded 3D Carousel?
    If so how do I unload remove all the AS3 that is trying to run from the 3D Carousel?
    I have included the AS3 below from the tutorial page and I understand that this is what I have to remove to "break free" from the 3D Carousel swf when it is unloaded. This is where I am stuck as my knowledge of AS3 is limited - Can you guys / girls help?
    //Import TweenMax
    import com.greensock.*;
    //The path to the XML file (use your own here)
    // old var from tutorial - var xmlPath:String = "http://tutorials.flashmymind.com/XML/carousel-menu.xml";
    var xmlPath:String = "carousel-menu.xml";
    //We'll store the loaded XML to this variable
    var xml:XML;
    //Create a loader and load the XML. Call the function "xmlLoaded" when done.
    var loader = new URLLoader();
    loader.load(new URLRequest(xmlPath));
    loader.addEventListener(Event.COMPLETE, xmlLoaded);
    //This function is called when the XML file is loaded
    function xmlLoaded(e:Event):void {
         //Make sure that we are not working with a null variable
         if ((e.target as URLLoader) != null ) {
              //Create a new XML object with the loaded XML data
              xml = new XML(loader.data);
              //Call the function that creates the menu
              createMenu();
    //We need to know how many items we have on the stage
    var numberOfItems:uint = 0;
    //This array will contain all the menu items
    var menuItems:Array = new Array();
    //Set the focal length
    var focalLength:Number = 350;
    //Set the vanishing point
    var vanishingPointX:Number = stage.stageWidth / 2;
    var vanishingPointY:Number = stage.stageHeight / 2;
    //We calculate the angleSpeed in the ENTER_FRAME listener
    var angleSpeed:Number = 0;
    //Radius of the circle
    var radius:Number = 128;
    //This function creates the menu
    function createMenu():void {
         //Get the number of menu items we will have
         numberOfItems = xml.items.item.length();
         //Calculate the angle difference between the menu items (in radians)
         var angleDifference:Number = Math.PI * (360 / numberOfItems) / 180;
         //We use a counter so we know how many menu items have been created
         var count:uint = 0;
         //Loop through all the <button></button> nodes in the XML
         for each (var item:XML in xml.items.item) {
              //Create a new menu item
              var menuItem:MenuItem = new MenuItem();
              //Calculate the starting angle for the menu item
              var startingAngle:Number = angleDifference * count;
              //Set a "currentAngle" attribute for the menu item
              menuItem.currentAngle = startingAngle;
              //Position the menu item
              menuItem.xpos3D = 0;
              menuItem.ypos3D = radius * Math.sin(startingAngle);
              menuItem.zpos3D = radius * Math.cos(startingAngle);
              //Calculate the scale ratio for the menu item (the further the item -> the smaller the scale ratio)
              var scaleRatio = focalLength/(focalLength + menuItem.zpos3D);
              //Scale the menu item according to the scale ratio
              menuItem.scaleX = menuItem.scaleY = scaleRatio;
              //Position the menu item to the stage (from 3D to 2D coordinates)
              menuItem.x = vanishingPointX + menuItem.xpos3D * scaleRatio;
              menuItem.y = vanishingPointY + menuItem.ypos3D * scaleRatio;
              //Add a text to the menu item
              menuItem.menuText.text = item.label;
              //Add a "linkTo" variable for the URL
              menuItem.linkTo = item.linkTo;
              //We don't want the text field to catch mouse events
              menuItem.mouseChildren = false;
              //Assign MOUSE_OVER, MOUSE_OUT and CLICK listeners for the menu item
              menuItem.addEventListener(MouseEvent.MOUSE_OVER, mouseOverItem);
              menuItem.addEventListener(MouseEvent.MOUSE_OUT, mouseOutItem);
              menuItem.addEventListener(MouseEvent.CLICK, itemClicked);
              //Add the menu item to the menu items array
              menuItems.push(menuItem);
              //Add the menu item to the stage
              addChild(menuItem);
              //Assign an initial alpha
              menuItem.alpha = 0.3;
              //Add some blur to the item
              TweenMax.to(menuItem,0, {blurFilter:{blurX:1, blurY:1}});
              //Update the count
              count++;
    //Add an ENTER_FRAME listener for the animation
    addEventListener(Event.ENTER_FRAME, moveCarousel);
    //This function is called in each frame
    function moveCarousel(e:Event):void {
         //Calculate the angle speed according to mouseY position
         angleSpeed = (mouseY - stage.stageHeight / 2) * 0.0002;
         //Loop through the menu items
         for (var i:uint = 0; i < menuItems.length; i++) {
              //Store the menu item to a local variable
              var menuItem:MenuItem = menuItems[i] as MenuItem;
              //Update the current angle of the item
              menuItem.currentAngle += angleSpeed;
              //Calculate a scale ratio
              var scaleRatio = focalLength/(focalLength + menuItem.zpos3D);
              //Scale the item according to the scale ratio
              menuItem.scaleX=menuItem.scaleY=scaleRatio;
              //Set new 3D coordinates
              menuItem.xpos3D=0;
              menuItem.ypos3D=radius*Math.sin(menuItem.currentAngle);
              menuItem.zpos3D=radius*Math.cos(menuItem.currentAngle);
              //Update the item's coordinates.
              menuItem.x=vanishingPointX+menuItem.xpos3D*scaleRatio;
              menuItem.y=vanishingPointY+menuItem.ypos3D*scaleRatio;
         //Call the function that sorts the items so they overlap each other correctly
         sortZ();
    //This function sorts the items so they overlap each other correctly
    function sortZ():void {
         //Sort the array so that the item which has the highest
         //z position (= furthest away) is first in the array
         menuItems.sortOn("zpos3D", Array.NUMERIC | Array.DESCENDING);
         //Set new child indexes for the item
         for (var i:uint = 0; i < menuItems.length; i++) {
              setChildIndex(menuItems[i], i);
    //This function is called when a mouse is over an item
    function mouseOverItem(e:Event):void {
         //Tween the item's properties
         TweenMax.to(e.target, 0.1, {alpha: 1, glowFilter:{color:0xffffff, alpha:1, blurX:60, blurY:60},blurFilter:{blurX:0, blurY:0}});
    //This function is called when a mouse is out of an item
    function mouseOutItem(e:Event):void {
         //Tween the item's properties
         TweenMax.to(e.target, 1, {alpha: 0.3, glowFilter:{color:0xffffff, alpha:1, blurX:0, blurY:0},blurFilter:{blurX:1, blurY:1}});
    //This function is called when an item is clicked
    function itemClicked(e:Event):void {
         //Navigate to the URL that's assigned to the menu item
         var urlRequest:URLRequest=new URLRequest(e.target.linkTo);
         navigateToURL(urlRequest);

    Hi Ned thanks for the reply,
    Ok so I have a button in my main movie that loads the external swf
    stop();
    var my_loader:Loader = new Loader();
    var my_btn:Button = new Button();
    var my_pb:ProgressBar = new ProgressBar();
    my_pb.source = my_loader.contentLoaderInfo;
    my_btn.addEventListener(MouseEvent.CLICK,startLoading);
    function startLoading(e:MouseEvent):void{
    my_loader.load(new URLRequest("carousel.swf"));
    addChild(my_pb);
    my_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, finishloading);
    function finishloading(e:Event):void{
    addChild(my_loader);
    my_loader.addEventListener("killMe",
    killLoadedClip);
    removeChild(my_pb);
    function killLoadedClip(e:Event):void {
    my_loader.removeEventListener("killMe",
    killLoadedClip);
    my_loader.unloadAndStop();
    removeChild(my_loader);
    Then I have a button in my loaded swf that closes the loader
    This is spread over 2 frames
    Frame1
    function closeIt(e:MouseEvent):void {
    parent.dispatchEvent(newEvent("killMe"));
    Frame 2
    back_btn.addEventListener(MouseEvent.CLICK, closeIt);
    Frame 2 also holds all the code for the carousel
    Thanks for your time and help in advance people ; )

  • Setting External Loaded SWF dimension

    hi guys...,
    i'll be straight to point,well i'm now working on a project using action  script 3 now what i'm trying to make is a Main SWF that load whatever  other swf into it the tricky thing is that i used 1 xml document read  the external swf source and it's setting(such as it's x,y position and  it's width and height) and i'm having problem setting the loaded swf width and  height btw it's an desktop application and not a website application.,
    here is my code:
    //variable list
    var swfList:XMLList; //hold all the zone list from the xml
    var totalZone:uint; //total of zone there is in the xml
    var myURLLoader:URLLoader = new URLLoader();
    var swf:Movie Clip;//hold the loaded swf
    var swfLoader:Loader = new Loader();//loader instance used to load the external swf
    var myCounter:uint = 0;
    //load the xml file
    myURLLoader.load(new URLRequest('myXMLFile.xml'));
    myURLLoader.addEventListener(Event.COMPLETE, processXML, false, 0, true);
    function processXML(e:Event):void
        removeEventListener(Event.COMPLETE, processXML);
        XML.ignoreWhitespace= true;
        var myXML:XML = new XML(e.target.data);
        swfList = myXML.SWF;
        totalSWF = myXML.SWF.length();
        loadSWF();
    function loadSWF():void
        swfLoader.contentLoaderInfo.addEventListener(Event.INIT, swfSetting);
        swfLoader.load(new URLRequest(swfList[myCounter].@source));
    function swfSetting(e:Event):void
        //making new instance of sprite to hold the new loaded swf
        swf = new MovieClip();
        //casting the loader content into a movieclip
        swf = e.target.content;
        addChild(swf);
        swfLoader.unload();
        swf.x = swfList[myCounter].@left;
        swf.y = swfList[myCounter].@top;
        swf.width= swfList[myCounter].@width;
        swf.height= swfList[myCounter].@height;
        addChild(swf);
        if(myCounter < totalSWF)
            myCounter++;
            trace('myCounter: ' + myCounter );
            loadSWF();
    and here is what the result ( it make the width and height of the loaded swf to 0):
    swfLoader.contentLoaderInfo.width : 320
    swfLoader.contentLoaderInfo.height : 240
    module: MyVideo/flvplayer.swf
    x:0
    x container:0
    y:0
    y container:0
    xml width:550
    width container:0
    xml height:400
    height container:0
    myCounter: 1
    swfLoader.contentLoaderInfo.width : 550
    swfLoader.contentLoaderInfo.height : 400
    module: AnalogueClock.swf
    x:50
    x container:50
    y:0
    y container:0
    xml width:250
    width container:250
    xml height:200
    height container:200
    myCounter: 2
    swfLoader.contentLoaderInfo.width : 800
    swfLoader.contentLoaderInfo.height : 30
    module: MyNewsticker/newsticker.swf
    x:0
    x container:0
    y:0
    y container:0
    xml width:300
    width container:0
    xml height:50
    height container:0
    most of my loaded swf beside the analouge clock is full action script code and in case of the analouge clock it is a swf that has a movie clip on it's stage (the other are fully created from action script 3.0)
    please do help me..,
    cause i'm already really desperate and going crazy by this problem..,

    sorry i copied the code from the other swf i used to do try and error test..,
    basically the container is the same as swf varibale
    here the code so you would'nt get confused:
    //variable list
    var swfList:XMLList; //hold all the zone list from the xml
    var totalZone:uint; //total of zone there is in the xml
    var myURLLoader:URLLoader = new URLLoader();
    var swf:Movie Clip;//hold the loaded swf
    var swfLoader:Loader = new Loader();//loader instance used to load the external swf
    var myCounter:uint = 0;
    //load the xml file
    myURLLoader.load(new URLRequest('myXMLFile.xml'));
    myURLLoader.addEventListener(Event.COMPLETE, processXML, false, 0, true);
    function processXML(e:Event):void
        removeEventListener(Event.COMPLETE, processXML);
        XML.ignoreWhitespace= true;
        var myXML:XML = new XML(e.target.data);
        swfList = myXML.SWF;
        totalSWF = myXML.SWF.length();
        loadSWF();
    function loadSWF():void
        swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfSetting);
        swfLoader.load(new URLRequest(swfList[myCounter].@source));
    function swfSetting(e:Event):void
        //making new instance of sprite to hold the new loaded swf
        swf = new MovieClip();
        //casting the loader content into a movieclip
        swf = e.target.content;
        addChild(swf);
        swfLoader.unload();
        swf.x = swfList[myCounter].@left;
        swf.y = swfList[myCounter].@top;
        swf.width= swfList[myCounter].@width;
        swf.height= swfList[myCounter].@height;
        addChild(swf);
        if(myCounter < totalSWF)
            myCounter++;
            trace('myCounter: ' + myCounter );
            loadSWF();
    well in my code i did cast the loader into a movie clip and then set it's width and heigt,right???
    wouldn't it just give me the same result??
    if it's not can u describe what u mean in more detail??
    some example about accessing the loader content would be really appreciated

  • Color external loaded swf in AS3 Help Urgent!

    Hi i have loaded swf from an external path using the following command.
    var cviewer:Loader=new Loader();
    var curlRequest:URLRequest=new URLRequest("clipArts/"+evt.target.name);
    So this is the scenario.
    Suppose say i load Movie1.swf
    I have three movie clips inside Movie1.swf called step0, step1, step2
    I need to change the color of step0, step1 and step 2 from the parent flash file which loads movie1. All the inner movie clips color may be different from each other.
    I am able to change the color of the whole movie clip by using
    var colorInfo:ColorTransform = cviewer.transform.colorTransform;
    colorInfo.color=evt.target.selectedColor;
    cviewer.transform.colorTransform=colorInfo;
    But not of individual ones. I even tried cviewer.step0.transform.colortransform and other stuff to see if it would work. But nothing worked. Help at fastest would be deeply appreciated.
    Regards and thanks in advance.

    try:
    var colorInfo:ColorTransform = MovieClip(cviewer.content).step0.transform.colorTransform;
    colorInfo.color=evt.target.selectedColor;
    MovieClip(cviewer.content).step0.transform.colorTransform=colorInfo;

  • Getting Open MQ and Mule 2.0 work together

    Hi!
    I would like to ask some help on getting Open MQ work with Mule 2.0. I'm quite new to both technologies, and I can't get them to work together. Here is how I've tried so far:
    What I'm trying to achieve first, is that there are 2 queues in my open mq, and if something arrives in one queue, mule should get that from the queue and put it in the other queue.
    I've created a configuration file for mule:
    (sorry that it looks really crappy, for some reason, couldn't really get it to show nicely on this forum, however I edited it, it always made each line start on the left)
    <?xml version="1.0" encoding="UTF-8"?>
    <mule xmlns="http://www.mulesource.org/schema/mule/core/2.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:jms="http://www.mulesource.org/schema/mule/jms/2.0"
    xmlns:spring="http://www.springframework.org/schema/beans">
    <!-- Uncomment to download xsds from web instead of using the Eclipse XML Catalog.
    xsi:schemaLocation="
    http://www.mulesource.org/schema/mule/core/2.0 http://www.mulesource.org/schema/mule/core/2.0/mule.xsd
    http://www.mulesource.org/schema/mule/jms/2.0 http://www.mulesource.org/schema/mule/jms/2.0/mule-jms.xsd
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
    -->
    <model name="JMSProba">
    <service name="JMS">
    <inbound>
    <jms:inbound-endpoint queue="MyQueue" synchronous="false"/>
    </inbound>
    <component class="disp.Dispatcher"/>
    <outbound>
    <outbound-pass-through-router>
    <jms:outbound-endpoint queue="out"/>
    </outbound-pass-through-router>
    </outbound>
    </service>
    </model>
    </mule>
    The service component class pretty much doesn't do anything for now, but is like this:
    package disp;
    public class Dispatcher {
    public Object dispatch(Object o){
    return o;
    I'm using the Mule IDE, and unfortunately I can't even test if this works or not, because when it starts the mule server, I get an error, which I don't understand why I get:
    org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'mule'.
    I really have no idea why I get this exception. Anyone knows what I did wrong in my configuration file? Also, can anyone tell me, if what I'm trying to do looks something like this, or I'm doing it all wrong? If anyone can help me get this all to work, I'd really appreciate it.
    I haven't seen any info on how to configure the Open MQ Connector, so I'm not sure how to do it. I've tried this:
    <connector name="jmsConnector" className="org.mule.providers.jms.JmsConnector">
    <properties>
    <property name="specification" value="1.1"/>
    <property name="connectionFactoryJndiName" value="ConnectionFactory"/>
    <property name="jndiInitialFactory" value="com.sun.jndi.fscontext.RefFSContextFactory"/>
    <property name="jndiProviderUrl" value="file:///C:/Temp"/>
    <property name="jndiDestinations" value="true"/>
    <property name="forceJndiDestinations" value="true"/>
    <map name="connectionFactoryProperties">
    <property name="brokerURL" value="vm://localhost:7676"/>
    </map>
    </properties>
    </connector>
    but it doesn't work, the error tooltip says "Invalid content was found starting with element 'connector'", and then the next error is at the first 'property' element, saying "Invalid content was found starting with element 'property'. One of '{"http://www.springframework.org/schema/beans":entry}' is expected. "
    Can someone please also help me with the connector creation? Since this had errors, I had to cut it out when trying to run my config file, that's why you can't see it in it.
    My next step (if this would work) would be to use this on 2 different JMS's - Mule gets the message from a queue from a certain JMS, then sends it to the queue of a different JMS. Of course I can't start working on this until my first task works, but I was wondering, how to create 2 different connectors and then use different connector for each of the endpoints.
    Thanks for any help in advance!
    Edited by: kissziszi on Jul 25, 2008 3:06 AM
    Edited by: kissziszi on Jul 25, 2008 3:09 AM

    Hi Pawan!
    Thank you a lot for your help! Unfortunately it's still not working. Here is my current config file:
    <?xml version="1.0" encoding="UTF-8"?>
    <mule xmlns="http://www.mulesource.org/schema/mule/core/2.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:spring="http://www.springframework.org/schema/beans"
    xmlns:stdio="http://www.mulesource.org/schema/mule/stdio/2.0"
    xmlns:jms="http://www.mulesource.org/schema/mule/jms/2.0"
    xmlns:vm="http://www.mulesource.org/schema/mule/vm/2.0"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
    http://www.mulesource.org/schema/mule/core/2.0 http://www.mulesource.org/schema/mule/core/2.0/mule.xsd
    http://www.mulesource.org/schema/mule/jms/2.0 http://www.mulesource.org/schema/mule/jms/2.0/mule-jms.xsd
    http://www.mulesource.org/schema/mule/stdio/2.0 http://www.mulesource.org/schema/mule/stdio/2.0/mule-stdio.xsd
    http://www.mulesource.org/schema/mule/vm/2.0 http://www.mulesource.org/schema/mule/vm/2.0/mule-vm.xsd">
    <model name="JMSProba">
    <service name="JMS">
    <inbound>
    <jms:inbound-endpoint name="MyQueue" address="jms://queue:MyQueue" synchronous="false" connector-ref="jmsConnector"/>
    </inbound>
    <component class="disp.Dispatcher"/>
    <outbound>
    <outbound-pass-through-router>
    <jms:outbound-endpoint name="out" address="jms://queue:out" connector-ref="jmsConnector"/>
    </outbound-pass-through-router>
    </outbound>
    </service>
    </model>
    <jms:connector name="jmsConnector" connectionFactory-ref="openMQ"
    createMultipleTransactedReceivers="false"
    numberOfConcurrentTransactedReceivers="1" specification="1.1">
    <spring:property name="jmsSupport" ref="jndiJmsSupport" />
    </jms:connector>
    <spring:beans>
    <spring:bean name="jndiJmsSupport" class="org.mule.transport.jms.Jms102bSupport">
    <spring:constructor-arg ref="jmsConnector" />
    </spring:bean>
    <spring:bean name="context" class="javax.naming.InitialContext">
    <spring:constructor-arg type="java.util.Hashtable">
    <spring:props>
    <spring:prop key="java.naming.factory.initial">com.sun.jndi.fscontext.RefFSContextFactory</spring:prop>
    <spring:prop key="java.naming.provider.url">file:///F:/Info/MessageQueue/mq</spring:prop>
    </spring:props>
    </spring:constructor-arg>
    </spring:bean>
    <spring:bean name="openMQ" class="org.springframework.jndi.JndiObjectFactoryBean">
    <spring:property name="jndiName" value="MyQueueConnectionFactory" />
    <spring:property name="jndiEnvironment">
    <spring:props>
    <spring:prop key="java.naming.factory.initial">com.sun.jndi.fscontext.RefFSContextFactory</spring:prop>
    <spring:prop key="specifications">1.1</spring:prop>
    <spring:prop key="java.naming.provider.url">file:///C:/Temp</spring:prop>
    </spring:props>
    </spring:property>
    </spring:bean>
    </spring:beans>
    </mule>
    I get an exception:
    A Fatal error has occurred while the server was running:
    * Cannot convert value of type [javax.naming.Reference] to required type
    * [javax.jms.ConnectionFactory] for property 'connectionFactory': no matching
    * editors or conversion strategy found (java.lang.IllegalArgumentException)
    or in more details:
    ERROR 2008-07-27 18:30:52,953 [main] org.mule.config.builders.AbstractConfigurationBuilder: Configuration with "org.mule.config.spring.SpringXmlConfigurationBuilder" failed.
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'JMS': Cannot create inner bean '(inner bean)' of type [org.mule.routing.inbound.DefaultInboundRouterCollection] while setting bean property 'inboundRouter'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of type [org.mule.config.spring.factories.InboundEndpointFactoryBean] while setting bean property 'endpoints' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsConnector': Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [javax.naming.Reference] to required type [javax.jms.ConnectionFactory] for property 'connectionFactory'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [javax.naming.Reference] to required type [javax.jms.ConnectionFactory] for property 'connectionFactory': no matching editors or conversion strategy found
    I have no idea why I get this exception :(
    There are a few things I don't understand in your config file though:
    -How come we don't have to specify the address where the broker is running? (like localhost:7676)
    -In the spring bean called "context", why do you specifiy the Open MQ installation directory? I mean, why do you have to specify it?
    -I don't understand everything in the file, so I might say something stupid now... but ... you have a spring bean called "context", and I don't see it used anywhere. Or do you have to have a spring bean called context? Or is this necessary at all?
    About the Open MQ admin tool. Am I correct in assuming, that all you have to do, is create a Broker (and add destination to it), and create an Object Store and add connection factory to it (and optionally physical destination too ... although this is not necessary because if you create a destination and you don't make physical destination for it, then by default it will be created for it). This is what I did with Open MQ tool.
    I was wondering if you could please give me your email address, would be easier to communicate over that, this forum seems a bit deserted anyway.
    Thanks in advance!
    Sziladi Zoltan

  • Remot Control For Digital@nywhere ATSC and Vista Don't Work Together Very Well

    I have a Digital@nywhere ATSC tuner card w/remote.
    On Windows XP, the remote worked ok. On Windows Vista, the remote works only some of the time.
    On Windos XP, the BDA drivers and utilities on the install disk loaded fine. Not so with Vista.
    On Vista, the utilities on the install disk seem to load fine, but the BDA drivers fail.
    Loading the Vista Digital@nywhere utilities gets the tuner card to work, but has no drivers for the remote. Leaving me to load the utilities from the install disk, and and the BDA drivers from the Vista Digital@nywhere files. A rather tedious process, with the remote only functioning sometimes.
    I have tried every trick I can think of to get the remote control and Vista to work together, to no avail. I'm stumped.
    I'd rather not go out and buy a new tuner card, when the Digital@nywhere ATSC tuner card works fine on Vista. I'd just like to have a remote control that works fine too. But I don't.
    I hope an answer can be found for this problem.
    If I haven't been clear enough, just ask, and I'll try to explain things better.
    Thanks for any help that anyone can give.

    Are you using Media Center in Vista? If so, buy a Media Center remote, should work with no problems.

Maybe you are looking for

  • Condition Based Interface Determination in ICO (AAE) - PI 7.1 EHP1

    Hi Friends, We have PI 7.1 EHP1 - SP 04. In our scenario, we have 1 outbound interface and 2 inbound interface. Based on condition, it needs to select the first inbound interface or second inbound interface. In the normal configuration, we are able t

  • Calling an oracle stored procedure with output parameter

    Hi, I am trying to execute a procedure with 2 input and 1 output parameters by using SQLQuery. I tried each mode (Command, FixedQuery & FixedQueryWithOutput) with following statements. call cm_test_prod([Param.1],[Param.2],[Param.3]) Error:"missing e

  • Exclude a Resource from scope of control of a Admin role??????

    Hi, I need to exclude a resource from the scope of ADMINROLE for a particular form. This i m able to achive by Admin role form. but i need to do this in backed .(not through that form). I am able to create Admin Role in a workflow .I m even able to a

  • J2ME SDK 3.0.5 Plugin Causing Problems in IDE

    Hello, After I installed the new JAVA ME Plugin for 3.0.5 SDK and integrated with my Netbeans IDE, I cannot run my other projects that is not JavaME based. It gives an error saying the execution directory is wrong. It complains "work is not a valid d

  • Licence Management

    Here is the question: I have a customer that has hundred od users. He need to mantain user licences. He need some reports: 1) A list of all users (it's easy, I can read OUSR table) 2) A list of users that have some type of licences associated 3) A li