Flash and Flex swc... and a little bit of Blazeds

i have created a flex library project that connects to a BlazeDS endpoint for consumer/producer communication... i have used action script rather than configure the config.xml file on the server...  heres a snip of the code...
channelSet = new ChannelSet();
var channel:AMFChannel = new AMFChannel("my-amf", "http://localhost:8400/test/messagebroker/amf");
channelSet.addChannel(channel);
consumer = new Consumer();
consumer.channelSet = channelSet;
consumer.destination = "myEndPoint";
consumer.subscribe();
consumer.addEventListener(MessageEvent.MESSAGE, test);
producer = new Producer();
producer.channelSet = channelSet;
producer.destination = "myEndPoint";
producer.addEventListener(MessageAckEvent.ACKNOWLEDGE,  acknowledgeHandler);
producer.addEventListener(MessageFaultEvent.FAULT, faultHandler);
public function SendMessage(sendMe:String):void {
try{
     trace("sending message" + sendMe);
     var message:AsyncMessage = new AsyncMessage();
     message.body = sendMe;
     producer.send(message);
catch(error:Error){
     trace(error.message);
private function faultHandler(event:MessageFaultEvent):void{
      trace("not sent ---> " + event.message);
so i create my swc library... import it to a test flex app... and every thing works as it should.... which is great
when i import this swc to  flash cs4  i get an interesting error... i get a   MessageFaultEvent from the producer who cant seem to send a message to the endpoint....
(mx.messaging.messages::ErrorMessage)#0
  body = (Object)#1
  clientId = (null)
  correlationId = "5F943F73-B844-333C-4765-F9A0A38B471B"
  destination = ""
  extendedData = (null)
  faultCode = "Client.Error.MessageSend"
  faultDetail = "Channel.Connect.Failed error null url: 'null'"
  faultString = (null)
  headers = (Object)#2
  messageId = "B1821A77-2470-011A-1C73-F9A207DE3764"
  rootCause = (mx.messaging.events::ChannelFaultEvent)#3
    bubbles = false
    cancelable = false
    channel = (mx.messaging.channels::AMFChannel)#4
      authenticated = false
      channelSets = (Array)#5
      connected = false
      connectTimeout = -1
      enableSmallMessages = true
      endpoint = (null)
      failoverURIs = (Array)#6
      id = "my-amf"
      mpiEnabled = false
      netConnection = (flash.net::NetConnection)#7
        client = (mx.messaging.channels::AMFChannel)#4
        connected = true
        connectedProxyType = "none"
        farID = ""
        farNonce = ""
        maxPeerConnections = 8
        nearID = "8d7005992325e80ac48f45e4dff2ce1d06751cfdd56a4e68bacec5796d8ef371"
        nearNonce = ""
        objectEncoding = 3
        protocol = "rtmp"
        proxyType = "none"
        unconnectedPeerStreams = (Array)#8
        uri = "null"
        usingTLS = false
      piggybackingEnabled = false
      polling = false
      pollingEnabled = true
      pollingInterval = 3000
      protocol = "http"
      reconnecting = false
      recordMessageSizes = false
      recordMessageTimes = false
      requestTimeout = -1
      uri = "http://localhost:8400/test/messagebroker/amf"
      url = "http://localhost:8400/test/messagebroker/amf"
      useSmallMessages = false
    channelId = "my-amf"
    connected = false
    currentTarget = (mx.messaging.channels::AMFChannel)#4
    eventPhase = 2
    faultCode = "Channel.Connect.Failed"
    faultDetail = "null url: 'null'"
    faultString = "error"
    reconnecting = false
    rejected = false
    rootCause = (null)
    target = (mx.messaging.channels::AMFChannel)#4
    type = "channelFault"
  timestamp = 0
  timeToLive = 0
seems like a url error?
anybody?
thanks

I usually follow these steps from Gyroplast to get my sound working
1. Run pacman -S {alsa-driver,alsa-lib,alsa-utils,alsa-oss}, in this order.
2. run depmod -a to make the newly installed modules known for dependency checks.
3. Identify which module to use for my soundcard; http://www.alsa-project.org very quickly told me that I'd need to load  snd-emu10k1.
4. Add this to your /etc/modules.conf:
# Sound (ALSA)
alias char-major-116 snd
alias snd-card-0 snd-emu10k1
post-install snd-emu10k1 /usr/sbin/alsactl restore
pre-remove snd-emu10k1 /usr/sbin/alsactl store
alias sound-slot-0 snd-card-0
# Soundcard 1 (OSS Emulation)
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
# Sound lookup entries for devfs support
alias /dev/dsp sound-service-0-3
alias /dev/sequencer sound-service-0-1
alias /dev/mixer sound-service-0-0
5. Run depmod -a again. Kills the warning.
6. Edit your /etc/devfsd.conf and add this:
# Allow access to sound devices for group "audio"
REGISTER ^sound/.* PERMISSIONS root.audio 0660
REGISTER ^snd/.* PERMISSIONS root.audio 0660
# Load ALSA sound when needed
LOOKUP snd MODLOAD
LOOKUP dsp MODLOAD
LOOKUP mixer MODLOAD
LOOKUP sequencer MODLOAD
note:  make sure you have an "audio" group and your userid is added to it!
7. That's nearly it. Now open your /etc/rc.conf and add  snd-emu10k1 to the MODULES array.
8. Reboot to test, run alsamixer afterwards to set the volume, and try out any sound application. Everything should run just fine, and mixer settings are automatically preserved
Orginal post can be found here
http://bbs.archlinux.org/viewtopic.php? … ounds+card

Similar Messages

  • I've recently spilt a little bit of water on my Macbook Pro 13" and some of it went into the keyboard, the first thing I did was get paper towels and dry it off, everything is except now the speakers sound different, and a little bit lower in volume

    I've recently spilt a little bit of water on my Macbook Pro 13" and some of it went into the keyboard, the first thing I did was get paper towels and dry it off, everything is except now the speakers sound different, and a little bit lower in volume, basically the speakers just sound weird, there's no word to describe it, I can't really hear any bass from my speakers

    Liquid spills, why your MacBook chassis is a one-way valve for spills
    After a substantial spill many people will turn their notebook upside down and shake it, not only does this not work, but it spreads liquid havoc throughout your machine and makes things often as bad as possible.
    The keyboard itself acts like a one way valve in the case of a substantial liquid spill. While liquid pours into the bottom chassis easy, it does not come out easily at all, and in the case of any spill, most of it will not come out by turning it upside down. Disconnect all power and contact Apple for diagnostics and repair.
    Do not attempt to, after a spill, ‘dry out your MacBook’ and test it
    After a spill most people invariably try to “dry out” their notebook by various methods, including hair dryers and otherwise. This both does not work, and after a substantial spill of any magnitude, even if the liquid was water, residue is left behind.
    There are additionally many very tight places inside your notebook where liquids will linger for a very long time, and cause corrosion or worse.
    Immediately unplug your notebook and contact Apple for in shop diagnostics and parts replacement.
    In the case of very minor spills people will “dry out” their notebook and feel success that their notebook is working ok, however invariably in nearly all instances after 4-14 days an error / fault pops up and is usually followed by more.
    In case of a spill, damage estimates are impossible,.....anything can be fixed, without question.......the question is cost.
    contact Apple for in shop diagnostics and cost estimation ....possible parts replacement.  

  • When i scrolling down/up in safari the display gets brighter and blurs little bit!(macbook pro 2012, 3days old)

    when i scrolling down/up in safari and firefox the display gets brighter (for instance when the screen and texts in a page is blue it gets light blue and little blurs by scrolling) and when i stop scrolling the screen gets plain.

    If it is only blurring on the words and not the stationary dock then it is because the screen does not have a great response time. 

  • Integrating Flash and Flex

    Hello,
    I am new to Flex but an experienced programmer. I have a Flash movie that has been saved as an .swc file. This movie shows doors open and close in response to real time events obtained through a messaging service. I would like to be able to place this movie into a flex applicaiton so that I can respond to these events. My question is, is it even possible to interact with a Flash movie clip in Flex? I was assuming that this was the whole point of Flex (Flash Builder). Am I wrong about that? Are Flex and Flash two completely different and incompatible products?

    https://iamjosh.wordpress.com/2008/04/09/embedding-flash-in-flex/
    Yep. You have the right idea. Flex is a framework (targeted at developers) for developing Flash applications.

  • AS Library for both Flash and Flex

    Hi all,
    I want to create an action script library that i can use with
    both flash and flex. i understand how to do it if i want to just
    use it in flex, but i also want it to compile down in to an swf or
    whatever so i can use the functions in flash. i tried creating an
    action script library, but it requires me to specify a 'runnable
    application file.' which doesn't make much sense, since i just want
    a class library.

    Found the answer (sort of). it's only partially possible. The
    best way would just to edit the as files in flex builder and not
    create an actual library (though this approach doesn't work if you
    need to distribute the library).
    In order to do create a library, you need to create a Flex
    Library Project in flex builder, not an Action Script Library. the
    action script library is a misnomer.
    then, when you build you have to jump through some hoops to
    get it to actually work, but creating a manifest file and setting
    "compute-digest=false" as a compiler option. for more info, check
    out the following blog post:
    http://timwalling.com/2007/10/22/compiling-flash-cs3-compatible-swcs-with-flex/

  • BlazeDS and Flash(not Flex or Air)

    Will BlazeDS work with Flash (not Flex or Air)?
    If so, are there any examples of this out on the web?
    Thanks,
    James

    Responded to this in the Configuration and Getting Started forum so am just reposting what I wrote there. . .
    Hi. I'm not sure anyone has done messaging between a Flash app and BlazeDS. I found some postings where people had gotten Flash apps to do web service calls using the rpc.swc from the Flex sdk. Not sure if these calls were going through BlazeDS as a proxy or directly to the target web service but I imagine that if they got the non-proxy case to work, the BlazeDS proxy case would work as well.
    The rpc.swc also contains the client side BlazeDS messaging code so based on what I have read it seems like a Flash app should be able to use rpc.swc to talk to BlazeDS to do messaging remote object calls etc. but not sure how hard it would be to get this working.
    This blog posting might help you.
    http://labs.qi-ideas.com/2007/12/25/using-flex-compiled-code-within-flash
    -Alex

  • Hello All... Back after a brief absence, things look a little bit different. I'm trying to take a 16 minute mini dv video and compress it for use on the web. I'm interested in any suggestions you may have on settings for the video and audio tracks. I'v

    Hello All...
    Back after a brief absence, things look a little bit different.
    I'm trying to take a 16 minute mini dv video and compress it for use on the web. I'm interested in any suggestions you may have on settings for the video and audio tracks. I've tried using Sorenson 3 (15 frames, key frames set to automatic, 320 x 240) for video and IMA 4:1 (mono) for audio. The resulting video looked great but the file size came in at about 255 Mb.
    Thanks!
    PowerMac G5 1.8 Dual   Mac OS X (10.4.3)  
    Message was edited by: Dan Foley

    Thank you for the replies.  Everyone was correct about the jack, interface, and phasing problems.  I have been unplugging my motu audio interface and then using headphones at work.  I have not changed any detailed audio output settings in logic.  When I read that the jack might be a problem I tried switching headphones.  This actually helped.  I am using dre-beats headphones and they seem to be having issues with the mac/jack-(the phasing/panning problems.  I can use these headphones with other devices but not the mac.  I have to use ipod ear buds and the phasing seems fixed.  Hopefully this information is helpful to someone else. 
    If anyone knows how to correct this issue please let me know its difficult to know what my final mixes are going to sound like and I have had to keep bouncing everything into i-tunes- sync to ipod and then listen in my car radio. 

  • I had a little bit of money on my iPad and i bought a app. That was 20 dollars now it won't let me download free apps or upgrade. Do I owe them the rest of the money? HELP ME!

    I had a little bit of money on my iPad and I brought a app. That was 20 dollars now it saying there is a billing problem. I think I owe them money but I don't know and it won't let me get free apps or upgrade apps. What should I do?

    Contact iTune Support
    http://www.apple.com/emea/support/itunes/contact.html

  • Whenever I go to a site or click anything, I always have to move my mouse for the page to load, why is this happening? (When I go to a site full of images, I move my mouse a little bit at a time and it loads one image at a time)

    Whenever I go to a site or click anything, I always have to move my mouse for the page to load, why is this happening? (When I go to a site full of images, I move my mouse a little bit at a time and it loads one image at a time)

    Hi, Tom.
    FYI: You've not stated which of your listed Macs is having the problem. However, the following may help in any case:
    1. Did you install Front Row using the Front Row hack on a Mac that did not ship from the factory with Front Row installed? If so, See my "Uninstalling the Front Row hack" FAQ. This has been known to cause a variety of problems, including the menu bar (Clock, Spotlight) issues you noted.
    2. If you did not install the Front Row Hack, an incompatible or corrupted Startup or Login Item may be partly to blame for the problems with the menu bar. My "Troubleshooting Startup and Login Items" FAQ can help you pin that down if such an item is causing the problem.
    3. As a general check, run the procedure specified in my "Resolving Disk, Permission, and Cache Corruption" FAQ. Perform the steps therein in the order specified.
    4. Re: Safari and Mail, if not sorted by any of the above, see also:• "Safari: Blank icon after installing Security Update 2006-002 v1.0."
    • My my "Multiple applications quit unexpectedly or fail to launch" FAQ
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • I dont know why the battery life of my iphone 4 is so low ! i really want to know how many hours i'll have if it's on standby. And how many hours if i use it normally for music and facebook (sometimes a little bit games)

    i dont know why the battery life of my iphone 4 is so low ! i really want to know how many hours i'll have if it's on standby. And how many hours if i use it normally for music and facebook (sometimes a little bit games) !!!

    to enhance your battery life, keep screen display to minimum, set screen lock automatically after 1 min, select internet notifications to off.

  • Posing a question for those well versed in flash and flex

    I would like to start an off-line communication chat with those of you who are well versed in Flash and Flex.
    I've worked with Cold Fusion but I am not up to date on all the technologies available.  This seems like the perfect forum for this question.
    I simply want to build an application (web or desktop is unknown) in which a person can learn a foreign language, in this case English.
    I need some technical advice as to whether Flash, Flex, or a combination of technologies (Cold Fusion for server side functionality) is the best choice for this application.  I do not understand the technical aspects of Flash or Flex in building applications so I need the advice of you experts.
    As with most foreign language textbooks, audio, or foreign language video training, the material is not interesting, not pertinent to daily life, and is great for late night insomnia.  I've never seen any type of foreign language training that is interesting, fun, or uses current events as part of the curriculum.
    I would like to illustrate my idea with an example.  I want to use an existing English beginners textbook (for kids), scan the images in the textbook, store the content (rules of grammar) in a database and store example sentences in a database.
    I would like to record basic audio sentences from the textbook (Do you know tomorrow's weather), incorporate some animation (baseball player hitting a home run), incorporate some basic video (purchasing an item at the grocery store), add a quiz, test question or puzzles, etc..
    In addition, since this is a classroom setting and the kids are split into groups, I would like to store a seating chart with the kids names and pictures in a database.  After the first segment is finished (e.g. purchasing a toy at the store) the kids next perform an activty.  I want to use a combination of audio, video, and animation to explain the activity, give instructions, split the class into groups,and perform the activity.
    As I mentioned before, I would like to start an off-line discusion for those of you who are willing to share some of you knowledge and experience with both Flash and Flex.  Since you are extremely busy, maybe you might be able to point me in the right direction.
    Hopefully, some of you can provide some sound technical advice.
    Thanks in advance
    Michael Poplawski

    This is an abitious project even for some-one well versed in flex/flash, i have to give you points for outstanding courage on this .
    You need to cover quite a few areas in a project like this both for the client and the back end, you need a strong understanding of animation(either through code or the flash timeline), data parsing, logic trees for the quiz/test elements and a lot more before the first line of code would be written.
    In Australia there are already a few companies using flex for online educational applications and at least 1 state educational Authority. A search on the internet will find several sites pertaining to flash/flex based online education software and this would be a starting point to give you an idea of the strength flex has in this area.
    Beyond this it is not the sort of project that 'help' would be readily available for unless it was relating to very specific issues you could readily define. Also this is not the best forum to request this type of help as the forum is more about testing a beta product. I am sure that if you start learning about flex and have trouble understanding different aspects of how things work there will be plenty of support from the flex community.
    Message was edited by: David_F57
    by forum I don't mean the whole forum just this branch.

  • I dropped my iPhone and i tried to turn it on but it only comes on at curtain times. And it turns back off when I drop it just a little bit. Sometimes it takes like three days to turn back on. How do I get it to work regularly again?? Please help!!!

    I dropped my iPhone and i tried to turn it on but it only comes on at curtain times. And it turns back off when I drop it just a little bit. Sometimes it takes like three days to turn back on. How do I get it to work regularly again?? Please help!!!

    Seems like there is some physical damage causing an intermittent issue of the iPhone being unable to power on.
    You could try a reset:
    - hold the home button and sleep/wake button down at the same time
    - the iphone will turn off(keep holding) then when the Apple logo appears release both buttons
    If the reset fails I would suggest next time it powers on to try and back it up to either iTunes/iCloud then you can try a restore to factory settings or just back up and book an appointment at an Apple Store to have the iPhone evaluated.
    All the best

  • TS3148 A grey progress bar will appear and will load for a little bit and will shut off, what do I do?

    On my Mac book pro, a grey progress bar will appear for a
    Little bit and the computer will shut down.
    What do I do?

    Startup - Gray, Blue or White screen at boot, w/spinner/progress bar
    Startup - Gray Screen
    Startup Issues - Resolve
    Startup Issues - Resolve (2)

  • Same fonts used in Flash and FLEX are different

    Fonts used in Flash and Flex differs in appearance even though they are same. It lacks the anti alias property and shows pixelated in flex even if it appears normal in flash. Please see attachment.

    There can be several reasons for that.  First make sure the font is embedded properly.  Rotate the object and see how it looks.  It is also possible that in Flex the fonts are being captured as a bitmap which can turn off AA at times.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • My screen cuts out half way of opening it but comes back on when i start to close and then very slowly and little bit at a time it stays on why

    my screen cuts out half way of opening it but comes back on when i start to close and then very slowly and little bit at a time it stays on why

    Could be a bad inverter cable, that's a classic symptom.

Maybe you are looking for

  • MDM Import manager data sources

    Hi experts, As far as I know MDM has ETL capabilities with MDM Import/syndicator tools that allows to load and extract data to and from MDM using files and relational databases as source/target. What different kind of data sources supports MDM Import

  • IOS 5 not saving Network configuration - bug

    Can't find a place to report this bug so I'm doing it here... 1. Upgraded both iphone 3GS and Ipad 2 to IOS 5 - all working correctly. 2. Changed Enteprise password (due to corporate policy). 3. Now both devices require manual configuration of WPA2 E

  • Bit depth question

    Hello, My audio device can sample up to 24-bit. When I create a 32-bit file in Audition 2.0 and record material using the audio device, Audition tells me the file is 32-bit, and it is indeed twice the size of an equivalent 16-bit file. But is it real

  • Corrupted date and string in oracle 8.1.6 (WL 8.1)

    i got problem inserting some date and varchar2 column in Oracle 8.1.6, using WL 8.1 (Oracle's Driver (Thin) Versions: 8.1.7,9.0.1,9.2.0) the date and varchar column are corrupted!

  • Can't download new album

    I prepurchased Avenged Sevenfold - Hail to the King Album ( Deluxe Edition) it was released on the 26th of August yet I can't download any of the songs in the album I dont have the option to and I can only hear the previews of them. They all say purc