adobe

Flex advanced datagrid styling

早过忘川 提交于 2019-12-11 13:24:40
问题 I'm using an advanced datagrid in a system I'm building. the design PSD from the designer includes a special background on rollover. So, I need the background of the cells in a row to get the background from an image, only when the mouse rolls over a specific row. is this even possible? can a row get the background from an image (CSS) 回答1: There is a method available in DataGrids (and Lists) called drawRowBackgrounds() that is responsible for drawing a simple highlight into a row in response

Adobe Air how to check if folder exists?

时光毁灭记忆、已成空白 提交于 2019-12-11 12:54:57
问题 Adobe Air (2.0) how to check if folder exists? (like folder C:\Program Files (x86) on windows) (code example needed, please) 回答1: I think you can use the following functions of the File class: var folder:File = File.userDirectory.resolvePath(folderPath); folder.isDirectory; The isDirectory property will return a Boolean depending on whether or not that folder exists. Hope that helps, debu 回答2: import flash.filesystem.File; var tempFold:File = File.userDirectory.resolvePath("FolderPath"); if

Retrieving a single cell value from a datagrid in Adobe Flex

与世无争的帅哥 提交于 2019-12-11 12:49:10
问题 I'm using CF to retrieve values from a database that are then being stored in a datagrid in Flex. I then want to selectively take the value from one cell of the datagrid and store it as a string variable. I've searched around, but I haven't been able to come about a solution. The users will not be interacting at all with the datagrid as it will be hidden to them. Any help? 回答1: Why are you bothering to use a DataGrid if it is hidden to the user? Store your data in an ArrayCollection of

CQ rich text field editor enable bold, italic and underline styles, plus bullet and numbered lists only

六月ゝ 毕业季﹏ 提交于 2019-12-11 10:49:22
问题 I have a rich text field editor widget, What I need is to activate functions (bold, italic and underline styles, plus bullet and numbered lists only.) Here is the xml of my widget: <richtextfield jcr:primaryType="cq:Widget" fieldLabel="this is rich text field" name="./richtextfield" xtype="richtext"> <rtePlugins jcr:primaryType="nt:unstructured"> <subsuperscript jcr:primaryType="nt:unstructured" features="*"/> </rtePlugins> </richtextfield> as you can see i have all features enabled here,,

Adobe CQ5 custom servlet path

泪湿孤枕 提交于 2019-12-11 09:52:53
问题 I am trying to add some functionality to json processing for some nodes. So I wrote custom servlet extended from SlingSafeMethodsServlet which I need to be executed when user makes GET for the following url : /data/events/any_sequence/any_sequence.json or /data/events/any_sequence/any_sequence.infinity.json or for example /data/events/any_sequence/any_sequence.2.json where any_sequence of course means any valid sequence of symbols. The problem is that I cannot find in the sling docs how to

Does Adobe Flash support databases?

早过忘川 提交于 2019-12-11 09:16:53
问题 Which databases does Adobe Flash support, if any? 回答1: None, really. As others have said, the best solution is to have something in between. I personally prefer amfphp for larger datasets and plain xml for smaller stuff, especially since they introduced E4X (way better XML handling) in ActionScript 3. However, since Flash can do socket communication, it is possible to talk directly to a server. This is very fast, but you're basically opening up your database to the world. I've never used any

getting XMP File does not have a constructor error through ExtendScript

不羁岁月 提交于 2019-12-11 09:05:08
问题 I am using In Design CC 2019, on my Mac OS. When I am trying to get XMP data for my .indd (InDesign document) using ExtendScript . I am currently getting the error like this: XMPFile Does not have a constructor . Below is my script. // load XMP Library function loadXMPLibrary(){ if ( ExternalObject.AdobeXMPScript){ try{ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');} catch (e){alert('Unable to load the AdobeXMPScript library!'); return false;} } return true; } var

Inserting a class name dynamically on a component's wrapping element

…衆ロ難τιáo~ 提交于 2019-12-11 08:54:42
问题 I am using a cq:htmlTag to generate a custom tag for one of the components. For the "class" property, I know that I could provide a static class name that is part of a CSS file, but my requirement is to have the 'template name' as the class property value. Does CQ provide a way to use dynamic values? 回答1: Out of the box I think not. There are a few workarounds that I could think of: Add another tag as a child where you set that class (probably not what you want) Use javascript to add it on

what is the simpliest way to get jpg from bitmapData

坚强是说给别人听的谎言 提交于 2019-12-11 08:49:29
问题 I need to convert bitmapData grabbed from movie clip to jpeg or png. Is there some lib for that? 回答1: see this example in take portion that convert byte to image, i have given whole for your reference package { import encoding.JPGEncoder; import flash.display.Bitmap; import flash.display.BitmapData; import flash.display.Loader; import flash.display.Sprite; import flash.utils.ByteArray; import flash.events.Event public class Converter extends Sprite { [Embed(source = "image.jpg")] private var

How do I get Acrobat Reader Imported into Delphi 2007?

戏子无情 提交于 2019-12-11 08:35:54
问题 I have imported Acrobat Reader using Components | Import Components. The AcroPdf_TLB unit is created in the Imports directory. When I try to use the AcrobatReader component, as follows ... AcroDoc := TAcroPDF.Create(nil); ... I get an 'Unspecified Error' exception (EOleSysError). Any ideas? Thanks, Pieter. 回答1: We use the Adobe Reader plug-in and face this issue often. It particularly surfaces after a user performs a web-update on the Adobe Reader. Try un-installing (via the Control Panel),