Direct pixel access on MovieClips | AS2.0.

How can anyone read and change the RGBA pixel values of
MovieClips in AS2.0?
This question comes up, when we need to apply self coded
filters on a MovieClip.
For example I want to make a MovieClip to appear mirrored and
it's pixels to change their alpha from 100 to 0, from the top side
to down. As far as I know all Flash filters are applied to the
whole MovieClip. Thus I guess the only way is to make a function
that will take the pixels RGBA values and their positions relative
to the origin of the MovieClip instance and change dynamic their
values. This technique is used in many Photos presentations as far
as I have seen, where the photo is apperead as mirrored and
gradient-faded.
In another case I want a dynamic Fish-Eye filter to be
applied to panoramic moving image, giving in that way the sense of
depth to the viewer. In order to do that I have to know the XY-RGBA
(A for Alpha) values of each pixel, and to be able to change them
dynamically on runtime.
Anyone that can help?...
Thanks.

a) yes only for bitmap image data - however you can 'draw'
any on stage clip into a BitmapData object. Then you can
attachBitmap using the Bitmap data object to the current clip.
b) yes - in the colors pallet if you have applied a gradient,
you can select any of the color points on the bar and reduce the
alpha by any amount.
However, if you are planning on using this for the 'mirror'
effect - you will need to create a mc that 'overlays' the newly
created mirror image clip and then use it to mask the mirror -
remember that when using a alpha based mask both the mask and the
maskee need to have their 'cacheAsBitmap' properties set to true.
sorry for jumpin in there kg :)

Similar Messages

  • Filter on the reports created using DIRECT DATABASE ACCESS in obiee 10g

    How do i filter on the report that is created by using DIRECT DATABASE ACCESS in obiee 10g?
    I have reprot A with link to report B, report B is created using DIRECT DATABASE ACCESS. so it is just a table, but i need to filter out 2 columns.
    here is the query in REPORT B:
    select strm, acad_group, crse_id, class_section, count(emplid) from v_crse_enrl
    group by crse_id, strm, class_section, acad_group;
    the link in REPORT A:
    '<a target="_blank" href="'||VALUEOF("bi_link")||'Go&Path=CF_CROSS_TEACHING_LIST&ACTION=Navigate&col1=STRM&val1='||view1_DIMEN.STRM||'&col2=CLASS_SECTION&val2='||TRIM(view1_DIMEN.CLASS_SECTION)||'">' ||view1_dimen.class_id||'</a>'
    from this link to report B.
    thank you!!

    I didnt tested using url, but the same works with using presentation variables.
    To your direct sql add where clause for those two columns like WHERE col='@{col1}' and col ='@{col2}'
    and try to run from url.
    let me know updates

  • Direct File access feature supported in OWA 2010 ?

    Is the direct file access feature supported in exchange 2010 ?
    If not, why is there still an option to enable and customize it in 2010 ?

    Is the direct file access feature supported in exchange 2010 ?
    If not, why is there still an option to enable and customize it in 2010 ?
    It is an orphan that will be removed from EMC is a future update. The feature itself has been removed from 2010, you can no longer access SharePoint or file servers through OWA. There is still "direct file" access in OWA, but in the spirit of being able to directly open an attachment without being forced to use the web viewer.Brian Day, Overall Exchange & AD Geek
    MCSA 2000/2003, CCNA
    MCTS: Microsoft Exchange Server 2010 Configuration
    LMNOP

  • I accessed the page protected by ADF security using direct url access attac

    hi,
    I played with my application which is based on SRDemo code (with added ADF security handling protection of resources) using direct url access scenarios. I was able to access a protected page as authenticated but not authorized user. I'll try to explain what I did.
    There are two folders/web resources in my application, faces/folderA/* and faces/folderB/*.
    roleA only is configured to access first web resource and the roleB is configured to access the second resource.
    I used ADF security to authorize only roleA for page in folderA and to authorize only roleB for page in folderB.
    I configured error pages in web.xml:
    <error-page>
    <error-code>400</error-code>
    <location>faces/error/error400.jspx</location>
    </error-page>
    <error-page>
    <error-code>401</error-code>
    <location>faces/error/error401.jspx</location>
    </error-page>
    <error-page>
    <error-code>403</error-code>
    <location>faces/error/error403.jspx</location>
    </error-page>
    <error-page>
    <error-code>404</error-code>
    <location>faces/error/error404.jspx</location>
    </error-page>
    <error-page>
    <exception-type>java.lang.Throwable</exception-type>
    <location>faces/error/error500.jspx</location>
    </error-page>
    Other config params are:
    <login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
    <form-login-page>infrastructure/ABLogin.jspx</form-login-page>
    <form-error-page>faces/error/error401.jspx</form-error-page>
    </form-login-config>
    </login-config>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>AB Prototype</web-resource-name>
    <url-pattern>faces/ABAbout.jspx</url-pattern>
    <url-pattern>faces/ABHelp.jspx</url-pattern>
    <url-pattern>faces/ABLogout.jspx</url-pattern>
    <url-pattern>faces/ABWelcome.jspx</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>A</role-name>
    <role-name>B</role-name>
    </auth-constraint>
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>AZone</web-resource-name>
    <url-pattern>faces/folderA/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>A</role-name>
    </auth-constraint>
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>BZone</web-resource-name>
    <url-pattern>faces/folderB/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>B</role-name>
    </auth-constraint>
    </security-constraint>
    <filter>
    <filter-name>adfBindings</filter-name>
    <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
    <init-param>
    <param-name>unauthorizedErrorPage</param-name>
    <param-value>faces/error/error401.jspx</param-value>
    </init-param>
    </filter>
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jspx</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <url-pattern>*.jsp</url-pattern>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>ERROR</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <url-pattern>*.jspx</url-pattern>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>ERROR</dispatcher>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>adfAuthentication</servlet-name>
    <servlet-class>oracle.adf.share.security.authentication.AuthenticationServlet</servlet-class>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    Once I authenticated as user in roleA I was trying to directly access URLs accessible only by users in roleB. In the beginning everything worked OK: I was dispatched to error401.jspx page with message Not authorized... etc.
    But I kept trying to access different URLs, like http://localhost:8988/AB/faces, http://localhost:8988/AB/faces/folderB, http://localhost:8988/AB/faces/folderB/pageB.jspx, http://localhost:8988/AB
    (not necessarily in that order, I played for a couple of minutes and the system would always dispatch to error401.jspx page if unauthorized attempt. But all of sudden, to my surprise, I got the pageB.jspx page while logged in as user belonging to roleA!)
    Not sure how that happened but the connectedUser on pageB (#{userInfo.authenticated}) shows that I am logged in as user whose role is A.
    I checked Authorization in ADF security and it is still correct: pageB is only accessible to roleB and pageA is only accessible to roleA.
    I hope I made some stupid mistake in my configuration?

    Hi,
    ADF Security is JAAS permission based and not container managed. Note that unless you explicitly configured ADF Security you don't use ADF Security but container managed security, which is all that I can see in your configurations.
    Not sure which version fo JDeveloper you use, but if you could change the following setting
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>AZone</web-resource-name>
    <url-pattern>faces/folderA/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>A</role-name>
    </auth-constraint>
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>BZone</web-resource-name>
    <url-pattern>faces/folderB/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>B</role-name>
    </auth-constraint>
    </security-constraint>
    to contain jspx file references instead of wildcards like in faces/folderB/* then what you see should no longer be possible. There was a known issue with the security settings in SRDemo that was caused by a defect in OC4J container managed security. I would expect this issue to be fixed in a more recent version of OC4J.
    However, the work around until then is to protect all JSPX files in a directory instead of using wild card matches
    Frank

  • Adding direct server access to CSM in bridge mode

    I have a CSM that I have set up in bridge mode and want to allow direct management access to the real servers.
    It looks like this. MSFC 10.1.100.1
    CSM 10.1.100.3
    Reals 10.1.100.10
    10.1.100.20
    10.1.100.25
    Virtual 10.1.100.130
    10.1.100.140
    I tried to use the same method that I found for routed mode on CCO.
    Serverfarm SERVER-SUBNET
    No nat server
    Predictor forward
    Vserver DIRECT-ACCESS
    Virtual 10.1.100.0 255.255.255.0 tcp any
    Serverfarm SERVER-SUBNET
    Inservice
    The next step in the documentation says to add a static route to the CSM
    Ip route 10.1.100.0 255.255.255.0 10.1.100.3
    But this does not make since since the MSFC 10.1.100.1 address is already the default gateway.
    So is there another way to configure bridge mode and enable direct management access?

    After I thought about bridge mode again and took out the direct-access and server-subnet commands. I tested again and I can now directly access the servers.

  • Can't activate direct data access for VProvider

    I try to activate direct data access for BC VirtualProvider 0TR_CM_1. When I open "Activate Direct Access" dialog I don't see any assigned source systems in "Source Syst. for InfoSource 3.x" nor  any in "Data Transfer Processes" tabs. Does it mean what non of source systems don't have direct access data sources? Or in other words - why I can't assign any source system for the BC VProvider?

    Hi,
           While creating datasource there is an option for direct access.This option  shows if the DataSource supports direct access to data.
    A RemoteProvider in BI can only get data from a DataSource that supports direct data access.
    It is only useful to access data directly if the quantity of data to be extracted can be restricted to a suitable selection.
    Hope this helps
    Regards
    Karthik

  • Difference between Realtime Data Acqisition and Direct Data Access ?

    Hi experts,
    What is RDA and DDA and whrere these two are used ?
    What is the Difference between Realtime Data Acqisition and Direct Data Access?
    Please explain me in a detail manner, i will assign points for ur valuable answers..............

    Hi,
    Eventhough the aim of the two methods are to report on the latest data, there is a difference in both.
    In Realtime Data Acqisition you are loading the data into BW and then reporting on that data from BW Infoproviders.
    http://help.sap.com/saphelp_nw04s/helpdata/en/52/777e403566c65de10000000a155106/content.htm
    I think you are refering to Virtual providers by the term Direct Data Access. In  Direct Data Access you are not loading data into BW. Data is residing in R/3 itself. Your reports will fetch data from R/3 directly. The data is called during execution of a query in the source system.
    http://help.sap.com/saphelp_nw04s/helpdata/en/23/c0234239f75733e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/13/3e34429692b76be10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/da/5909392a430303e10000000a114084/frameset.htm
    Hope this helps.
    Thanks,
    JituK

  • Auditing direct database access

    I'm a database security engineer and quite unfamiliar with SAP.
    From the viewpoint of SOX/IT control, I just wonder if there is any necessity to audit Oracle database using Oracle's auditing features (audit_trail=db/os).
    Privileged Oracle users can login to the database bypassing SAP application. In addition, they may be able to change any financial data by executing DML commands directly.
    Is such scenario realistic?
    I'd like your opinions.
    Thanks in advance,
    ebi

    Hi Ebi,
    in my opinion all that Auditing is only interesting to watch your Administrators hands...
    What do you need to access the oracle database?
    - client-software ... at least a jdbc driver
      (May be available on many computers)
    - the hostname, the listener port, a network connection that works and the DB SID
      (that should not be so easy... DB Server should be in a seperate network zone... at best only reachable via the Application Servers)
    - OR: physical access to the database
      (if that is possible... don't think of auditing anymore... there is no security then)
    - a valid user account that has access to the SAP<sid> schema
    (Ok, that should only be the SYSDBA/SYSTEM account, nothing else. Access to these accounts has to be highly secured. Not so much technically but much more on the "human side". It just has to be a real secret. Period.)
    - you've to know at least a bit about the datamodel of SAP databases. Not that easy in a system with more than 40000 tables...
    Really problematic (in my opinion) are the approaches to "connect" the SAP database to the other systems in the company. People make up export and import interfaces (sometimes also direct table access) on database level.
    Let's face it: businesswise security is gone in these cases.
    SAP systems rely on the access "from above", that is through the interfaces and APIs.
    Direct database access is like taking money out of the banks safe instead of withdraw it.
    To come back to your question: if you want to check the dba actions, yes auditing is a nice thing. But it is just a way to proof later on who did something wrong. It's a finger pointing tool.
    I would put more effort in trying to avoid such things from happening - limit the access to the database. Double check changes to the database - via procedures (e.g. no interactive sqlplus access to the productive database) and 4 eyes checks.
    Best regards,
    Lars

  • Disable Direct File Access for owa

    Hi
    How can i exclude some users from disable Direct File Access on my OWA
    Thanks 
    MCP MCSA MCSE MCT MCTS CCNA

    No problem Yasser.
    Once you have created a policy with the settings you require you can apply it to a user (or multiple users) by using either the ECP or using the shell:
    In ECP there are 2 ways:
    1. Select the mailbox (or mailboxes) then select "View Details" under "Email Connectivity". This will open a dialog allowing you to apply the relavant owa policy.
    2. Edit the mailbox and navigate to "Mailbox Features". Then select "View Details" under "Email Connectivity". This will open a dialog allowing you to apply the relavant owa policy.
    In Shell:
    Set-CASMailbox -Identity <email address> -OwaMailboxPolicy:<owa policy name>
    If you need to do multiple mailboxes using the shell you can pipe it through a Get-CASMailbox command.
    More details can be found here:
    https://technet.microsoft.com/en-us/library/dd876884(v=exchg.150).aspx

  • Direct file access

    Hi All,
    I am new to weblogic server.
    I have developed a web application using Sun App server ealier. I am converting the project to weblogic server now. In that project i used the docroot of the Sun App Server to direct file access, like http://something.com/_test.txt_ . Here in the weblogic i need to achieve this. pls, anyone knows how to do this help. I am stucked with this issue.
    thanks
    sujith

    Is the direct file access feature supported in exchange 2010 ?
    If not, why is there still an option to enable and customize it in 2010 ?
    It is an orphan that will be removed from EMC is a future update. The feature itself has been removed from 2010, you can no longer access SharePoint or file servers through OWA. There is still "direct file" access in OWA, but in the spirit of being able to directly open an attachment without being forced to use the web viewer.Brian Day, Overall Exchange & AD Geek
    MCSA 2000/2003, CCNA
    MCTS: Microsoft Exchange Server 2010 Configuration
    LMNOP

  • Accessing a movieClip inside a movieclip in as2

    I am trying to get to a
    movieclip nested inside a movieclip in As2:
    MovieClip1.movieClip2.movieClip3.gotoAndStop(2)
    MovieClip1, MovieClip2, MovieClip3 is instances Names.

    Your approach is correct.  Based on the change in spelling between the two lines you show, if you are having a problem, that may be the cause.

  • How to access child movieclip info of an object in an array?

    Hi
    I've dynamically created a whole bunch of movieclips.
    I've given each clip a name based on a variable number:
         mc.name = "mc"+i;
    I've also use addChild to add a couple of dynamic text fields to each movieClip, named myText1 and myText2.
    I then push each movieClip object into an array:
         myArray.push(mc);
    When I addChild the movieClips, they display fine, complete with each textField.  And if I use the following loop to trace the name of each clip in the array, I get:
         for(var i=0; i<myArray.length; i++)
                   trace(myArray[i].name);
    output:
         mc1
         mc2
         mc3
         mc4
    etc
    What I want to now is be able to access the text fields within each movieclip in the array.  However, I am getting errors when I try different ways.  For example:
         for(var i=0; i<myArray.length; i++)
                   trace(myArray[i].myText1.text);
    gives the error: A term is undefined and has no properties.
    How do you access the values and contents of the children of movieClip objects that are stored in arrays?
    Thanks
    Shaun

    For whatever reason, dynamically added children cannot be targeted that way.  If you added the textfields dynamically you may need to use getChildByName() to target them.  It partly depends on how you created them and whether or not you have direct access to them.  Aside from that you could also assign the textfields to variables that you create for the mc and target those by their variable names.
    The following demos these two approaches:
    var mc:MovieClip = new MovieClip();
    addChild(mc);
    var tf:TextField = new TextField();
    tf.text = "this is text";
    mc.addChild(tf);
    // first way
    tf.name = "tfield";
    trace(TextField(mc.getChildByName("tfield")).text);
    // second way
    mc.tfid = tf;
    trace(mc.tfid.text);
    You could also store the textfields in arrays as they are created and have direct access to them with out the need to target the mc... the index should be the same as that which you use for the mc anyways.

  • Sap Content server Direct Browser Access - docGet

    We use SAP Content Server for DMS doc storage. Docs are stored without digital signing.
    I am looking to access dms original files directly via web browser using the "docGet" command.
    My url looks as shown:
    http://pswdf009:1080/ContentServer/ContentServer.dll?docGet&pVersion=0045&contRep=K1&docId=361A524A3ECB5459E0000800099245EC
    When I call the url, browser does not seem to be able to read the file type of the server response. An "open/save" dialog appears and when "open" is selected a subsequent dialog appears asking which application to use to open the file. Once the correct application is chosen, the document is displayed correctly.
    Is there some way to instruct the browser the content-type is application/pdf?
    Will CSAdmin parameter changes have any impact?
    The browser is Internet Explorer 6.
    Any help is appreciated.
    Roger

    Hi Roger,
    you may of course find an answer here.
    But mySAP PLM DMS is not a focus topic here (besides maybe connecting it into the SAP Portal and KM). Thus, you may be better off using a contact or a message to PLM.
    Regards, Karsten

  • SRM 7.0 business object / individual procurement document direct URL access

    Hello,
    While our Basis team is configuring the Portal integration with our newly upgraded SRM 7.0 system, I am wondering if it's possible to take a sneak peak at the business object on the WebDynpro screen, for example, via SICF webdynpro service, such as
    /default_host/sap/bc/webdynpro/sapsrm/wdcc_v_rfq_puchaser
    After activating all relevant services (as far as I understand), I tried to access the following URL directly on the browser:
    https://<server;domain>:<port>/sap/bc/webdynpro/sapsrm/wdcc_v_rfq_purchaser?sap-client=010&sap-language=EN?
    I encountered the "Access via 'NULL' object reference not possible" exception on the web page. I think it's due to the missing object type and object id reference on the HTTP parameters. But what are the parameter name(s) that are required on the URL? Does anybody have the experience in accessing an individual document through direct URL?
    Thanks,

    This question has been answered by the following blog:
    /people/ulli.hoffmann2/blog/2009/10/07/srm-70-running-it-without-the-portal

  • JSF 2.0 page navigation vs direct page access

    I've been experimenting with JSF for some time now and I still don't understand the page navigation part. I know that in JSF, if you aren't using the redirect option in navigation that the URL is one page behind the page you are on.
    I've seen articles where people say you should put your pages in a directory under WEB-INF to protect against directly accessing the page. I don't understand how you can create an application that is multiple pages using that option, because won't you run into the problem of having a form with an action URL of WEB-INF/somepage.xhtml?
    I've also read articles that say the way to fix this is to add security-constraints to web.xml that prevent "direct access" to pages, when you want your user to follow a page flow, such as start on page1.xhtml, then page2.xthml, then end on page2.xhtml. If page3.xhtml depends on page2.xhtml, the articles I've read say that a security constraint prevents users from simply requesting page3.xhtml out of sequence.
    And what happens if the page you are on encounters an error or the session times out, which page handles that? The one you're on, or the one from before that forwarded you to the page you're on?
    In this example, should page2.xhtml and page3.xhtml go in the root of the webapps directory, or in a directory under WEB-INF?
    Webapps
      index.xhtml
      page1.xhtml
      page2.xhtml
      page3.xhtml
      WEB-INF
        faces-config.xml
        web.xml
        page-directory
          page2.xhtml
          page3.xhtml

    A session timeout should actually net a view expiry exception.
    You do know that JSF 2.0 made page navigation that bit easier by not requiring you to do the XML configuration? There is now a convention built in plus some new components to add GET enabled requests to the JSF lifecycle (notably h:button and h:link). If you have an action method that returns the following:
    public String doSomething(){
      return "something";
    }then JSF will by default want to render a view 'something.xhtml' when you don't define any navigation rules. If you want to make that a redirect you can do this:
    public String doSomething(){
      return "something?faces-redirect";
    }(of course this is a prime target to turn into a utility method on a backing bean base class).
    Navigation rules are still necessary when you want to put views in a subdirectory, but at least this way you can greatly simplify general cases. Other than that I can only say: research research research because this material is vital to understand if you want to be productive using the framework; navigation and the 6 JSF lifecycle phases are two items you should put on the top of your list to hammer out until you really get it. A good JSF book will help you immensely there. Balusc's blog is also a good source of deeper understanding:
    http://balusc.blogspot.com/
    Most of his articles are on JSF 1.2 but most of the information still applies.
    Oh and its no surprise that you're a bit confused - this framework is not easy to pick up especially when you don't know any other web frameworks. If you keep running into a wall you should consider checking out something else like Wicket or Play framework. It might just be that JSF simply isn't the tool for the job you're trying to do.

Maybe you are looking for

  • Delivery date in contract

    Dear Friends, Can we maintain one tentative Delivery date in contract? I know contract dont have schedule lines.....and wont transfer any reqirements .....but I need to give  one tentative delivery date ....just for the information to pass to the pro

  • Solaris 10 patches for Oracle Database 11gR2

    Hi, I downloaded Oracle Solaris 10 s/w from e-Delivery and got it installed. For Oracle Database 11gR2 I also need the followging patches: 120754-06: SunOS 5.10_x86 libmtsk 119961-05: SunOS 5.10_x86: Assembler 119964-14: SunOS 5.10_x86 Shared library

  • Interfacing with Microsoft Word

    Issues with taking Word to FrameMaker, FrameMaker to Word, and troubles with the Word and RTF import/export filters abound.

  • What is the weblogic process or file opened with udp port?

    I'm running weblogic 8.1 on linux AS 3.0, whenever I bring it up, there is a process that listens on udp, although my weblogic runs on default tcp port 7001. What file or process opened with up port (32770)? I'm curious to know whats running with udp

  • Can't turn off Adobe Captivate 4 recording session

    I'm looking for a program to recreate some of our company CBTs that where done in Authorware. I was told to look into Captivate. I now have the trial version and I can not get past a recording session it wants me to delete so that I can record again.