Custom Scrolller - problem with several objects...

Hello

I'm developing a very simple custom scroller as a proof of concept. The idea is to have a background image (content_mc), throw multiple objects(myContent[i]) on top of the image and scroll them all as a cohesive unit. However, I can't scroll myContent [i] as appropriate; each object has a unique position and when I try to scroll, they all assume a position (in which everything rides), move to this position and then made scroll (see # comment below). Does anyone know how to do this? (or this doesn't make any sense?)

Thx for any help,

Chipleh

var rect:Rectangle;var scrollerMinY:Number = scrollbar_mc.scroller_mc.y;
var contentMaxY:Number = content_mc.y;
var padding:Number = 40;

scrollbar_mc.scroller_mc.buttonMode = true;
scrollbar_mc.scroller_mc.addEventListener(MouseEvent.MOUSE_DOWN, dragIt);

function dragIt(e:MouseEvent):void {
    rect = new Rectangle(4, 3, 0, 180);
    scrollbar_mc.scroller_mc.startDrag(false, rect);
    stage.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    scrollbar_mc.scroller_mc.addEventListener(Event.ENTER_FRAME, scrollIt);
}

function dropIt(e:MouseEvent):void {
    scrollbar_mc.scroller_mc.stopDrag();
    scrollbar_mc.scroller_mc.removeEventListener(Event.ENTER_FRAME, scrollIt);
}

function scrollIt(e:Event):void 
{
    var scrollerRange:Number = rect.height;
    var contentRange:Number = content_mc.height - mask_mc.height + padding;
    var percentage:Number = (scrollbar_mc.scroller_mc.y - scrollerMinY) / scrollerRange;
    var targetY:Number = contentMaxY - percentage * contentRange;
    content_mc.y = targetY;

    //###Herein lies the problem; I can not get multiple clips to align consistently like content_mc
    for(var i:int = 0;i<myContentArray.length;i++)
    {        
        var myContent:Object = MovieClip(root).getChildByName(myContentArray[i]);
        myContent.y = targetY - myContent.y;    
    }
}

Hey mocca,.

So, I somewhat solved my problem,

function scrollIt(e:Event):void

{

var scrollerRange:Number = rect.height;

var contentRange:Number = Container1.height - mask_mc.height + padding;

var percent: Number = (scrollbar_mc.scroller_mc.y - scrollerMinY) / scrollerRange;

var targetY: number = contentMaxY - percentage * contentRange;

Container1.y = targetY;

for (var i: int = 0; i<>

{

var myContent:Object is MovieClip (root) .getChildByName ("ACB" + i);.

If (myContent! = null)

{

myContent.y = Container1.y + int (interFace_XML.comboBox [i] .@yPosition);

}

}

}

I got the intial positions stored in an xml doc. those in the position of container application did the trick. Still not completely satisfied, but it works for now and allows me to progress. Thanks for your help, I'm this marking as correct.

~ Chipleh

Tags: Adobe Animate

Similar Questions

  • How to subtract a grunge texture of a layer with several objects?

    Hi all

    I've been struggling with this for hours. Would be very grateful for help.

    I'm trying to apply a vintage texture to some vector illustrations.

    In the screenshot, the work I created is in the layer of "work." I tried to simplify the work as much as possible by using the union, merge, expand, etc. I wanted to do a piece of work, but that seems so simple that I can get it.

    When I try to perform a subtraction on the layer 'work' with the layer of 'texture', basically everything disappears.

    I suspect that it does not work as expected because the layer of my work is always composed of several objects and not a unified object.

    Vintage texture superimposed on the work looks good, but I need this subtraction in vector because I intend to get it printed on a shirt in one color, so I can't get the holes filled with color.

    Any help would be greatly appreciated.

    Thank you!

    Ray

    Screenshot 2016-01-28 20.10.50.pngScreenshot 2016-01-28 20.16.20.png

    How can I activate art in a single compound path?

    First of all, to unite all paths with the first button in the Pathfinder palette. Then choose object > compound path > make (or press Command-8).

    But don't do it this way. Use an opacity mask.

    If I use the grunge texture as an opacity mask, do I still to transform the art into a single compound path first or I can do to a layer with several objects as if it were now?

    No, you have not; You can keep a complete editibility of your design. You need to just design group firstly, why the opacity mask applies to all this.

    Opacity masks are easier to use if you uncheck "Clip" after their creation. Then, all parts of the mask that is black will be transparent; each part that is white will be opaque, and the things which are shades of gray will be partially transparent. Just like in Photoshop. Right now, your grunge texture is white, so you would need to change to black after making your opacity mask.

  • A little problem with an object

    Hi guys...

    I discovered a problem with an object, but I Don t see where the problem may be...

    I have a 'bomb' added to the step only if the var bomb is greater than or equal to 1... and, of course, if you enjoy it, the var Gets a-... However, after a while, it seems once again

    Any ideas?

    Here is the code bound to it:

    var dynamite: Loader = new Loader();

    Dynamite.Load (new URLRequest ("dynamite.png"));

    Dynamite.x = 650;

    Dynamite.y = - 10;

    var bombsound:Sound = new Sound();

    var bombsoundChannel:SoundChannel = new SoundChannel();

    var bombreq:URLRequest = new URLRequest ("bombexplosion.mp3");

    bombsound. Load (bombreq);

    If (! level) {var level: int = 1 ;}}

    var lvlup:int = 200;

    var updlvl:int = (lvlup * level);

    If (!) (Count) {var count = 0 ;}

    If (! bomb) {var bomb: int = 1 ;}}

    dynamite.addEventListener (MouseEvent.CLICK, buttocks);

    function bum(e:MouseEvent):void {}

    If (sonido) bombsoundChannel = bombsound.play ();

    -bomb;

    If (bomb == 0) {}

    If (dynamite.parent) {dynamite.parent.removeChild (dynamite) ;}}

    kill every1

    }

    function level1(): void {}

    If (level == 1) {}

    addChild (nivel1pic);

    If (bomb > = 1) {addChild (dynamite) ;}

    }

    }

    function level3(): void {}

    If (level == 3) {}

    removerViejoNivel();

    addChild (nivel3pic);

    If (bomb > = 1) {addChild (dynamite) ;}

    }

    }

    function level5(): void {}

    If (level == 5) {}

    removerViejoNivel();

    addChild (nivel5pic);

    If (bomb > = 1) {addChild (dynamite) ;}

    }

    }

    function level7(): void {}

    If (level == 7) {}

    removerViejoNivel();

    addChild (nivel7pic);

    If (bomb > = 1) {addChild (dynamite) ;}

    }

    }

    function level9(): void {}

    If (level == 9) {}

    removerViejoNivel();

    addChild (nivel9pic);

    If (bomb > = 1) {addChild (dynamite) ;}

    }

    }

    function level12(): void {}

    If (level == 12) {}

    removerViejoNivel();

    addChild (nivel12pic);

    If (bomb > = 1) {addChild (dynamite) ;}

    }

    }

    function updateLevel(amount:int):void {}

    level += amount;

    Level1();

    Level3();

    Level5();

    level7();

    level9();

    level12();

    }

    Level1();

    Level3();

    Level5();

    level7();

    level9();

    level12();

    Thank you!

    Use the function trace to track when the bomb is added.  IF this happens in each of the functions level, then add traces to everyone to see where and when that happens.

  • problem with several graph XY axes

    Hallo,

    I'm tracing different variables in the same plot with several axes. I have the following problem (see attachment)

    the y axis secondary on the right side of the plot has a large area of him and one of the other secondary axis falls right above others. I tried it in the two labview 8.2 and 8.5 with the same results.

    any ideas?

    Thank you in advance,

    Thodoros

    Try the following movements:

    Right-click-> popup menu-> advanced-> reset scale layout

  • Problems with library objects / Smart in 2015 CC

    Everyone is having a problem with their library all convert to dynamic objects?

    Before the 2015 update, I could drag multiple items in the library [a form of vector of arrow in this case] to my documents and change their colors independently. If I need to be black and white, it was easy to pass. Drag the item from library to the screen, double-click on the layer, choose a color.

    Now, I can't do that. Library items seem to have their own "container" If you want to, which houses a dynamic object - change the objects replace everything in my entire file. Now, using work plans that can be 20 arrows - pretty boring.

    Someone at - there workaround / best way to do this? I have the layer styles, but that seems daunting.

    THX

    option/alt drag place also in layers.

  • Customer having problems with Acrobat 11.0.3 and files created in earlier versions

    We see problems with our PDF according to the version of Adobe, they are treated with.

    If the PDF file has been created before 11.0.3 and look you with the 11.0.3 you will see places in the stories of SQL/Oracle text fields.
    If the PDF file has been created with 11.0.3 and you watch with the 11.0.3, it's very good.

    Update.  As with most of the Software Support services / correct information is not always received and must be forced to leave the customers.

    PDF files are created in Adobe Acrobat and stored on a network server Microsoft drawing of car accidents.  The files are then merged within an Application Microsoft Visual FoxPro 9.0 SP2 with data from Microfoft SQL Server 2005 Database via an ODBC driver for FoxPro and then created slider with a form of Visual FoxPro. VFP displaies report form page / print the file PDF is an OLE file object and is created / printed by Amyuni 4.5xx converter to PDF file and then read with Adobe Acrobat 11.0.3.

    There is software that will make these controls. So in this sense, there is a way to check. However, it would be a task of programming and not necessarily simple. So I really can't help you on the aspect of programming (I refer to something like SDK forum for programming).

    To check the file, you would normally open the properties of the document (ctrl-D). The general tab displays the version number and the tab fonts you will tell which fonts are used and integrated.

  • problem with Shared Object

    Hello flash developers,.

    I have a problem with getting the value of a variable in a shared object.
    I'm saving up two variables named evt_obj.target and evt_obj.target .text
    It is only the evt_obj.target variable that gives me problems.
    During the recording of my trace shows the variable is successfully sent to the shared object, but when it is retrieved, it appears just as undefined.
    Any ideas?

    Thank you
    Michael

    Well solved the problem by using String (eval (evt_obj.target))
    Still would like to know why it won't work when saved directly, must investigate when I have more time ;)

  • problems with several hr2000 + external trigger mode

    I hope someone can me halp on this problem:

    I need to acquire spectra with two hr2000 + and a nirques256 with labview external trigger mode.

    The external trigger mode is done by another pc and also the train of pulpse generator.

    If a trigger after I'm going to generate a 100 impulse every 20ms for each device through a dedicted Council.

    If I only work with ghosts at times things works fine and the system is very stable, BUT if I work with two or three spectres by now I have a really strange (maybe for me) problem with the timeout.

    This is due to an incorrect number of pulses:

    If I work with two device then I need to produce pulses of 200 each 20ms but my spectrometers provide data every 40ms, but I need to equip every 20ms

    If I work with threedevice and then I need to produce pulses of 300 each 20ms but my spectrometers to obtain data each 60ms but I need to equip every 20ms

    Thus, in this way, I lose the synchronization of the three councils.

    An options may be to use a dedicated pc for each device

    I acquire the signal via usb and the problem is maybe duo to the bus

    I think maybe the problem is duo to the vi block! Maybe I can use single istance at times when I call the procedure

    Thank you

    I just solved the problem: it was a problem with reentrancy

    Default LabVIEW use not reentrant execution

  • GREP to find the end of the name of the author of history (problems with several lines)

    Screen shot 2010-08-10 at 11.11.37 AM.png

    I don't get these documents and I can understand how to use GREP to search for each source name/quote author. I have problems with the above example. I think it's because of paragraph returns, possibly something to do with the comma. I've fiddled around for an hour, tent multi and expressions of the one line and still can not understand.

    It's what works for the most part:

    (? < = \r)\s*[–][-\u\l]+(?=\Z)

    Screen shot 2010-08-10 at 11.32.42 AM.png

    If you can count on having the line beginning with an en dash (possibly after an unused space), this should do it:

    ^\s*~=.+\Z

    The ^ indicates start of a line, while (?)<=\r) relies="" on="" a="" hard="" return:="" ^="" will="" also="" match="" start="" of="" story,="" and="" all="" sorts="" of="" hard="" page/column="">

    Do not "anticipate" \Z; Since it is also an indicator of the place, like ^ and $, there can never be "selected" in the traditional sense of the term. (Which is the reason why allowing you a \r postanalyse, because * will * be selected if not).

    Your example of Homer Simpson was rejected because of the hard return and the comma - or were in your list of approved characters.

    I think opt for the period more ('get all') should work, but it is not - by default - search returns. This is where the modifier of Single-Line can help you. A brief description of the single-line Mode is that it allows the period correspond to a return as well. the history is considered one long line, with possibly a few \r codes that are not treated as special programs.

    It will work for GREP search only:

    ( ? s)^\s*~=.+\Z

    but not for the GREP styles. A GREP style still works only for a single paragraph; You can have a \r code anywhere in the expression. Oddly enough, TI work if you draw a soft line break in this last line - the strange thing is, the style GREP also needs (? s), so, apparently, at this level the soft line break is also considered a line break.
    Furthermore, your example of Homer Simpson has an additional line below, and causing trouble because there is no \Z just after what you want to find. Allowing returns will add that last line in your search, which may not be what you want either. Replace the hard return by a soft will also solve part.
  • Problems with several .exe slow down my computer - see in the Task Manager.

    Hi everyone - I had posted in other sections of the forum such as: http://answers.microsoft.com/en-us/windows/forum/windows_7-files/why-does-dllhostexe-com-surrogate-consumes-memory/bd7e42bb-802d-4eb9-95b2-2bb6b566996d?page=1&tm=1416087694827

    but still have no answer to my problem - I just wanted to reference I've tried many "patches" suggested, without success.

    On the question... in addition to causing me problems of dllhost.exe, I now see a list of other authors in my task which are guilty of collaboration Manager.  The interesting thing is that I put the finger on a particular instance of dllhost.exe (COM Surrogate) who is about 8 k in size - whenever I'm deleting this one (which can sometimes be difficult to find when there are multiple instances of similar size) all other instances of dllhost.exe problem simultaneously remove themselves as well.  This is only a temporary solution as the problem will resume as soon as 10 minutes later, gobble up all my CPU and memory.

    Anyway - as I said, I noticed several other spots displayed - the interesting thing is that these tasks ALSO disappear when I delete the task of dllhost.exe k 8 initiators.

    Here is the list of the other guys who gobble up my system resources:

    dllhst3g.exe

    dpnsvr.exe

    dplaysvr.exe

    dvdupgrd.exe

    Rundll32.exe

    wiaacmgr.exe

    cmmon32.exe

    Has anyone else noticed these programs causing problems?  I would like to know how to solve this problem, but since the last message in the previous topic, it still has not been resolved by Microsoft...

    I know this post is a few months old, but I stumbled across it all fighting the same problem on a laptop of family members.  McAfee or Malwarebytes was able to track it down in my experience either.

    The task Mgr showed the same process taking a ton of memory and CPU.

    To resolve this issue, it turns that Symantec posted a tool that you can leverage.  Here is the link: http://www.symantec.com/security_response/writeup.jsp?docid=2014-111020-0511-99

    I would leverage the link Symantec before using the links of Evan (above), these links are to sites with strong ads and an EXE from a developer private.

    I hope this helps.

    -Higgins

  • Problem with several adapters and Jar file included in a service.

    Hi all

    I'm new here and I am ready to work with the VMWare client sdk. I have already started and exported several adapters to implement the full functionality that I need. However, I get an error:

    Request context failed to create 'com.management.serviceprovider' in ' 1.0.0 version. org.springframework.beans.factory.BeanCreationException: error creating bean with name 'DatacenterConfig': calling the init method failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: cannot find class [com.adapters.Datacenter.ClusterConfigAdapterImpl] for the beans with the name 'ClusterConfigAdapterImpl' defined in URL [bundleentry://281.fwk1147580192/META-INF/spring/bundle-context.xml]. nested exception is java.lang.ClassNotFoundException: com.adapters.Datacenter.ClusterConfigAdapterImpl finds do not bundle [com.management.serviceprovider]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

    to org.springframework.beans.factory.support.AbstractBeanFactory$ 1.getObject(AbstractBeanFactory.java:294)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:591)

    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)

    to org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$ 1600 (AbstractDelegatedExecutionApplicationContext.java:60)

    to org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$ 4.run(AbstractDelegatedExecutionApplicationContext.java:325)

    ...

    This error occurs very often and it's strange because I place the cards together in a same way. Here is the OSGI layer and contaxt bundle files:

    Context Bundle:

    < name of the bean = "ClusterAdvancedAdapterImpl" class = "com.adapters.Datacenter.ClusterAdvancedAdapterImpl" >

    < constructor-arg ref = "dataServiceExtensionRegistry" / >

    < / bean >

    < osgi:service id = "DatacenterConfig" ref = "ClusterConfigAdapterImpl".

    interface = "com. VMware.vise.Data.Query.PropertyProviderAdapter"/ >

    < osgi:reference id = "dataServiceExtensionRegistry".

    interface = "com. VMware.vise.Data.Query.DataServiceExtensionRegistry"/ >

    And I really don't know why this isn't a job.

    The second problem is that I have another project with classes and I want to export it to a jar file. When I do this I also want to include this pot in the bundle, but when I change the ant file it does not work on virgo.

    Any help will be appreciated.

    Kind regards

    Stefan

    For option 2 which he question in post above, you can use the piece of code below in the Ant script in the target of the compilation at the end.

    --------

    -----

  • Strange problem with the object Panel.

    Hi all! I found this forum in a desperate attempt to find a solution to my problem. I searched without success, but if has already replied to this question, can someone point me in the right direction?

    FreeHand MXa works with Vista? (Or MX, I tried two versions of the disc in the box). I can install that's fine, no problem at all. When I actually started working, I noticed that the object Panel was not on the right side where it normally is, so I click on the window and you click object. Instead of giving me the Panel, I have a popup that says "Could not complete your request because an unknown command has occurred", and then a little box pop up that looks like it might be the object Panel, but it is empty. No marks, no nothing and it does not meet anything, except when I hit the button of output on this subject. It is the same version I had installed on my old computer. I got a new computer yesterday and I tried to install today and I can't understand why it doesn't let me open the object Panel. I'm so lost without it! Is there another way to work in FreeHand without it? I have Illustrator, but I really prefer working in Freehand for more things I did on a daily basis. It's just much faster for me to do some of the things I do. I need my object Panel...

    This TechNote may help:

    http://go.Adobe.com/kb/ts_tn_12050_en-us

    Judy Arndt

  • Problem with creating object entity based on web service

    Hi all

    AM trying more than 100 times to test how can I build an entity object based on web services, when I give the link of wsdl (which I already working when I use it as data for the web service control) in the wizard, I got the same message
    "' Field to read the WSDL URL service file: /... wsdl" "
    is it a find out what the problem is

    Thanks in advance

    It's pretty simple:

    Web service data control - gives you the best way to interact with a web service in your ADF UI
    Proxy for the Web service - allow manipulations on the interaction with the web service, for example restructuring results or settings - you can then expose this as a Javabean data control to bind to the user interface
    ADF BC basic web service - for integration with other applications of ADF BC that only allow you to access through web services.
    ADF BC stripped VO/EO Web service - based when you want to get features such as LOVs, will fetch, etc., which provides ADF BC. It will take you some good coding.

  • problem with several NI-CAN card

    Hi all, I have an application where I need 4 different CAN bus. To achieve that I already have 2 cards NI CAN Series 2 with 2 ports each. On my applicantion I configured each single port individually and communicate with every bus, but for some reason any (I don't know why) one or two of the lost of ports, communication is not always the same port, it is random. I don't know if the NI-CAN driver has any limitation or what I am doing wrong. I don't see the light at the end of the tunnel. Any help will be welcome.

    Thank you

    Alfredo

    Hi Larry,

    Those are PCI cards and the driver CAN is the 2.7.2. I think I found the problem. I'm used to using only one CAN wear and the Subvi configuration, I did before (long ago) as entered the Port name and baud rate and as output of the PortHandler, but it also includes a RESET (disscontinued on new versions) command inside.

    The problem was because I have configure each port with the Subvi Secuence structure and I think one of the ports to lose the config due to reset and to assign the same PortHandler to both ports on a map.

    I use a new slot - VI, I had recently where I set up one of the ports and everything CAN map I (NOR or vector), this new VI is not the old VI RESET and it works great!

    Thanks anyway for you interest and prompt response.

    Alfredo

  • SMU 6341 and SCB-68: problem with several entries... * URGENT *.

    Hello

    I have an urgent problem, I would really appreciate help with.

    I have a terminal block (SCB-68) connected to a multifunction data acquisition (6341). There are 4 entries in the Terminal:

    1 sensor laser displacement, coming from a controller as a signal of analog voltage output ("1V" and "0V" on the controller). Connected to AI 0 and GND.

    2. The accelerometer (PKI, coming from a then the voltage signal conditioner) connected to GND AI and AI 10.

    3 load cells (PKI, coming from a then the voltage signal conditioner) connected to AI 11, 12, 13 and 14, each connected to the GND PIN is close.

    Problem:

    By MAX, if I read in 6 channels above my data acquisition (6341), my displacement sensor (#1) and the accelerometer (#2) behave very well. However, among the channels (AI 11 and AI 12) load cell switch in tension, as if they follow the movement sensor voltage (#1). For example, there is usually a mV - 800 in AI 11 voltage change.

    This problem disappears when I'm not reading travel (HAVE 0, #1) laser. that is as soon as I remove this channel of my task, the readings of cell and accelerometer support back to normal (base voltage ~ 0V). Yet once if I ask again the laser channel, I see a vertical movement in the readings of load cell 2 (displacement varies with the current tension HAVE 0).

    Attempts of fixation:

    -tried to change the differential using AI laser sensor 0 and AI 9

    -tried to delete the field of laser 120V Power

    Any ideas at all would be greatly appreciated!

    SCB-68:

    http://sine.NI.com/NIPs/CDs/view/p/lang/en/NID/1180

    SMU-6341:

    http://sine.NI.com/NIPs/CDs/view/p/lang/en/NID/207415

    This is the general idea.  If you must use high impedance sources and that you have enough channels available, placing a channel of the grounding of entry between each other usually helps.  You must analyze these chains grounded.  Just grounded isn't them enough.

    Example: Sensor has = AI0, ground = AI1, sensor B = AI2, ground = AI3, sensor C = AI4, AI5 = ground.  Read AI0:5.

    Lynn

Maybe you are looking for

  • No Bluetooth under XP on Satellite Pro A200 - 1 MI

    And I finally have everything solve but under XP, there is no Bluetooth? Someone help me!

  • Multitone generator with more entries and exits of computer speakers

    I would like to add several harmonically related sinewave tones (maybe 10) and output for computer or line out speakers. Ideally want to use full range audio 44100 Hz sampling rate as well. I managed to combine two or three screws and get something t

  • Full screen of City of Heroes

    I've recently updated my graphics driver for a NVIDIA GeForce 9800 GT.  My office and everything is fine but when I try and play city of Heroes, it does not show full screen as it did before I updated.  Under options the closest game in City of Heroe

  • Kein Iconia W 510 Bluetooth Windows 8.1

    Hallo! Mein Iconia W510 wurde seit erhält immer wieder auf den newest Softwarestand gebracht (Bios, Treiber und Betriebsystem). Die Bluetooth Funktion ich habe lange nicht das aber jetzt tun will, really. Probably habe ich unter dem alten system Wind

  • How to remove setStatus field

    Hi all I'm new with the BlackBerry JDE. I want to use the progress bar on the bottom of my screen. I use setStatus (Field) in my screen. It's works. But, I could not delete the field. I have try this delete (Field), but it's IllegalArgumentException.