Evaluating FXG files - possible to access elements and add event handlers?

I would like to read an existing FXG file into flash builder and then datamine the file for elements, and add event handlers to those elements.
For instance, if I have two rectangles in an FXG file (not in the flash builder mxml) and then read it in, I'd like to search for every rectangle and add an event handler that detects a mouse click. If the FXG code changes to three rectangles, I don't want to change my mxml for flash builder.
Is this possible?

I'm seeing a pretty tragic death using the following, where theDiagram.fxg is in the assets directory. Does <Graphic> map to a SpriteVisualElement, or is the <Graphic> composed of SpriteVisualElements?
import assets.theDiagram;
private var fxgCls:Class = theDiagram as Class;
private var fxgElement:SpriteVisualElement = new fxgCls() as SpriteVisualElement;
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::updateCallbacks()[E:\dev\4.x\frameworks\projec ts\framework\src\mx\core\UIComponent.as:7093]
at mx.core::UIComponent/set nestLevel()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:3986]
at spark.core::SpriteVisualElement/http://www.adobe.com/2006/flex/mx/internal::addingChild()[E:\dev\4.x\frameworks\projects\s park\src\spark\core\SpriteVisualElement.as:2106]
at spark.core::SpriteVisualElement/addChild()[E:\dev\4.x\frameworks\projects\spark\src\spark \core\SpriteVisualElement.as:2070]
at assets::theDiagram_Text_16710627/createText()
at assets::theDiagram_Text_16710627()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at mx.core::FlexSprite()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\FlexSprite.as: 61]
at spark.core::SpriteVisualElement()[E:\dev\4.x\frameworks\projects\spark\src\spark\core\Spr iteVisualElement.as:87]
at assets::theDiagram()[assets/theDiagram-generated.as:10]
at SpecViewer()[SpecViewer.mxml:22]
at _SpecViewer_mx_managers_SystemManager/create()
at mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()[E:\dev\4.x\frameworks\ projects\framework\src\mx\managers\systemClasses\ChildManager.as:304]
at mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\4.x\frameworks\projects\fram ework\src\mx\managers\SystemManager.as:2810]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[E:\dev\4.x\frameworks\projects\frame work\src\mx\managers\SystemManager.as:2637]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:\dev\4.x\framewo rks\projects\framework\src\mx\managers\SystemManager.as:2539]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/timerHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\p reloaders\Preloader.as:515]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

Similar Messages

  • I need to find all XML elements and add a line break to the text of each of them

    I need to find all XML elements and add a line break to the text of each of them.
    Is this possible with a script?

    I need to go from this ...
    to this...
    but looking for the XML elements (not paragraphs) and then adding text ...
    Thanks for your attention !!!

  • Access method and wait event

    hi,
    i am confused about access method and wait event.
    is there any relation between access method and wait event?

    sb92075 wrote:
    is there any relation between access method and wait event?No relationI disagree. If access method is full table scan or fast full index scan, that's likely to cause db file scattered read waits, whereas an index driven access method such as index range scan will likely cause db file sequential read waits.
    -Mark

  • How to catch Find and add event of toolbar in UDO addon ?

    Hi experts ,
        please help me anyone How can i catch Find and add event of SAP  toolbar in my UDO addon ?
    thanks in advance
    Surajit

    Hi,
    Try This.....
    'In Menu Event
    If pVal.MenuUID = "1281" And pVal.BeforeAction = True Then   'Find
                      sbo_application.Messagebox("Find Mode")
    end if
    If pVal.MenuUID = "1282" And pVal.BeforeAction = True Then     'Add
                      sbo_application.Messagebox("Add Mode")
    end if
    Thanks
    Shafi

  • Is it possible to access elements of a view in implementation class?

    Hi,
            In the BSP component workbench, is it possible to manipulate elements of a view (listbox, inputfields etc., hardcoded using htmlb tags) in the methods of view implementation class. For example, I have a inputfield which is initially invisible. I want to make it visible when a particular event is triggered. I wish to code this directly in the event handler method. Can anybody provide some pointers?

    Arun,
    As the UI elements (tags) do only exist during rendering phase a direct access from the view controller is not possible - especially not in the forward-oriented way from within an event handler as  indicated from you in the posting.
    However, it is of course possible to hard-code view layouts; for this approach you can use the BSP view corresponding to the view and code there whatever you like. BSP views can also contain code snippets to achieve dynamic effects. In your example it doesn't look like that you need code at all - you need to preserve the status (visible/ invisible) in a value attribute of a context node and use this value to bind visibility of the input field on the layout.
    In CRM 2007, there are two main tag libraries (aka BSP extensions) being used:
    - THTMLB (single tags, like input field, button, table, ...)
    - CHTMLB (configuration tags; these are available for forms, tables and trees)
    You should always use these tag libraries in the first place to assure common look and feel and avoid rendering issues.
    Best regards
    Peter

  • Sharing files between Adobe Premiere Elements and Adobe Photoshop Elements

    This question was posted in response to the following article: http://help.adobe.com/en_US/premiereelements/using/WS72D069B5-1663-44a9-BB4E-8182DB2EE6C6. html

    msnexplorer
    I suspect that this latest set of details is clouding the way to success.
    Typically we would be looking at integrated Photoshop Elements and Premiere Elements set. I thought that we were working with Photoshop Elements 8 and Premiere Elements 8.0/8.0.1 which would considered an integrated set.
    Let approach this from a different angle.
    Have you any idea what version of Premiere Elements your project.prel came from? Reflecting back, the concept of integrated combos of Photoshop Elements and Premiere Elements did not appear until the combo of Photoshop Elements 5 and Premiere Elements 3.0/3.0.2. Along with that came the perk of the Premiere Elements' Break Apart Elements Organizer Slideshow to do just that for the slideshow that it received from the Photoshop Elements side.
    Unless you have additional details that would support us getting to the goal, I think that the path of least resistance might be:
    a. if you can open the project.prel in question in Premiere Elements 10, then do so.
    b. After you have the slideshow on the Timeline, then use the Split Clip (Scissors Tool) to cut the slideshow at the spots where you want to insert additional pictures. You may have to add back transitions and such.
    The Break Apart Elements Organizer Slideshow would have been perfect for you to make your edits of the slideshow in Premiere Elements. But that command is only available in Premiere Elements under certain condition:
    a. You must be dealing with integrated combos of the programs, example, 5/3, 6/4, 7/7, 8/8, 9/9, 10/10, 11/11. There are a few loopholes in all that but I do not see them helping us at this time.
    b. You would have had to Output the Photoshop Elements to Premiere Elements with the Photoshop Elements Slideshow Editor "Send to Premiere Elements or Edit with Premiere Elements Editor".
    Bottom line: if your task is going to involve more than the version 8 combo, then I think it best to try to open the project.prel that you have and break it apart yourself with the Split Clip Tool of Premiere Elements.
    And, did you say if this project.prel does open in Premiere Elements 10 without any missing media (Media Offline) messages?
    We will be watching for further information and developments. Please let me know if I have misinterpreted any of your information.
    Thanks.
    ATR

  • Management access (view and add) to calendars

    I've done some research on this, and groups and calendar sharing don't quite seem to handle this properly for our needs...
    We have a simple hierarchy in that people on higher levels need the ability to view and add to tasks and appointments of those who report to them.
    So if Mr. Blue reports to Mr. Red, then Mr. Red as the ability to view Mr. Blue's calendar and tasks, as well as give him new appointments and tasks. But I don't want to create team calendars for this and I don't want to give Mr. Blue the same access to Mr. Red's calendar and tasks.
    Similarly, we have admins who need this type of access as well.
    How can we configure CRM on Demand to fulfill this requirement?

    Create a list in Activities called My Team's Tasks/Appointments. In the user profile make sure you specify Mr. Blue Reports to Mr. Red.
    Then Mr. Red will be able to see all his direct report's tasks. But Mr. Red's boss will not be able to see all Mr. Blue's tasks (Someone correct me if am wrong)
    Another way is sharing calendars. Mr. Blue Can share his calendar with Mr. Red, so Mr. red can see all of Mr. Blue's Appointments.
    Hope this helps.

  • Acrobat SDK: How to get events and write event handlers in c#

    I am trying out to get events from a pdf doc and handle it in my c# code with the samples that come with Acrobat-SDK. 
    I am yet to understand how I can do it. I am yet to discover the class that provides me the events. All the classes currently expose methods only. It might be that I am missing something for sure.
    Can somebody help?
    My use case is:
    the user will open a pdf doc and my application (or my app can trigger opening the pdf doc)
    when the user selects some text from the pdf doc, my app should get the event
    My event can handle the selection and get the selected text.
    Put a bookmark on the selection in the pdf doc (with additional attributes)
    the pdf doc retains such bookmarks when the pdf is saved.
    bookmarks in the pdf should be available for edit.
    A different app/code should be able to parse and retrieve these bookmarks along with the additional attributes of the bookmark.
    I hope, I have not asked too much.

    There are no “event handlers” for C# in the Acrobat SDK.  You will have to “poll” for things such as selected text.
    Also, I don’t know what sort of “additional attributes” you are thinking about, but that may or may not be possible from C#.

  • Spry and Iframe event handlers

    Hi,
    I am trying to implement an ajax simulated file upload using
    spry and iframes. With Spry's power to attach event handlers and
    $$() notation for accessiblities is there a way that you can detect
    when an iframe is loaded using any of spry's utilities.?

    there is nothing other than the basic delay in web overlay.
    I suppose the only thing to do would be to create the whole article as HTML, but I'm sure that would be over the top, it would put me off!
    Alistair

  • Can't double click and add event in month view. HELP!

    For some strange reason, I can't double click to addevent on Ical Monthly view all of a sudden. Whenever I double click, nothing happens. Same thing happens on the year view.
    I can only add event now using the stupid + signs, or go into daily or weekly view. HELP!

    I have this problem too.  Just started today all of a sudden.  When I am in iCal on my Macbook, I double click - like I have been doing since ical was invented - and nothing happens, other than a quick "updating" message.  I tried clicking the "+" button but all it gives me is  "quick event" to add but nothing ever shows up in my iCal calendar on my mac.   When I log into to iCal in the Cloud - lo and behold! - I see dozens and dozens of "new event" entries all over my calendar!  What is going on and how can this be corrected?  At this point my computer's ICal program is basically now useless since I am prevented from adding anything to it. 

  • Not possible to access calendar and contacts hosted on OS 10.8 server

    On OS 10.8 server, /var/log/caldavd/error.log says:
        2012-08-06 21:06:03+0200 [-] [caldav-3]  [PooledMemCacheProtocol,client] [twext.web2.dav.method.propfind#error] File not found: <RootResource: /Library/Server/Calendar and Contacts/Data/Documents/calendar/dav/"user"/user>
    I do see
    /Library/Server/Calendar\ and\ Contacts/Data
    but it is locked for me as user.
    - Owner is `_calendar` (93)
    - Group is `_calendar` (93)
    and it's read, write and execute for owner and group (750)
    Are these the right settings?
    After upgrading to 10.8 server from 10.7 server I could not access my calendar and contacts data anymore, and I looked into the above described log.
    When I am trying to access a calendar from a client via System Settings -- Mail, Contacts & Calendars I get this error:
       A secure connection couldn't be established. Click "Continue" to continue creating the account
    However, it won't access neither calendars nor contacts.
    Or are the permissions not the issue, but something else?

    This could very well be. There are two things:
    1) where would I set "network users"? Is this related to Open Directory? Or to Profile Manager? I enabled both. I looked more closely into the log file. Previously I had the following two lines occurring every time I logged in, they don't occurr anymore.
        2012-08-07 08:06:48+0200 [-] [caldav-6]  [PooledMemCacheProtocol,client] [twistedcaldav.directory.appleopendirectory.OpenDirectoryService#error] Duplicate: "User"
        2012-08-07 08:06:48+0200 [-] [caldav-6]  [PooledMemCacheProtocol,client] [twistedcaldav.directory.appleopendirectory.OpenDirectoryService#error] Duplicate: "User"
    2) The previously mentioned error
        2012-08-07 08:15:24+0200 [-] [caldav-0]  [PooledMemCacheProtocol,client] [twext.web2.dav.method.propfind#error] File not found: <RootResource: /Library/Server/Calendar and Contacts/Data/Documents/calendar/dav/"User"/user>
    still remains.
    Again, I'd be grateful for further pointers!

  • Online file storage with access control and file manager integrated to APEX website

    I have APEX 4.2 website with few user accounts. I would like to share approximately 100 GB of documents to users. Some documents will be public (in some public folder) and everyone with account in my website will be able to download that public files. And some files/folders will be with restricted access and only user with appropriate credentials will be able to download it.
    I would like to find some cheap cloud file storage.
    Some storage that offers plugin/component = file manager that will be integrated to my APEX website and authentication will be transparent to my users (authentication with some API or URL). Every user will see only his files. I want some ready to use component and call only minimum API.
    I would like to integrate that storage to my website or call some user specific URL and redirect my user to some page with file manager.
    All files will be read only for all users.
    Thanks for some tips

    what will you be using for your file manager?  Or do you even know yet?
    I do not have tons of experience but if I had to come up with a solution I would build the interface with APEX and use the database to store the files inside so you can control access.
    You can create a procedure that takes in parameters like username, session id, encrypted session id from the browser cookie and either return the file or give the user an error message letting them know they arent authorized.  You could use plugins to give the users a better file managing experience like the 'multiple file upload' plugin that allows AJAX based multiple file uploading.
    Id put this on an amazon EC2 cloud micro instance.  It's uber cheap.

  • Shared folders (Windows file shares) show access denied and do not prompt for credentials

    Scenario:
    Like other admins, I log on and work as a 'standard user' (usera) with no admin rights anywhere in the domain, to perform admin tasks I have another account (userb) which I authenticate with as and when required. userb has been allocated/delegated permissions
    as required.
    Problem: 
    When trying to connect to shared folders on servers (2008 R2) using a UNC patch via Windows Explorer (Win 7 Ent.), I see an access denied error and do not get an option to supply alternative credentials.
    If I try to connect to the admin shares on the same server (\\server\C$ or \\server\e$) I get an access denied message AND get prompted for credentials. I supply my admin account and gain access as expected.
    If I check share and storage management when attempting to connect, I see that Windows is trying to connect me to each share as usera (which has no access). I understand why I get access denied at this point, but not why it can't just prompt me to supply an
    account that does have access. When trying the admin shares I also see the usera account, but I get a prompt to supply a user who does have access.
    Share permissions on the folders are for example 'Everyone' Full Control.  NTFS permissions are 'userb' has modify (read, execute, list, traverse etc) via a 'Server Admins' AD Universal security group.
    Note: If I do a NET USE from CMD and use the /USER switch, I can access the shares fine. But this is not great for accessing shared folders on the fly from various computers.
    How can I get the other shares on the server to prompt me, rather than just say access denied?
    Many thanks.

    Try to disable guest user from the server
    If you found this post helpful, please give it a "Helpful" vote. If it answered your question, remember to mark it as an "Answer". This posting is provided "AS IS" with no warranties and confers no rights! Always test ANY
    suggestion in a test environment before implementing!

  • Is it possible to duplicate (new and existing) events and paste them into a new calendar automatically?

    I have four google calendars connected to my mac via CalDav, and i need to have all the events in all those four calendars into a new one also in google calendar. So, i want to know if it is possible to configure an automator action or an applescript that duplicate events (the old ones and the new events i'll create) of some calendars into a new one. It would be like grouping some calendars to create a new one, without deleting those calendars, do you understand? Is it possible? I want to made this as transparent for me as possible, automatic.
    Thanks for helping! and sorry about my english

    If you are importing from a CD, you can tell iTunes not to automatically import the CD (Edit->Preferences: When you insert a CD: Ask to Import CD). That's what I do. I then edit the track names and album artists to be what I want before I import the CD. After the import is done, I go back to the CD (by album name in the search bar) and correct the album art.
    The other way (which is what you need to do if you are downloading digital files, such as Amazon MP3) is to remember the "Recently Added" playlist. That's a subset of albums added in the last few weeks, so it presumably should be easier to find the new albums. Again, you can go there and edit the information.
    If "Recently Added" is still got too much, you can edit the smart playlist to shorten the time period and create a "Really Recently Added" Playlist.
    I'm familiar with managing music in large libraries: I've been recording from LP into my iPod this week (plus adding some CDs I had forgotten about), and currently have 26878 tracks.

  • How to reduce file size in flash gallery and add description

    How can i reduce physical filesize of my photo's within the flash web gallery. When i generate the flash gallery it takes the original filesizes to publisch, some jpg files are verry large, not mentioning my raw files.
    How can i reduce the filesize? lets say 600x400 at 96 dpi in stead of 6144x4113 at 300 dpi.
    Or do i first have to reduce the filesize in a automated script within photoshop?
    Also i want to add the description into the flash document.
    How can this be done?
    Help is much appreciated...

    Crizzz wrote:
    How can i reduce the filesize? lets say 600x400 at 96 dpi in stead of 6144x4113 at 300 dpi.
    Or do i first have to reduce the filesize in a automated script within photoshop?
    Use the Image Processor script.
    In Bridge it is: Tools > Photoshop > Image Processor ...
    The interface is self-explanatory.
    Where do you want the description and what do you want?

Maybe you are looking for

  • Heating problem and battery backup

    Recently I bought a macbook pro (7 days). I am facing heating problem and its battery backup is also not good, 3-4 hrs, but company claims 7 hrs. What should I do?

  • Lack of support for Pages

    Stupid, Stupid, Stupid. I upgraded Pages on an iPhone 4 running iOS 7 and then foolishly opened one of my documents that was stored in iCloud. All seemed to be working fine until I tried to open the same document using Pages on my 1st Generation iPad

  • Photo's not syncing between Elements 12 and Photoshop Touch ------ revel or creative cloud - very confusing

    I have photoshop elements 12 (updated to 12.1) And i use Photoshop Touch (version 1.6.1) for my Galaxy tab, (which is stock - un-rooted) I know when i first installed it, any photos i dragged into mobile albums showed up in my Photoshop Touch app. No

  • Action Buttons

    In Flash Pro8, There was "presets" for Actionscript2-buttons. I can not find a simular simpel soulution in Flash CS4. or do we have to write our one scriptcode from scratch in Actionscript 3. 2r2r

  • Back-up of iPhone 4S stops without notice

    I am trying to backup my wife's iPhone 4S on her new Macbook Air, and when I select Manually Backup and Restore --> Back-up Now, it starts backing up and then about a minute or two later it just stops and says nothing. I go into preferences and "devi