Illustrator SDK :: Close Button (X) On UI Extension
Dec 2, 2011
I am very new to Flex/Flash/Illustrator. Using Illustrator CS5.1, Flex 3.6 SDK in Flash Builder 4.5, and Visual Studio 2010.I am developing a hybrid plugin for Adobe Illustrator. The plugin is C++ and interfaces with a hardware device and an UI extension built on Flex/Flash. It uses the CSXS library (version 2.0 based on Flex 3.4 SDK) to perform the communication between the extension and the plugin.
When the UI extension closes, I need the plugin to perform some tasks. These tasks might be related to Illustrator and/or to the device it communicates with. If the UI is closed using a button I add to the UI, the plugin runs the tasks as needed. If the UI is closed using the 'X' button in the corner of the window, I can not get the CSXS interface dispatch events to carry over to the plugin. This is the same dispatch events used from the UI button that I manually created and works fine.
I have tried capturing the exiting event from the NativeApplication and I do see myself entering the associated function to that capture. The dispatch events run but I do not enter the corresponding functions in the plugin.Below is one of several attempts at making this work (believe this was found on the Adobe forums):
public function init() : void
{
NativeApplication.nativeApplication.addEventListener(Event.EXITING, windowedapplication1_closingHandler);
}
protected function windowedapplication1_closingHandler(event:Event):void
{
event.preventDefault();
//event.stopImmediatePropagation();
CSXSInterface.getInstance().dispatchEvent(new CSXSEvent("com.testui.events.closing", CSXSEventScope.APPLICATION));
}
Again, windowedapplication1_closingHandler will process but the dispatched event is not seen by my plugin (when the 'X' is clicked).Is there a way to disable/hide the 'X' in the corner of the window?Am I not properly "capturing" and "halting" the exit event?Should I move away from the CSXS Library and use sockets to perform this communication (though the closing of the extension may have the same affect on the socket communication)?I am currently working on Windows 7 64-bit (if that matters) but the plugin will have to work on Mac too.
I'm learning how to create extension (flex - extension builder) for Illustrator and how to make it communicate with a plugin.
The samples provided in the SDK detailed how to load /unload extension from a menu item from Illustrator, and how to add / remove EventListeners to make the magic happen.
to sum up, this is something like that: 1- click on the menu item 2- load extension 3- add listeners 4- do your stuff...... 5- remove listeners 6- unload extension
Basically my plugin is a module/service which is in charge of dealing with / modifying artwork tree. It has no User Interface.
My extension will have a user of this service.
What I would like to do is to load my extension as soon as my plugin is loaded, and unload the extension when the plugin will be unloaded.
It has happened repeatedly, but on different occasions, that the close file X that should be in the top right position of the drawing has vanished. In other drawings that are open at the same time the X in present...Switching between drawings often brings the X back, but this is a weird bug that was not present before the 2012 release.
I just loaded 2008. With cleanscreen on, the close "X" button is grayed out and inop. Also, the minimize button which is still operable does not fully minimize AutoCAD. How can I get these buttons operable in cleanscreen mode?
I have seen a reference to the auto close gaps button on the toolbar of CorelDraw.I need something like that, because whatever I do I cannot fill my lineart with the smartfill tool, even though I have closed all the gaps, as far as i can tell.
I am wondering if there is a problem with my Coreldraw X5 Software.I am using it on an iMac with Parallels.
Try to realize the progress bar as a flash extension?
i tried to realize a progress bar as a flash extension, but the flash ui with the progress bar freezes, because my time consuming process ssems to block the flash ui.
In the first step I moved the time consuming algorithm into a separated thread. At first I used a dummy time consuming algorithm to keep the tests simple and the progress bar worked fine. Then I replaced the dummy algorithm with the real algorithm, but the algorithm did not work. I could not invoke Suite functions of the Illustratok SDK. I assume that after the plugin main thread had invoked my worker thread and returned, some resources are released.
In the next step I tried to move the flash extension handling to a separate thread, but then loading the extension by the SDKPlugPlug hangs. I assume that the extension handling is an event based process. Since my new created thread has no event loop, the extension can not communicate with my thread.
Converting some Javascript to Actionscript for an extension.
Have a selection. Need to iterate through selection, and then when finding groups, iterate through groups to get geometricbounds.
in Javascript GroupItem.Pageitems[i] will allow me to access properties of items in the group. Actionscript is a big fat 1009 NULL error. Probably some type error since GroupItem is Object?
This simple code throws the error. I have two rectangles grouped. That is what is selected.
var mySelItem:Array = app.activeDocument.selection as Array; if (mySelItem[0] is GroupItem){ var myPath:PathItem = mySelItem[0].PageItems[0] myPath.remove()
Line of code that will allow me to access children of GroupItem and get properties?
But the values I save do no persist and I can't find the prefs file. I am checking in: /Users/mitya/Library/Application Support/Adobe/CEPServiceManager4/preference
if I run this same extension in CS6 everything works fine.
Have a lovely extension. Such a pretty panel. Useful. Except there is a bug using FlexUI. If you click a flex panel it grabs up keyboard focus and will not let it go unless you click somewhere else. This may be a Mac thing. You can see this behavior in the built in "Kuler" extension. Select object. Click on Kuler panel. Hit delete. Object doesn't go away.
Now scouring the intarwebs I've seen a few posts describing this issue, but no fixes for Illustrator. If people know, they ain't telling. I aim to fix that, but first I need to find that answer.
Actionscript is just plain slow anyway, so I have my extension logic running from a Javascript. If there was some command in that script to give Illustrator back keyboard focus, even if it's a hack (such as invoke action), now that would be something.
Test it by using Kuler and running the script from Illustrator. The act of switching between ESTK and illustrator will fix things, but obviously you don't want to switch applications in the middle of a task.
I seem to be having a problem installing Adobe Photoshop CC , everything was working great in the beginning , but as soon as I began installing it I had a message display saying "Please Close The Following Application " Which in this case is Adobe Illustrator. I already have it closed , even in task manager , I can't see the Illustrator.exe.
I have attached a couple of comic book bubble shapes that have "tails" on them (the little pointy part that you put near the persons mouth who is speaking the dialogue). I'd like to remove these tails and close off the shape so that it's symmetric (as if the tail never existed).
I'm trying to set up an action to save a batch of files I creating using the variables tool (as detailed in this video: [URL]), I'll go into the Actions window, and record myself saving the current file in .Ai format, and then stop recording. Seems pretty simple, but when I set that action to run a batch on my dataset it saves all the files without an extension. Am I missing another step where I set the file format that the action is supposed to save with? I'm confused. I've tried this using a few different file formats and they all come up the same.
i just subscribed to CC as a student, and i cant get photoshop or illustrator to open. the splash screen loads and goes through, and you can see illustrator and photoshop both open, but close a few seconds later with no prompts or errors. i browsed around and saw something about verdana font, but i have it installed.
I'm using Inventor 2011 and I can't figure out how to set my dimension settings so it breaks the dimension extension lines automatically when crossing over other dimension extension lines. I saw that others say it just happens, but it is not "just happening" for me. how to set my dimensions so when dimension lines cross each other one of them automatically breaks?
When I select "open" from the menu, the "open" dialog box opens and then immediately shuts. I can't open a document in Illustrator. Also, this has been happening in other dialog boxes, such as save as....
Creative Cloud indicates my software is up to date.
I can make the button profile and spin it around its axis just fine..getting the holes into such a shape is another matter..Is this beyond AI's 3D tool capability?
And to be clear, I mean the clothing type of button, with holes for thread, as opposed to an interactive button pushed by a user on a web page.
Specifically, I would like to be able to click and hold my middle mouse button to drag the screen, a la the Hand Tool. Additionally, I'd like scrolling my mouse wheel to zoom in and out, rather than scroll the screen up and down. I know this can be done by holding Spacebar to use the left mouse button to drag the screen, but I'd like to be able to do it with my scroll wheel alone, especially since it doesn't already seem to be filling any other important function.
I need a way to programmatically click one of the interface buttons, if at all possible. I've tried calling the method directly linked to the button, but for some reason it doesn't work. I've tested several different scenarios, but it never works as expected. So, I figured the easiest, most effective way would be to activate a button as if a user had clicked it.
Is there any way to do this? My button is of course an IADMItem and I've tried stuff like SendNotify(), but it just doesn't work as expected.
Seems like there's something really simple that I've been overlooking.
I'm actually a server admin/web developer who inherited a complex C++ project, so I'm still in the middle of figuring half of this stuff out.
I place the image in AI then hit the live trace button. The image changes into what appears to be vector, but remains a solid image. i.e. can not select any of the shapes or use magic wand tool?
I am unable to download the following template: URL....
-Using Chrome, the download button doesn't work. -Using IE 10, the download button works, but takes me to a login screen. When I enter my adobe ID and password, the page just sits there with a spinning circular spoked icon going round and round, indefinitely.
As a result, I am unable to download this template, or any templates.
How to recover the Live Trace button as well as the entire option on a CS5 top bar and Objects menu? Mine has vanished, and while i am still able to find Live Trace under the OBJECT section, it won't allow me to use any of the options. I've tried restarting, I've checked if my images were locked, I've opened various files hoping the outcome would be different, but nothing worked. I've even tried going to Keyboard Shortcuts and keying in a new shortcut, but it won't allow me to as no box appears for me once clicked.