Get content of dynamically loaded movieclip

Hey,
After trying to no avail to get the totalframes of a dynamically loaded .swf in AS3 I've regressed to AS2.
Now I can add the clip and get the totalframes of the content, no problem.
THe problem is I cannot resize the content at all.
I have no idea how to target the loaded content.
Here's the code I'm using:
var myXML:XML = new XML();
var path:String;
var mcl:MovieClipLoader = new MovieClipLoader();
var mclm:MovieClipLoader = new MovieClipLoader();
var mclL:Object = new Object();
var frames:Number;
var i:Number = 0;
var mc:MovieClip = new MovieClip
myXML.ignoreWhite=true;
myXML.load("content.xml");
holder_mc._alpha = 0;
myXML.onLoad = function(xmlLoaded){
menu();
load();
mclL.onLoadComplete = function() {
          frames = (MovieClip(holder_mc)._totalframes);
          if (frames == 1) {
               image();
          else if (frames > 1) {
               clip();
load = function(){
     clearInterval(timer);
     path = myXML.firstChild.childNodes[i].childNodes[1].childNodes[0].nodeValue;
     mcl.loadClip(path, holder_mc);
     var tFiles:Number = myXML.firstChild.childNodes.length;
     if (i < tFiles){
          i++;
     else if (i == (tFiles)){
          i=0;
          load();
     mcl.addListener(mclL);     
image = function() {     
     seconds=1000;
     holder_mc._alpha = 100;
     timer = setInterval(load, seconds);
clip = function() {     
     holder_mc._alpha = 100;
     ftimer = setInterval(checkFrames, 100);
checkFrames = function() {
          frame = (MovieClip(holder_mc)._currentframe);
          if (frame==(frames-1)){
               clearInterval(ftimer);
               load();
menu = function(){
     var tFiles:Number = myXML.firstChild.childNodes.length;
     for (me=0; me < tFiles; me++){
     path = myXML.firstChild.childNodes[i].childNodes[1].childNodes[0].nodeValue;
     i++;
     _root.attachMovie("circle", "circle"+me, me, {_x:(me*30), _y:330});
     mclm.loadClip(path, ("circle"+me));     
I need to resize the content both for the main holder_mc as well as for the menu elements.

Thank you for the response.
Unfortunately that didn't work.
Even if I try to trace either target._width or holder_mc._width where you suggested I get 0 values.
The only values I did manage to get was when I put the trace in the load() function but they were out of sync with the images being loaded.
I even tried it on a simpler model:
var myXML:XML = new XML();
var path:String;
var mcl:MovieClipLoader = new MovieClipLoader();
var mclL:Object = new Object();
var frames:Number;
var i:Number = 0;
var tFiles:Number;
myXML.ignoreWhite=true;
myXML.load("content.xml");
myXML.onLoad = function(xmlLoaded){
path = myXML.firstChild.childNodes[i].childNodes[1].childNodes[0].nodeValue;
tFiles = myXML.firstChild.childNodes.length;
loader();
loader = function() {
     mcl.loadClip(path, holder_mc);
     mcl.addListener(mclL);
mclL.onLoadComplete = function(target:MovieClip) {
     trace(target._width);
     trace(holder_mc._height);
..and I still get 0 values.

Similar Messages

  • Accessing scenes in dynamically loaded MovieClip?

    Dear experts,
    I have used ming 0.4.2 to produce a simple SWF with one
    stroke per frame and grouped handfulls of frames into scenes - all
    of them labeled for easy tracing. If I look at the resulting raw
    file I can see the scene labels near the end as what seems to be a
    simple list of offset/label pairs. If I compile the latest swftools
    (almost 0.9.0 - needs minor Makefile adjustments) I can use swfdump
    to see that there is in fact a SCENEDESCRIPTION tag there (earlier
    versions do not recognize tag 056).
    However, when I load this into my flex program the movieclip
    claims that there is only a single unlabeled scene containing all
    the frames - presumably indicating that is has ignored the scene
    description.
    How can I persuade it to do the right thing?
    Note that in order to be able to control the playback of the
    movieclip (gotoAndStop etc) I have had to use
    This
    Trick.
    For various other reasons, my app requires flash 9 r124 or
    later. I have tried flash 10 with the same results.
    All advice appreciated.

    Update: I just saw there was a new release of swftools and
    the new swfdump knows about the 0x056 tag which dumps nicely as you
    can see at the end of this message.
    So, the file certainly verifies OK. Maybe I've missed
    something very obvious? (Beyond the somewhat vague: "you shouldn't
    use scenes" that seems to be a hint here and there.)

  • Add event listeners to dynamically loaded symbols?

    Hi,
    I'm trying to dynamically load different MovieClips based on user input. Several of those clips have embedded url link symbols. How can I add event listeners to the url links if the dynamically loaded MovieClip does not have an instance name? Seems like I can (right?) apply an instance name when the clip is loading, but the event listener doesn't compile because the name is not there yet, so that seems out.
    Am I on right track?

    Are you saying that you will instnatiate this symbol several times and each time url for this link is going to be different?
    There are at list two ways to deal with it.
    1. Inside symbol you can dispatch a custom event once it is clicked:
    myLink.addeventListener(MouseEvent.CLICK, onClick);
    function onClick(e:MouseEvent):void {
         dispatchEvent(new Event("linkClick"));
    Wherever you instantiate the symbol (perhaps on timeline):
    var symbolInstance:MySymbol = new MySymbol();
    symbolInstance.addEventListener("linkClick", onLinkClick);
    function onLinkClick(e:Event):void {
         // do whatever
    Second way would be to pass url value into symbol instance itself and deal with with it on a symbol level. I personally prefere way 1.

  • Dynamically Load Thumbnails To Horizontal Movieclip?

    I'd like to dynamically load thumbnails into a horizontal movieclip at the bottom of an image gallery to then allow me to load an image by clicking the thumbnails. I found a tutorial to help me load the thumbnails to the stage but I am not sure how to load them into the thumbs movieclip. Here is the code I am using:
    var imageLoader:Loader;
    var xml:XML;
    var xmlList:XMLList;
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.load(new URLRequest("xml/murals.xml"));
    xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
    function xmlLoaded(event:Event):void
        xml = XML(event.target.data);
        xmlList = xml.children();
        for(var i:int = 0; i < xmlList.length(); i++)
            imageLoader = new Loader();
            imageLoader.load(new URLRequest(xmlList[i].attribute("thumb")));
            imageLoader.x = i * 175 + 25;     // <----- Also, I don't seem to understand how to space the thumbnails using this code.
            imageLoader.y = 5;
            addChild(imageLoader);
    Thanks in advance!
    -Dan

    I wasn't sure if I should make a new discussion for this or not so I'm just going to post it here.
    Alright. I finally found a tutorial that works for what I am trying to do. The thumbs load on a grid and when I click on the thumb they load in the loader. Now I am having trouble removing them. The tutorial has the remove function on the loaded large image so when you click that it removes itself. I would like so that when you click on the a thumb the current image will unload and the thumb that is clicked on will load but can't figure out how to get it to do that. I figured I'd just add a CLICK listener for the "removeFull" function to the "callFull" function but I think it cancels itself out.
    Here is the code I am using: (the code to load and unload is toward the bottom)
    stop();
    var columns:Number = 2;
    var my_x:Number = 25;
    var my_y:Number = 75;
    var my_thumb_width:Number = 65;
    var my_thumb_height:Number = 65;
    var my_images:XMLList;
    var my_total:Number;
    var container_mc:MovieClip;
    var x_counter:Number = 0;
    var y_counter:Number = 0;
    var myXMLLoader:URLLoader = new URLLoader();
    myXMLLoader.load(new URLRequest("xml/gallery.xml"));
    myXMLLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML (e:Event):void{
        var myXML:XML = new XML(e.target.data);
        my_images = myXML.IMAGE;
        my_total = my_images.length();
        createContainer();
        callThumbs();
    function createContainer():void{
        container_mc = new MovieClip();
        container_mc.x = my_x;
        container_mc.y = my_y;
        addChild(container_mc);
    //The large image loads when the thumb is clicked on.
        container_mc.addEventListener(MouseEvent.CLICK, callFull);
        container_mc.buttonMode = true;
    function callThumbs():void{
        for (var i:Number = 0; i < my_total; i++){
            var thumb_url = my_images[i].@THUMB;;
            var thumb_loader = new Loader();
            thumb_loader.load(new URLRequest(thumb_url));
            thumb_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded);
            thumb_loader.name = i;
            thumb_loader.x = (my_thumb_width+25)*x_counter;
            thumb_loader.y = (my_thumb_height+25)*y_counter;
            if (x_counter+1 < columns){
                x_counter++;
            } else {
                x_counter = 0;
                y_counter++;
    function thumbLoaded(e:Event):void{
        var my_thumb:Loader = Loader(e.target.loader);
        container_mc.addChild(my_thumb);
    //This function loads the large image.
    function callFull(e:MouseEvent):void{
        var full_loader:Loader = new Loader();
        var full_url = my_images[e.target.name].@FULL;
        full_loader.load(new URLRequest(full_url));
        full_loader.contentLoaderInfo.addEventListener(Event.INIT, fullLoaded);
    //This function centers the large image in the gallery loader.
    function fullLoaded(e:Event):void{
        var my_loader:Loader = Loader(e.target.loader);
        MovieClip(parent.parent).gallery.addChild(my_loader);
        my_loader.x = (MovieClip(parent.parent).gallery.width - my_loader.width)/2;
        my_loader.y = (MovieClip(parent.parent).gallery.height - my_loader.height)/2;
    //The large image unloads when it is clicked on.
        my_loader.addEventListener(MouseEvent.CLICK,removeFull);
    //This function removes the loaded image from the gallery loader.
    function removeFull(e:MouseEvent):void{
        var my_loader:Loader = Loader (e.currentTarget);
        my_loader.unload();
        removeChild(my_loader);

  • Get width and height of a dynamically loaded image once it's done loading?!

    hello : :
    well... i'm taking my first shots at flex after programming
    in flash for a year now. it's been fun and i've been picking up on
    things pretty well (or so i think), but i come across something
    today that i used to be able to do in my as2 programming and don't
    know how to do in as3...
    in flex, i'm loading an image into an image control (by using
    "myImgControl.load(urlString)"). i have a "complete" parameter on
    the image control that calls a function just fine after the image
    is loaded, but if i try and check the hight and width of the loaded
    image once it loads, it comes back as zero. how can i get the
    height and width of the image after it's loaded?!
    in flash/as2 i used to do this little trick/work-around i
    found in a forum (kirupa.com, i think) to find out the width and
    height once the loaded image listener checked the loading process
    and came back "complete"... in the code below, "imgLoader" is the
    movieClip the image was loaded using
    imgLoaderListener.loadClip(urlString, imgLoader).
    quote:
    iTot = imgLoader.getBytesTotal();
    iLoad = imgLoader.getBytesLoaded();
    if (iLoad == iTot && iTot > 4) {
    imgH = imgLoader._height;
    imgW = imgLoader._width;
    that all make sense?!
    basically, it's as simple as this: i need to find something
    similar to the above for as3 that will tell me the width and height
    of a dynamically loaded image after it's done loading...
    so there ya have it. i appreciate any help any of you can
    throw my way! thank you so much for even reading this!
    : : michael

    I assume you have probably already figured this out, but just
    in case, there should be an event to listen for after which you can
    get the height and width information successfully. I can't remember
    the exact name, however. Experiment and see which one works
    time-wise.

  • Spry Tabbed panels + Progressive Enhancement and Dynamic Loading of Content With Spry

    Is there any way to combine tabbed panels together with "Progressive Enhancement and Dynamic Loading of Content With Spry"?
    Visit: http://labs.adobe.com/technologies/spry/articles/best_practices/progressive_enhancement.ht ml#updatecontent
    And click on the "Using Spry.Utils.updateContent()"
    The 3rd example shows how to use a fade transition whenever the content changes.
    I already have tabbed panels. My menu contains buttons (on tabs) and my Content div contains the panels.
    Tabs code;
    <ul class="TabbedPanelsTabGroup">
              <li class="TabbedPanelsTab">
                   <table class="Button"  >
                        <tr>
                        <td style="padding-right:0px" title ="Home">
                        <a href="javascript:TabbedPanels1.showPanel(1);" title="Home" style="background-image:url(/Buttons/Home.png);width:172px;height:75px;display:block;"><br/></a>
                        </td>
                        </tr>
                   </table>
              </li>
    etc
    etc
    etc
    and the panel code:
    <div class="TabbedPanelsContent" id="Home">
         CONTENT
    </div>
    I hoped i can use the example code from the link into my tabbed panels.
    I thought this code:
    onclick="FadeAndUpdateContent('event', 'data/AquoThonFrag.html'); return false;"
    could be added to the tab code like this:
    <a href="javascript:TabbedPanels1.showPanel(1);" onclick="FadeAndUpdateContent('event', 'data/AquoThonFrag.html'); return false;" title="Home" style="background-image:url(/Buttons/Home.png);width:172px;height:75px;display:block;"><br/></a>
    But the content doesnt fade...
    I know i need to change the header etc.
    The following is from the link:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Aquo Events</title>
    <script src="../../../includes/SpryEffects.js" type="text/javascript"></script>
    <script src="../../../includes/SpryData.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    function FadeAndUpdateContent(ele, url)
    try {
         Spry.Effect.DoFade(ele,{ duration: 500, from: 100, to: 0, finish: function() {
              Spry.Utils.updateContent(ele, url, function() {
                        Spry.Effect.DoFade(ele,{ duration: 500, from: 0, to: 100 });
    }catch(e){ alert(e); }
    -->
    </script>
    <style type="text/css">
    /* IE HACK to prevent bad rendering when fading. */
    #event { background-color: white; }
    </style>
    </head>
    So i changed my header etc, put the SpryEffects.js and SpryData.js into position and nothing changed...
    Is there a way to keep my tabbed panel (or change as less as possible) and let
    A. The fade work
    B. The loading work.
    The problem now is that it loads all pages instead of only the home. Therefore i wanted this Progressive Enhancement.
    And the fading part is just because its nice...

    It doesnt show in the post but off course i changed this link;
    "data/AquoThonFrag.html"
    into;
    "javascript:TabbedPanels1.showPanel(1);"
    I must say i dont know if this even works...

  • I am unable to play a rented movie's on my ATV 2. I get: An error occurred loading this content. Try again later.

    I am unable to play a rented movie on my ATV 2. I get: An error occurred loading this content. Try again later. My ISP has the TCP 80 port blocked but the TCP 443 port open. My first gen. Apple TV  is OK.

    Welcome to the Apple Community.
    I doubt port 80 is blocked, that port is used for http, which you might recognise as the basis for the world wide web.
    The message you get can be as a result of an extremely slow Internet connection, you can test your connection speed using speednet.com, however more commonly it's a simple error that can be corrected by unplugging and restarting the Apple TV and/or restarting the router.

  • For some podcasts, I get an error occured loading this content. What should I do

    For some podcasts, I get 'an error occured loading this content'. What should I do to get the podcast to play?

    Welcome to the Apple Community.
    Firstly, are you sure the podcast is produced in a format supported by the Apple TV.

  • Dynamically loaded content?

    Can Catalyst (current beta) dynamically load text and images?  If not, will the release version have this capability?

    You can create a SWF file with Flash CS3 or CS4, to load textes or images dynamically.
    Then you import ("Import Artwork ...") the SWF file into Catalyst. That s all.
    More details (as far as i know) :
    - if you write actionscript, dont use the "root" keyword (as the SWF ll be embed in the Catalyst project)
    - if you need extra files (ex: a TXT file to set which image has to be loaded), paste them in the "src/assets" directory (from the "code view" of Catalyst)
    - if you need to edit such files : open them with the "system application" (again, from the "code view")

  • Anyway to have JDeveloper dynamically load BC4J components in memory?

    We are dealing with a large BC4J based application that contains large amount of application modules. So far, 300 application modules and total 4000 BC4J objects have been created. The size of the application still keeps growing daily... may up to twenty times than what we are having right now.
    While the application size growing, some unusual problem comes out. The biggest problem is that it makes JDeveloper very sluggish. It takes 15 minutes to just open JDeveloper and may need a few minutes to open the application module editor. (FYI: in our team, most developers have 1G memory and 1.8G CPU or up.) This is probably still OK for right now, but it will become a big problem later when the project size grows.
    When we analysis the project structure, we know that most of time, developer does not need to load all the application modules. For example, we have a core package that contains about 30 application modules. This core package needs to be shared and should be loaded. But, the other nine packages contain about 30 application modules each do not need to be loaded into memory at the same time in most cases. Since BC4J is XML based, we could not find a way to just partially load those application modules, especially when there’s cross references between them.
    When we check the project.jpr file, looks like all BC4J objects are referenced there. We have 40K lines in our project.jpr file now. When open JDeveloper, we believe JDeveloper will try to load all referenced BC4J XML content into memory. This consumes 500M memory and makes the overall performance very sluggish. The situation may become even worse when the project size keeps growing. For example, we cannot have 5000M (5G) memory in a development machine for 3000 application modules.
    We do know that by checking out the "ScanSource Paths to Determins Project Contents" in the Input Paths of Project Settings, we can short the JDeveloper’s open time, but this will not give BC4J relationship information and some other useful information… Not a practical solution.
    So, any idea to make JDeveloper dynamically loaded BC4J based on need?
    We’ve tried a few ways. One is to partition the application into different project and import the core one into the other projects. Only open the project in workspace when need. But this is not officially documented by Oracle and we are not sure whether it is possible/correct or not. Another thought is to remove the NOT-CURRENTLY-USED package from the project. But JDeveloper only support file level remove.
    Any help on this dilemma will be highly appreciated.
    Thanks,
    Charles

    The package is the unit of loading in the IDE for ADF business components.
    To edit components, they must belong to the project.
    To refer to components in a read-only way, they can be imported. This allows other editable or read-only components to refer to them without allowing the imported components to be edited.
    Both editable and imported components need to be loaded in memory to use them, so you can save memory at design time by creating projects that leave out as many packages as possible.
    Is there a way we can get your existing project in house to study its design time performance?

  • How to style dynamically loading text?

    Hi,
    I am dynamically loading a .txt file into CS3 using
    ActionScript 3.0. I want to style the text using CSS/HTML. The only
    thing I can get to function using CSS/HTML is the "a tag", I can't
    seem to get bold, colour, font, etc working. Should i be using CSS
    or should I be doing this styling from ActionScript in the swf
    files? I have checked the help files but I could get their tags to
    work.
    Any suggestions very welcome.
    Thanks.

    you will have more control over all of this if you feed in an
    xml file rather than a txt file. you can stipulate your class
    attributes within the xml then
    if you want to style the dynamic content using just your txt
    file and the controls within the fla you could embed the typeface
    glyphs you want to use within your output swf file and colour them
    / change weight etc within the fla
    hope that is of some use
    ;-)

  • Problems with Dynamically Loaded jpgs

    Hello all,
    I'm trying to create a dynamic flash slideshow that loads
    external jpgs (and thus can be reused). I can get my jpgs to load
    just fine but when I try to center the loaded images I run into
    problems.
    Here is my code for reference:
    quote:
    _root.createEmptyMovieClip("parentClip", 1);
    parentClip.createEmptyMovieClip("containerClip", 1);
    parentClip.containerClip.loadMovie("images/tempSlideshowImages/image2.jpg");
    When I go to get the width or height of parentClip (or
    containerClip for that matter) I get 0 no matter what I do, even
    though the image is loaded and displays just fine.
    Is there any way to load a jpg into a movie clip and then
    manipulate the movieclip normally?

    Use the MovieClipLoader class, and then use its onLoadInit
    callback to set
    your properties once the clip is available to manipulate.
    Dave -
    Adobe Community Expert
    www.blurredistinction.com
    http://www.adobe.com/communities/experts/

  • TotalFrames of dynamically loaded swf

    I've been trying for 2 days now to find the total number of frames of a dynamically loaded .swf.
    Here's an example code:
    var loader:Loader = new Loader;
    loader.load(new URLRequest("mop.swf"))
    master_mc.addChild(loader);
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, xmlLoadedF);
    function xmlLoadedF(event:Event):void
        trace(loader.content.totalFrames);
    I am truly puzzled.
    Any help would be greatly appreciated.

    I think this might be complicated by loading an AS2 movie into an AS3 document.
    The error message is telling you that there is no totalFrames property and in fact AS2 movies would have a _totalframes property.
    So you could try that.
    Also I'm not sure if event.currentTarget.content returns a MovieClip or a DisplayObject. If it is a DisplayObject (which is most likely) then it too wouldn't have  totalFrames property. So you might need to cast it as a MovieClip. Something like this:
    MovieClip(event.currentTarget.content).totalFrames
    And or it could be some combination of these two above issues? I don't know really, I'm just grasping at straws. But I don't see any way to know when a clip is done playing other than to compare its currentFrame to totalFrames.

  • I have installed Adobe packages and cannot find the Acrobat extension folder please advise how can I get these applications to load onto my computer?

    I have installed Adobe Creative Cloud for teams CC Packages which says that Acrobat XI Pro is installed. Your support page says it does not install Acrobat and I have to look in the Extensions folder for an MSI file.  I have run a number of searches and  cannot find the Acrobat extension folder please advise how can I get these applications to load onto my computer?
    Also I now administer the teams and have accepted the invitation to I received to be a team member and download the apps.  The admin page shows that I have been sent an invitation but does not show my account as "ACtive" unlike my other team members.  I tried to use the link in the invite to accept it become active but the link displayed an error saying I had already accepted the invite... why is no account not active?
    Finally what other product downloads in Creative Cloud do not actually download as part of the Creative cloud Packager for downloading the apps? e.g. acrobat and what else?

    My apologies Eadeszoo I believe our support agents are unavailable on January 1.
    Are you able to copy the contents of the DVD to your computer?  Are you receiving any particular error messages when you are trying to install?  Finally which operating system are you using?

  • Dynamic load of images in to established Timeline effect

    Is it possible to dynamicly load images in to an already
    established timeline effect?
    Steps I've done.
    Stuffed a JPG in to the library by draging and dropping it in
    to the SWFs library.
    Dropped the JPG on to the main stage
    Right clicked the image then going down to Timeline effects
    and choosing an effect.
    Completing any changes in effects dialogue box and then
    clicking OK.
    Play the movie, and pat myself on the back that it worked.
    So then, how can I get Actionscript to load an image
    dynamically in to that same Timeline effect and have it do the
    effect to that instead of the one found in the library?
    I'm using Flash MX Professional 2004.

    hii
    Can u mention the error message getting while the status become RED??
    As what I understand, this may be the issue of invalid characteristics inPSA Data Records or also there may be records that does not support the lower case or upper case data.
    So just check the data in PSA Level
    Thanks
    Neha

Maybe you are looking for

  • MacBook Hard Drive crashed again and again

    I've been quite annoyed by this. Firstly, I've read about the MacBook original hard drive that may crash after a while, which happened to mine. I've since changed 4 more hard drives! Firstly, I replaced the original HD (Toshiba), to Seagate, which cr

  • FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception ORA-

    Hi, In R12 When trying to search existing users through Sysadmin or any other user ...we are getting the below errror... ORA-01403: no data found FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception ORA-06510 This error is not happe

  • App issue when installing iOS 4.3 update

    I installed 4.3 today, and at the very final step it threw an error message. I had to reconnect the ipod, restore it to factory settings, and restore it to a backup. The backup didn't have my apps or music in it, so I called Apple's support line and

  • Arrays as out param on stored procedure causes hang

    Hi, I would like to be able to use an ARRAY to pass data back from a java stored procedure. Calling the stored procedure using jdbc, the procedure hangs. If I change the out param to a VARCHAR, the procedure works fine (although, of course, the size

  • Conversions using SHDB (BDC) vs. HR_INFOTYPE_OPERATION

    We've been asked to use SHDB (BDC) for our conversions unless we can use LSMW.  However, some of our conversions are so simple it seems like a waste to use BDC.  Wherever infotypes are used in conversions why can't I just do the following (pseudocode