Flex :: Build Dynamic UI And Allow A User To Create New Roles And Set Permissions?

Dec 6, 2010

I'm changing the way I build my UI from this:

If ( role == 'Admin' ) myComp.visible = false;

...to a totally dynamic UI based on what is returned from the DB.I've read about role-based access control and understand that it's best that the server generates the UI after a user is authenticated, but apart from re-doing the entire backend to store MXML et al., is there a better approach? Is it a bad idea to have a Permissions object that has properties like:

showTabOne:Boolean = true;
allUserToEditGrids:Boolean = false;

The components visibility and includeInLayout properties will be bound to these values. The UI will also allow a user to create new roles and set permissions.The only drawback I see is that every time a new feature is added, the app will have to be recompiled to update the bindings.

View 3 Replies

Similar Posts:

Flex :: 4 - Is There A Way To Have Global 4 States (user Roles)

Sep 16, 2010

I am having an issue with flex states in my application. What I am looking to do is on creation complete of the application, obtain a user role guest/user/superUser (based on username and password) from a server, then set the state client side based on that information. My .mxml classes need to include certain graphic elements based on that state. I am running into the issues of including elements based on the states defined at the Application level of the project. I am trying to avoid having to define the states in each .mxml file that needs it.


View 1 Replies

Flex :: Check Spring Security For User Authentication And Get Roles?

Jul 22, 2009

I'm using Spring, Spring Security, BlazeDS, Flex and spring-flex.I know that I can call channelSet.login() and channelSet.logout() to hook into Spring Security for authentication.channelSet.authenticated apparently only knows about the current Flex session, as it always starts off as false, until you call channelSet.login().hat I want to do: Check from Flex to know if a user is already in a session.

View 3 Replies

Flash Or Flex Better To Build A User Interactive Ordering "wizard" Website?

Apr 15, 2012

i want to see if these "build a." flash sites (to support a user customized ordering process) are done using regular flash or Flex?


All of these "walk a user" through a customized ordering process and capture all of their selection and showing them all of their customizations (and ultimately bring them to a final ordering screen). What's going on under the hood on these sites and are built in flash or flex? Is the person creating a separate image for every combination that you could possibly select or is something else happening here?

I still can't figure out if Flex or Flash is better for something like this. (why does adobe make these seemingly basic questions so complicated) Are there any good resource or tutorials for try to build this type of functionality in flash on a website?

View 10 Replies

Flash :: Flex - TFS Build 2010 Call An Ant Script And / Or Build?

Mar 31, 2011

In TFS 2010 build, I have a new build and I want to call an ant script that builds Flash. How do I call the ant script? Also How can I compile the Flash directly? I've seen the Power Tools and this question but it doesn't help me as we don't have TFS 2008. I can't find any documentation on how to use the power tools except the 1 sentence on the bottom of download page saying to create your build the old way and import it (which isn't very helpful). I've installed the power tools on the agent computer but I don't see any new options in the Toolbox when I'm designing the build flow.

View 2 Replies

Flex :: Creating Ant Build Script To Build Only When A Dependency Was Updated?

Apr 14, 2011

I just started working with ant a few days ago. Right now I have a general buildall.xml which should call each project's build.xml. Because some projects depend on each other, I need to rebuild some other projects which depend on it. This isn't a problem--I'm just setting the depends property of the target. However, ant is always building the dependencies, even when the files haven't changed.Let's say project1 has no dependencies; project2 depends on project1; project3 depends on project1, 2; project4 depends on project1, 2, and 3; and so on.I could hack a solution which looks at project K, and checks if project 1 .. project K have updated files using uptodate. If so, then run the target. This is messy and appears unnecessary.

What is the cleanest way to implement this?EDIT: So I decided to just hack in a bunch of targets, "check_projectK" where it does the uptodate checks on all of its source files, its build file, and the build files of the 1 .. K-1 projects. Due to dependencies, this is always handled correctly. However, this is still a large amount of copy and paste for a large workspace.

View 1 Replies

Flex :: Security Sandbox Violation: Lack Of Policy File Permissions

Apr 15, 2011

I'm using as3httpclientlib to post data to my web service, but I'm continually getting the following security violation. Does anyone know how to resolve this? My crossdomain.xml file is below the security violation notice. NOTE: I'm using apache to proxy requests to the web service, therefore the target url/port and the url/port serving the applet are the same -- [URL] Also, the rossdomain.xml file is located in the root of the web app which serves the applet rather the web service; however, since the requests are proxied the url for the file is [URL]


View 1 Replies

Flex :: Adobe Air - Create / Read User Preferences XML

Mar 15, 2012

I need to create and read a user preferences XML file with Adobe Air. It will contain around 30 nodes.
What's a good method to do this?

View 1 Replies

ActionScript 3.0 :: Build A Small Viewer That Will Allow The User The Ability To Scroll Through A Certain Number Of Thumbnails?

Dec 3, 2008

Im trying to build a a small viewer that will allow the user the ability to scroll through a certain number of thumbnails. I'm having trouble on how to go about this. I haven't used flash or actionscript 3 in quite a while so Im pretty rusty when it comes to perspective on how to go about this. I basically want the user to interact with a scroll bar (up and down) to move through a certain number of thumbnail pictures (125 x 125).

View 3 Replies

Make An Animation Where A Dice Roles From The Left Of Screen Towards The Middle

May 8, 2010

1. I would like to make an animation where a dice roles from the left of screen towards the middle. Bit like this: I am thinking an animation, then put it on a path (not sure how to do this, but I know it can be done.) I have heard that swift3d could help me here, if so, give me a heads up. I could also make it an animation and make it bounce on the spot and use the inflash camera and draw back the distance to seem as if it is moving forward. Basically the main problem is how do I make the animation of the cube?

View 6 Replies

Actionscript 3 :: Object Pool - Create Ball Objects When The User Holds Down The Mouse Stops When User Lifts Up Mouse?

Dec 24, 2011

I've been reading a lot about the benefits of Object Pooling. Found some "tutorials" online, all above my skill level. Can anyone please show me an extremely simple example of an Object Pool. What my game does is creates Ball objects when the user holds down the mouse, stops when user lifts up mouse. I need to store these Ball objects in an array(or Vector), and hit test them with other objects, removing them from the stage when the hit another object. I'd like to create a pool of say 20 of so, created once, and recycle them.


View 1 Replies

Flex :: How To Create A Dynamic Flex Datagrid

Aug 31, 2009

I'm trying to create a dynamic datagrid in Flex. The data is coming back fine and I can add the column headings. I need to do it this way as the column names are dynamic and coming from a mysql database.he values from re.result.resultSet.results[j].notes into the data fields?

import mx.rpc.events.FaultEvent;


View 2 Replies

Flex :: Create Dynamic Pie Charts?

Jul 17, 2009

Is it possible to create below type of pie charts and values create dynamically (please go through the link)?

View 3 Replies

Flex :: Create Very Dynamic Menu Like Picnik's?

Feb 2, 2010

URL...Accordion like components (but multiple items can be selected)Each stack has multiple child stacked.The whole menu resizes depending on how many stacks are selected and a scrollbar is also shown if necessary.So how Do I go about creating a menu like this? Any pointers to boot?

View 1 Replies

Flex :: How To Create Dynamic Hierarchical Charts

Apr 17, 2010

I am developing a tool to create dynamic hierarchical charts. I am able to create object i.e circles and link it dynamically. I want to set properties for those objects.

View 1 Replies

Actionscript :: Create Dynamic DateTimeAxis In Flex?

Jan 12, 2012

I have a chart with X-axis showing timeline and Y-axis showing value for an object. The time line values are in 'milliseconds'. I have give the user a way to select timeline, user can select a day/week/month/months. So, in my Chart I want to show all the data points for the selected range but want to limit the date labels displayed on the X-axis. For Ex: if user selects a week, I want to display Mon to Sun on the X-axis. And if user selects a day, want to display a label for every 3 hrs like that...

I guess it is possible if only, I look at the selected time range at run-time and based on the starting (t1) and end (t2) time, I make a decision. Is there any API available in Flex's DateTimeAxis to achieve this ? Or any other ideas on how to get this working ?

View 2 Replies

Flex :: Create Dynamic Pivots With Grouping On Fly?

Jan 17, 2012

How ever I want to be able to do this dynamically.

The usage in the project is to be able to represent any data from a database, with any number of possible groupings on the horizontal and vertical axis.

Could someone offer some guidance on the most efficient structure to get an XML return in order to build these kind's of pivots on the fly. All the examples I have seen are statically defined. What I would like to do is be able to have a structure for a return that could give any level of grouping and data return from a web service call.

The tool I'm building is a reporting tool, so users could drag any DB field into column or row potentially so the key thing is the ability to define and build "any structure" a user would want.

View 1 Replies

Java :: Create A Dynamic Datagrid In Flex?

Jan 26, 2012

I am trying to create a datagrid in FLEX. The trouble is that I want it to be 100% dynamic - i.e. columns & data.

Basically I need to populate the datagrid via a result set from a database query, this data will be gathered via a standard java spring jdbc dao layer. The query is as generic as 'select * from tablename', so the result set can change from query to query.

My plan is to convert this result set into some form of java object, my initial thought is a Map of some kind that will contain the column name and values for a row.

The bit Im struggling with is that I need to convert this result set into a ActionScript object (via graniteds) that I can then use to populate a datatable.

I have seen lots of examples on how to dynamically add columns to the datagrid, and tie in the data via the datafield object - but Im stuck as to how I do this if I dont know how many columns I will have or what the column names will be.

View 1 Replies

Data Integration :: Build A Dynamic Web Database ?

May 15, 2007

I would like to build a dynamic webdatabase.(One form that updates text and bit-maps.)I must use Microsoft ACCESS or mySQL.Is it possible and is there any video tutorials out there?I heard a lot of "tissling and tassling" that flash is not
well suited to work with databases.

View 1 Replies

Actionscript 3 :: Build A Dynamic Resize-able Flash Player?

Nov 9, 2009

Morning stackers! So my question today isn't dealing with any code, but how to go about this the correct way from the start. I have a video player built to a static size (max: 800x600) which I'll have to re-code every time I need it to be a different size. What I need it to do in the near future is dynamically resize itself and all the elements inside of it based on 1 width variable that it will received either from HTML or XML. Now to me there are 2 ways to go about this:

Start with the smallest size possible and resize upwards, but I'm unsure of how the Flash movie will actually expand upwards as of right now.
Or 2, start with the largest size possible (in this case 800x600) and size everything down. Step 1, I think seems to be the better way to go about this (ala YouTube style), but Step 2 also seems like it could be the easier way? A friend of mine mentioned that I should go with the larger size and have elements resize in each class, then fix to the upper left hand corner. However for the player to fit inside of certain div columns on sites, blogs whatever he said that there will have to be an HTML/CSS side of this... meaning that the div containing the resized flash player will have to cover up the areas of the Flash movie that are not to be shown? Is that possible to put a 800x600 flash movie into a div that smaller then 800 pixels wide? And cover it up with another div?

View 2 Replies

ActionScript 2.0 :: Build A Slider Showing Dynamic Percentage?

Oct 8, 2008

I want to build an interactive horizontal slider that shows a percentage number depending on where the slider is located. here goes:

<---------45% X 55%------------->

Basically, sliding "X" either left or right would reflect the correct percent in the numbers. For example, sliding "X" all the way to the left would show the left percent at 100% and the right percent at 0%.

View 2 Replies

Flash :: Build A Web Gallery With Amazing Slideshows With Dynamic XML Files

Aug 10, 2010

Build a web gallery with amazing flash slideshows with dynamic XML files Screenshot: Attachment 72395 Features Transitions, zooming and panning effect You can choose from Random, Wipe from Left, Fade to White, Cross Expansion and other 60-plus transition effects. Zooming and panning effect is optional for advanced flash templates. XML-driven This flash slideshow are XML-driven. The XML document allows more personalized controls over the flash. Auto-playback and repeat mode The flash slideshow will play automatically after preloading, and it can repeat playback.

Dynamic customization Besides XML control, the advanced templates provide many more custom options, so that you can create slideshow that fits into your existing web design: width , height, border color, background color, thumbnail size, etc. More about dynamic customization Usage and demo visit: [URL]

View 1 Replies

Xml :: Create A Dynamic Xml Which Populates An Advanced Data Grid In Flex Air Application?

Dec 28, 2009

Is it possible to create a dynamic xml file which changes in some fields to populate an advanced data grid?I have to display continents, countries, society and its values but i want to change randomly only the value and not all toegether...The client side application call the database by an asynchronous httpservice.LCDS, Blaze or similar are not allowed.

View 1 Replies

ActionScript 3.0 :: Build A Web Gallery With Amazing Flash Slideshows With Dynamic XML Files?

Aug 10, 2010

Build a web gallery with amazing flash slideshows with dynamic XML files


Attachment 72395


�Transitions, zooming and panning effect You can choose from Random, Wipe from Left, Fade to White, Cross Expansion and other 60-plus transition effects. Zooming and panning effect is optional for advanced flash templates.

�XML-driven This flash slideshow are XML-driven. The XML document allows more personalized controls over the flash.

�Auto-playback and repeat mode The flash slideshow will play automatically after preloading, and it can repeat playback.

�Dynamic customization Besides XML control, the advanced templates provide many more custom options, so that you can create slideshow that fits into your existing web design: width , height, border color, background color, thumbnail size, etc. More about dynamic customization.

View 2 Replies

Flex :: Adding Runtime-library-path To Flex Build Configuration Using Ant Mxmlc Task

Feb 9, 2011

I'm trying to build a flex project, linking it to some RLSs. When setting up the project in Flex Builder, the corresponding "build configuration" (that I got by adding -dump-config to the compiler options) generates (among other things) a tag like this :



View 2 Replies

Publish A SWF With Local Access Permissions?

Nov 22, 2011

We have been purchased a training course made with Flash. When we received the course (a SWF file with external files inside a "data" directory, images, videos, etc), we realized that it was necessary to explicity give permissions to Flash Player to access the content in the CD drive. We think that is not a good idea to distribute a CD where the user have to do "extrange things" to make it work.

So, we talked with the developer and he sent us an .EXE file with the course, that obiously works fine (al the content in the CD is readed without user interaction), but it only works in Windows machines.

The question is: is it possible to publish an SWF that can access to the CD content without user interaction? We are almost sure that the answer is "yes" because we have a lot of "magazines" cds with SWF files that load the contents from CD (text and images) and they work perfectly "as is".

View 1 Replies

Facebook :: Cannot Get Extended Permissions To Work

Nov 4, 2011

I'm working with the Facebook Actionscript API (no PHP or Javascript), and I'm having trouble granting access to extended permissions, like publish_actions. I'm using the following login:
var opts:Object = {perms:'read_stream,publish_actions,offline_access,user_photos'};
Facebook.login(handleLogin, opts);

I get two "Request for Permission" windows. The first says my app needs access to "Your Photos". The second says my app would like permission to "Access posts in your News Feed" and "Access your data anytime". Why can't I request access to "publish_actions"? It looks like there may be two permissions levels - regular and "extended". It looks like extended permissions may require a "scope" parameter, instead of "perms". How/where to use the "scope" parameter.

View 1 Replies

Flash :: Run Application Without Install Permissions?

Jan 16, 2012

I'm trying to build an app, which should have Flash Player control, which plays SWF from server (certain URL). For Flash Player ActiveX you have to save SWF file to a temporary location to load it and play, isn't it? You'll have to create a corresponding link that you can pass to the Flash Player ActiveX and then delete SWF file after it is played. Of course, high security level can't be guaranteed, but I think it's good, if at least no temporary files are created (can be intercepted LOCALLY). So the question is how to make Flash Player ActiveX be able to load SWF file directly from any source without usage of temp files?

View 1 Replies

Flex :: Build Flex Stack Bar Chart From Objects Array?

Apr 21, 2010

I have a dynamic ArrayCollection that will contain a unknown number of objects of type MyObj:

class MyObj


View 1 Replies

Eclipse :: Retrieve Build Information After Build Completes In FDT?

Jul 30, 2011

Using FDT, when I have a debug configuration with several operations in the launcher chain and the final launcher opens in Flash Player, how can I retrieve the build output from the console once the build is complete and Flash player is running?

It seems that once Flash Player has started the console clears to make way for the application's trace output, but I need to be able to look back over the events and build times for each item in my launch chain while Flash Player is running. Is there a setting I can enable to either log my build output to a file or to preserve it in the console?

Edit: I know I can still read the info when building normally, this question is specifically for building with the debugger.

View 1 Replies

Copyrights 2005-15 www.BigResource.com, All rights reserved