Trouble comunicating from flex to swf, when the swf is embedded

i'm a newbie to flex/air so i'm hoping there is going to be a
simple answer to this problem. it's caused a massive headache!
i have been using a swfLoader to load a swf, then triggering
function calls within the swf from flex by using the following in
the script tag of my mxml
var mc:MovieClip = MovieClip(myMP3player.content);
mc.loadMP3Player("file:///"+path, artist, title);
where loadMP3Player is the function in the linked swf and
myMP3player is the id of the swfLoader.
this works great, no problems... but when i change the code
so that the swf is embedded, rather than loaded at runtime the code
above gives a
"ReferenceError:Error #1069 Property loadMP3Player not found"
error
when i try to trigger the function.
i have tried many different ways of referencing and embedding
the swf, all have the same result. i.e. swf loads fine and the flex
project compiles without errors, but i am unable to call the
function.
how do i reference the function in the swf when the swf is
embedded?
any help will be really appreciated.
btw: i need to embed the swf as i am distributing the
finished article as an air app.

Relief - well sort of.
I uninstalled the last Flash version (10.3 latest built that I downloaded a couple of days ago) on all my browsers.
Then I downloaded the older 10.2 and installed, and the problem was gone. I'm on MacOSX Lion, by the way.
So this must be a bug in the last flashplayer.
Cost me five hours and a bucket of sweat.
And from now on, I'll be pretty scared to give the flashplayer an update, that's a fact.
ottie

Similar Messages

  • TS2634 I cannot print from my ipad. The wireless is connected, I have no trouble printing from my computer. When the ipad looks for the printer it comes back with the message. "Air printer not found" What can I do to correct this? P S Ipad2 is only 1 mont

    I cannot print from my ipad. It is connected to the wireless okay. I have only had this ipad for a month and while I am not sure I think it has been okay to print before 2 days ago, when I tried to print and I got the message "Airprinter not found" Has anyone experienced this and if so what did you do about it? I have no trouble printing from my computer.

    ... Has anyone experienced this and if so what did you do about it?
    I rebooted my Airport Extreme.
    Try rebooting your router. Make sure its firmware is updated.

  • The printing of .pdf file from Project 2013 stops when the file name should be written. Project 2013 crashes. Does someone know what is wrong between Project 2013 and Adobe Acrobat 9?

    The printing of .pdf file from Project 2013 stops when the file name should be written. Project 2013 crashes. Does someone know what is wrong between Project 2013 and Adobe Acrobat 9?

    The Acrobat 9.x product family passed into "End of Support" mid-year of 2013.
    Acrobat 9 support of MS Project via PDFMaker stops with Office 2007.
    For Office 2013 support you must use Acrobat XI (11.0.1) or newer. 
    A good to have reference:
    https://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html
    Acrobat Pro and Standard DC are what are currently available for purchase. 
    Be well...

  • Fscommand when the swf inside html  table

    in the html file , when I put the swf file inside a table,
    the fscommands does not work.
    how do i make it work?
    should i make any changes in the html? ?
    notice: when the swf is out side the table , it is working
    fine.

    Found the solution to the problem.
    wrapped the entire HTML page till the JSF component ( panelGrid) under <f:verbatim>.
    something like this
    <f:verbatim>
    <table>
    <tr> <td>...</td>
    <td>
    </f:verbatim>
    <h:panelGrid> ... </h:panelGrid>
    <f:verbatim>
    </td>
    </table>
    </f:verbatim>

  • I loaded microsoft office on my mac airbook. I have no problem accessing it from my user. When the other log on user is clicked the software icons are not avauilable. How do I have any user on my airbook have access. i.e. my wife

    I loaded microsoft office on my mac airbook. I have no problem accessing it from my user. When the other log on user is clicked the software icons are not avauilable. How do I have any user on my airbook have access ? . i.e. my wife

    Greetings Niel
    I was able to copy down the Word, Excel and PowerPoint icons and access "however" when I exit out of the guest user it deletes them from the tool tray at the bottom.... I need them to stay there not have to copy them down..
    Can you still assist?

  • I cannot hear the audio from my Apple TV when the speakers connected to an airport express is selected from AirPlay

    I cannot hear the audio from my Apple TV when the speakers connected to an airport express is selected from AirPlay

    me-p wrote:
    Is it true?
    for the time being, yes.
    however, Airfoil can do what you want.

  • HT201269 I recently switched from 4S to Galaxy S4. I am not getting texts from iphone senders. When the message is sent it goes as a imessage. How do I fix this??

    I recently switched from 4S to Galaxy S4. I am not getting texts from iphone senders. When the message is sent it goes as a imessage. How do I fix this??

    Turn off iMessage on the iPhone as should have been done prior to switching devices.
    Settings > Messages > iMessage > OFF

  • After my last update I can't start up an other keynote presentation from a link (only when the other presentation is already open) I hope there will be an  fix soon.

    After my last update I can't start up an other keynote presentation from a link (only when the other presentation is already open) I hope there will be an  fix soon.
    I thought it was because of Lion but with snow leopard i have the same problem (On another Mac).
    Other solutions????

    To check the local network for some of the common configuration problems, launch Terminal.app and issue the following diagnostic command:
    sudo changeip -checkhostname
    That'll report some local configuration information and then either no errors detected and no changes required, or it'll point to whatever configuration errors or issues it might detect.  That doesn't catch everything, but it catches the common errors.
    FWIW, 192.168.0.0/24 and 192.168.1.0/24 are poor choices for the local network, as VPNs are based on IP routing and IP routing gets tangled when the same subnet is used on both ends of the VPN. 192.168.0.0/24 and 192.168.1.0/24 are near ubiquitous in home networks and coffee shops.

  • How to load images from client side when the swf is hosted on a server without uplaoding it to server?

    I'm trying to build a online image resize tool.
    problem i face are:
    1. I build a button that allow user to browse the file. Once
    file is selected, it doesnt show full path.
    2. lets say if it shows fullpath, but i try to load it into a
    movieclip, and it doesnt work because the swf file is located at
    the server and not the client's place.
    3. as far as i know, flash can only load images which is
    located in the same server or internet.
    4. if i use php, asp, cgi.. it can only allow me to 1st
    upload the image then resize later, but this is not wat i want.
    5. I need to 1st resize then upload later, because if i have
    100 and more photos taken from digicam, it's going to be very slow
    and heavy.
    What i have tested:
    1. upload "image3.jpg" into the same directory as the
    "viewer.swf", and it works.
    2. do not upload the swf to the server, but run locally from
    the user's computer and open "image3.jpg" and it works.
    3. upload the swf to the server and open "image3.jpg" from
    the user's computer and IT DOESN"T WORK!
    please help me out.
    Thanks~!

    use this php code.
    for flash php image prosses.
    flash file
    import flash.display.BitmapData;
    shaF.onPress = function() {
    output();
    function output() {
    snap = new BitmapData(mc._width, mc._height);
    snap.draw(mc);
    var pixels:Array = new Array();
    var w:Number = snap.width;
    var h:Number = snap.height;
    for (var a = 0; a<=w; a++) {
    for (var b = 0; b<=h; b++) {
    var tmp = snap.getPixel(a, b).toString(16);
    pixels.push(tmp);
    var output:LoadVars = new LoadVars();
    output.img = pixels.toString();
    output.height = h;
    output.width = w;
    output.send("show.php", "output", "POST");
    stop();
    PHP file (show.php)
    <?php
    $data = explode(",", $_POST['img']);
    $width = $_POST['width'];
    $height = $_POST['height'];
    $image=imagecreatetruecolor( $width ,$height );
    $background = imagecolorallocate( $image ,0 , 0 , 0 );
    //Copy pixels
    $i = 0;
    for($x=0; $x<=$width; $x++){
    for($y=0; $y<=$height; $y++){
    $int = hexdec($data[$i++]);
    $color = imagecolorallocate ($image, 0xFF & ($int
    >> 0x10), 0xFF & ($int >> 0x8), 0xFF & $int);
    imagesetpixel ( $image , $x , $y , $color );
    //$font = imageloadfont('arial.ttf');
    $font = 'arial.ttf';
    // $text_color = imagecolorallocate($image, 233, 14, 91);
    $black = imagecolorallocate($image, 0, 0, 0);
    //imagestring($image, $font, 5, 5, "A Simple Text String",
    $text_color);
    imagettftext($image, 12, 0, 10, 20, $black, $font, "A Simple
    Text String");
    //Output image and clean
    //header("Content-Type: image/png");
    imagepng($image,"finoy.png");
    imagedestroy( $image );
    ?>
    <html>
    <body>
    <img src="finoy.png" width="159" height="159" />
    </body>
    </html>

  • Playing a second swf when the first one's finished

    I have 2 swf files (the FLA's too) and want one to play then
    the second. - I'd add the second to the timeline of the first, but
    the second is a complete site and contains many referenced
    "gotoandplay" links which would all need changing. So....I really
    just need a way for the second swf to play after the first one's
    finished. I tried using the load external movie clip behaviour, but
    couldn't make it work. Can I use the first swf as a preloader
    without affecting the timeline on the main swf? I canspare a couple
    of frames at the start of the second movie for that, but don't know
    how to set it up - can anyone help?
    I also want the custom cursor to remain only in the first
    swf, and go back to default on the second.
    main (second) movie:
    http://mysticalbillyo.com
    first movie:
    http://mysticalbillyo.com/intro.swf

    I think you may want to create a 'master' loading swf, rather
    than loading the second movie into the first, and use the
    MovieClipLoader class to call and load new movies into the master
    container.
    Set up a new swf, that is the same size as the others. you'll
    set up a function on the first frame and then use that function to
    load all subsequent content into the master document. You can also
    use methods of the class to add things like preloaders and other
    event handlers. so for instance, at the last frame of the intro
    swf, you'd add a 'call' to the function in the master telling it to
    load the next movie in the sequence. I'll add the call you will
    need on the bottom of the code example below.
    PS. ------------------------------------
    I'm not one to solicit, however I have (awhile ago) developed
    a Component that you may be interested in for your site, although
    it has not been package and ready for distribution, it does
    function - called 'glitterMouse', and produces a twinkling mouse
    trail effect when you move the cursor, mush like the onRollOver
    animation that you'd painstakingly made (ouch) except that it use
    random twinkle generation at run-time, and has many property
    settings, like color, quantity, gravity, and so on. It might be a
    nice addition to your 'wand' cursor, and would not 'replace it' as
    it's not a 'cursor' but an effect generator.
    If you are interested, an example of it in action (although
    you can't purcahse it from there ... yet) can be seen on my site
    at: www.beechstudios.com goto the 'Flash' section, it's the first
    one listed.
    Just thought I'd throw that out there, sorry all, it just
    fits :]
    OK the code for you, add this to the first frame of the
    'master' swf, then add the code at the bottom to the end of the
    intro swf in the last frame.
    EDIT: this is AS2 code, to use AS3 code do something more
    like the methods as described above, yet I would still consider
    placing all content within a 'master' loading doc, and replaceing
    or removeing previously loaded children.

  • Does GarageBand have rhythms to choose from (like it has instruments to choose from) - background rhythms for when the melody line is being played

    Does GarageBand have rhythms to choose from?  Like it has instruments to choose from.  Examples: waltz, jazz, country, rock, rap, etc.  So when I'm playing my melody line I can choose a rhythm that will do a sort of background sound.  And that can be changed up sometimes (I hit a button on my electric keyboard when the rhythm is playing and it makes a sort of change up)

    So when I'm playing my melody line I can choose a rhythm that will do a sort of background sound.  And that can be changed up sometimes (I hit a button on my electric keyboard when the rhythm is playing and it makes a sort of change up)
    You build the rhythm track by dragging loops from the Loop Browser. The loops come in families, so you can vary  the pattern; there are basic loops and fills to make transitons. Loops will automatically adapt to the tempo and key of your project.
    You can filter the selection of loops in the loop browser by setting tags, like "relaxed" or cheerful, for example to find jazzy drumsets, set the loop browser like this:
    Regards
    Léonie

  • Booting from a USB drive when the System Volume has FileVault2 turned on

    Hi, I need to perform some maintenance on my primary volume. (10.9.1 on a mac Mini 2011).
    During installation, I enabled FileVault2 to protect my files.
    Now when I attempt to run DriveGenius or similar, the tools will demand to boot from a different volume to access the drive.
    However, when I boot the system, no other boot choice shows up, neither my Mavericks install USB stick nor my backup clone (created with SmartBackup 3.5.3, used to work on older versions before 10.9)
    When selecting "Start Volume" under systems preferences, no other volume will show as a choice, even when the volumes mentioned are attached.
    Please advise
    TIA

    Okay just clarifying my INTERNAL hard drive is most likely dead, I am looking to install and boot from my external hard drive. According to this AHT article
    Before you begin
    Important: If your Mac was released after June 2013, you will use Apple Diagnostics rather than Apple Hardware Test (AHT). See Using Apple Diagnostics for instructions.
    Consider doing some preliminary troubleshooting to determine if your issue is related to hardware. You can try to determine if the cause of your issue is related to hardware or software by following Isolating issues in Mac OS X. AHT can help determine which hardware component may be causing the issue.
    Before starting AHT, be sure to disconnect all external devices except the keyboard, mouse, display, and Ethernet adapter. Also disconnect any external optical drives.
    My goal is to find a way to boot from my external drive.
    "Won't matter, as long as you have the Disc.
    To make it botable, you will need to set the Partition Map Scheme (GUID Partition Table) and Format it (Mac OS Extended Journaled) before installing OS X."
    The disc or the drive? I assume you mean the drive but according to the document that should be removed.

  • After 10.8.2 update i can no longer wake my macbook from standby with keyboard when the lid is closed

    I just updated to 10.8.2 and now i can no longer wake my macbook froom standby when the lid is closed, it directly goes back to sleep
    steps to reproduce:
    1. attach secondary monitor and keyboard
    2. close lid
    3. wait 5 seconds for going to standby
    4. press any key on keyboard and type in user-credentials (notice how the 2nd monitor becomes the mainscreen)
    5. wait 5 seconds
    6. standby again
    side note:
    i also have sudo nvram boot-args="iog=0x0" enabled, because i like to not use the integrated screen when its attached to a secondary screen, but since it goes back to standby right after login this is pretty much pointless

    Same here, I think changed something in 10.8.2 that wrecked the "Open-MBP Clamshell Mode."  sigh

  • How do you exit a game from full screen mode when the game has crashed?

    Hey there
    There has seriously got to be a better way of exiting a crashed game than just turning the power off.
    I sometimes play Sims 3 on my mac, and we all know that Sims 3 is the most poorly coded game out there, so it crashes a lot. I don't understand how you can get out of the full screen without switching the machine off the wrong way.
    I have tried every single keyboard command people say to exit full screen mode, but they don't work when the game has crashed! In fact pressed every single button on the keyboard to try and exit, but nothing works.
    On Windows it's so simple, you press the start button on the keyboard, but on a mac it doesnt work.
    So any help to what i can do?
    Thanks

    Force quit just the game itself.
    Command + option + esc
    It's like control + alt + delete on Windows.

  • How to stop a2dp from taking playback priority when the IPhone is docked?

    I have seen many people having this problem since mid 2009 and it still hasn't been addressed.
    The problem is simple. When an IPhone is docked it shouldn't switch to a2dp for playback as soon as it is paired with something. In other words, playback priority should stay with the dock. Or at least there should be an option to disable a2dp playback when the IPhone is docked (or at the very least to disable it all together).
    This issue becomes a big problem when you dock an IPhone in a car to playback music, but still need to be able to send and receive calls through bluetooth.
    With the current firmware, priority is given to the which ever connection is made last. So when the car is turned on (and the bluetooth connection is made) a2dp takes over playback.
    What is anoying is that apple can solve this problem with a simple if-then-else in the firmware code.

    You may provide feedback to Apple regarding your issue at http://www.apple.com/feedback/iphone.html

Maybe you are looking for

  • Web Gallery Posting from Different iPhoto 7.0.1 Libraries

    I use the program iPhoto Library Manager so that I can have more than one iPhoto library -- one for cooking, one for the garden, one for a travel trip, etc. I've posted a couple galleries using the "Web Gallery" feature from my cooking iPhoto library

  • My wireless connection (MacBook Pro) keeps on randomly turning off every 2-3 minutes and each time I have to reset connection to my personal network

    Hey I just got a new MacBook Pro a few days ago and set it up on my home wireless network. But the Wi-Fi keeps on switching off and on randomly - literallly every 2 minutes or so - and I have to check my personal network again so I could get back onl

  • Empty Value set - PY_SRS_PAYROLL

    Hello All, A new responsibility was created (with application as Payables) and a PAYROLL report request was added to its request group (again a Payables group). The report uses the seeded PY_SRS_PAYROLL value set for one of its parameter. This is not

  • Tables for PO & GRN

    hi! all,          can anybody help me to fetch the data based on the combination of Purchase Order & Goods Receipt i,e from which table can fetch the Goods Receipt for the given Purchase Order. (for PO - EKKO , EKPO) Thanks and Regards, Nagulan

  • New e540 laptop and need help preinstalled windows

    I recently bought an E540 laptop and my question is how can I get it to run Windows 8? The box says it comes with preinstalled Windows 7 and 8 but not sure if I accidently pressed something on first boot up that caused it to start Windows 7. Is there