MutationEvents
Hello
Why don't the work extracted below?
#targetengine follow var doc = app.documents.add(), followMe, followHim, followEvent, n; followMe = doc.pages[0].textFrames.add({geometricBounds:["20mm", "20mm", "100mm", "100mm"], fillColor: "Cyan", contents: "Follow Me"}); followHim = doc.pages[0].textFrames.add({geometricBounds:["120mm", "20mm", "200mm", "100mm"], fillColor: "Magenta", contents: "Follow Him"}); function follow () { followHim.properties = followMe.properties; followHim.geometricBounds[0] += 100; followHim.geometricBounds[2] += 100; followHim.contents = "I'm following him" } followEvent = followMe.addEventListener(MutationEvent.AFTER_ATTRIBUTE_CHANGED, follow); for (n in followEvent) $.writeln(n + ": " + followEvent[n]);
Trevor
As far as I can tell, only one window, LayoutWindow, StoryWindow, film, Sound, MediaItem, link and Toolbox have an event 'afterAttributeChanged '. Executives of related texts are not!
Tags: InDesign
Similar Questions
-
Flex 3 mutation XML DOM level 2 events
People,
Where can I find out if the object XML for Flex 3 will support DOM Level 2 events of mutation.
http://www.w3.org/TR/DOM-level-2-events/events.html#events-eventgroupings-mutationevents
Thank you
CraigMWK
Your second bubble is EXACTLY what I need! I got it work in my MXML component, yah!Here is a version of my custom FormItem that implements IXMLNotifiable and receives the xmlNotifications. You can visit mx.collections.XMLListAdapter.as for a more complicated example (look at their method of xmlNotification for more fun tips).
Thanks for the amazing tip.
Craig
Maybe you are looking for
-
I have problems with the COX cable streaming
Any advise?
-
Tecra S1: Duplicator USB adsl modem connection port
Why usb adsl modem connected to the Port Replicator III works only for power and not for the link
-
Hello, I've attached all the images needed and screw/chopsticks. Question: I'm checking my text of reading/writing (what is written errors in an XML format, but also a corresponding timestamp) right after that I wrote the error in the XML file. The
-
C# 2008 - unregistered control error TestStand2012 ActiveX on Win7 64 bit OS
Hi all I hope someone can help with pointing me in the right direction. I have a c# 2008 TestStand2010 ActiveX control (on the form) application. It is originally created in Windows XP, 32 bit and it works fine. Now, I try to take the program to anot
-
The themes looks like Vista. How to get back to normal?
* Original title: everything looks like Windows Vista Good so I went on my computer and everything looks like windows vista, or something. Is it possible to return to normal? Pls Me. Halp