Embed A Flex Grid Control In Asp Page And Pass Parameters To Gridcontrol?
Oct 13, 2010I have done a datagrid in flex and would like to embed it in an asp page. How do i go about that?
View 1 RepliesI have done a datagrid in flex and would like to embed it in an asp page. How do i go about that?
View 1 RepliesI'm trying to pass parameters from my html page as querry string.[code]...
ie. no parameter is received from page. I've tried lots of changes.but couldnt make it.
i am wanting to know how much I can be sure that users of my website will not be able to pass bogus variables to my Flash movie. Basically I will have some features available to certain users and I realise that for the average user they will not know anything about how to send spoof vars but is it possible for someone to change the variables sent using SWFObject when a page loads and thus be able to use the functionality that I am trying to disable for them.I have a PHP (my_flash_movie.php) page that calls a function from an included globals.php file to determine if the user can see the restricted functionality is_ user_a_subscriber($_SESSION['user_id']); which returns 1 or 0. This 1 or 0 is then passed to Flash which enables or disables certain features. I dont want someone to be able to send a 1 instead of a 0 basically. This isnt a site where security is critical and the functionality that is disabled is not really critical either so wouldnt be too bad if this happened but im just curious about this and wondering if I should think of another way to pass these vars that might be more hidden.
View 3 RepliesI am using FlashVars to pass params in the swf but it is not working.
Here is the html code:
[Code]...
I have 2 skins, almost identical, but differ in 1 small way that can be accounted for if I could pass a Boolean to the skin while assigning it to the host component (a button).
<s:Button skinClass="MyBtnSkin" />
Is there a way while assigning the skin to the button, I could also pass a parameter to the skin somehow?
How to embed the Flex Grid in ExtJs framework.
View 1 RepliesIs there an easy way to embed an image into a flex grid column? Something similar to[url]...
View 1 RepliesIs there any way we can pass parameters from one flex application to the other flex application ?
I know we can pass parameters from module to application and vice versa.
Flex3 + Cairngorm. I have my service in Servicis.mxml:
<mx:HTTPService id="docIndex" url="{URL_PREFIX}/jobs/{???}/docs" resultFormat="e4x"/>
And I call it from my generic restful delegate like this:
public function index(params:Object):void {
var call:AsyncToken = services.getHTTPService(resourceName+"Index").send(params);
call.addResponder(responder);
}
I want to know how I can use the params Object I pass inside the url definition (the ??? above).
EDIT: I'll explain myself if you didn't understand my problem: I have a restful api written in rails to which I'm connecting. Doc is a child resource of Job. If I want to get all docs I have to supply a job_id too. Therefore in the service the url must be changed for each .send() call, with the proper job_id (the ??? part above). I'd like to call it like myDelegate.index({job_id:34}) and insert that job_id field in the Service URL.
I am trying to create a component which can receive an additional value from mxml [code]...
View 6 RepliesIs there a way I can pass parameters to the searchStyle function from the code snippet below?
<mx:AdvancedDataGrid id="dgCompetente" includeIn="Competente" x="10" y="66" width="547" height="468"
change="dgCompetente_changeHandler(event)" dataProvider="{colCompetente}"
editable="false" allowMultipleSelection="true" updateComplete="updateDataGridIndex('competente')"
styleFunction="searchStyle">
[Code] .....
How to pass parameters to decoratorClass in MobileIconItemRenderer ? I have a custom control to display a metric (get from data collection), this control will be used as decoretorClass, my problem is that I couldn't set the metric parameter on my custom control, you can find below a sample code. How to do to pass values to a instance for my custom component ? Exist any way, or I have to re-make the MobileIconItemRenderer class ?[code]...
View 1 RepliesI am sending two parameters to a php script. The php script works fine if I use the browser to run the script and pass parameters to it like
[Code]...
i want to create instance of mxml (in my case EventList) and pass parameters. My Event List is a list of panels so I want to pass parameters and generate dynamically n number of panels (n-parameter to pass). I have the main app where I have toggle button bar when I click on the first I want for example to generate 3 panels (n=3) on the second button 20 panels (n=20) etc.How can I do this? How can I pass n and what is the best way to show the list? I whant to generate the list when I click on the toggle button!
View 1 RepliesI have 3 pages view,
HomeView
ViewPg02
ViewPg03
In HomeView, has a List control and when user select an item it will goes to ViewPg02
[Code]...
I've created a Flash Animation (CS5, ActionScript 3) and converted it to SWF. The flash animation needs the values of 3 variables (defined in the swf timeline) BEFORE it starts running in my Flex application. I've embedded the swf file using swfloader in Flex, but I need to pass the parameters from Flex into Flash before the animation starts. How do I do this?
The way I have my flex code setup below, the variables are not being updated. I get an exception every time it gets to the changeParams function because it can't find "Type", "Num1", etc.
Part of My flash code:
//These 3 variables need to be populated via Flex BEFORE the animation starts...
var Num2:int;
var Num1:int;
[Code]....
I'm embedding a Flex app in a WordPress page using Matt Carpenter's great plugin. It's a map created using Google Maps' Flash API.
I'm getting an initialization failure. Is that because the API key is in the Flex app and Google can't "see" it? [code]...
I'm using <mx:LinkButton label="www.google.com" click="navigateToURL(new URLRequest(event.currentTarget.label.toString()))" /> to open a browser window to display the website on the label of my LinkButton. However I cannot correctly pass the link..
you see the problem: file://localhost/..myapp/bin-debug/www.google.com
I want to specify a string value in the HTML containing my Flash created using Flex 3. This value is a URL that is used by the Flex code and I want another dev to be able to update it. How do I do this? I'm using Flex Builder 3.
View 2 Repliesi'm a newbie in Flex/Air. I'm developing an AIR web browser and i want to use a virtual keyboard to write in the HTML pages.it works well when i try to write in a text area, but i don't know how to write in the html page.EXAMPLE:To write in textarea, i just have to call this:textarea.text = event.keyLabel;
View 1 Replieswant to make a sfw that receives parameters from the html tag. for example, when you embed youtube videos, in the <object> thingy you set the video you want to show. i want to do exactly the same, have a 'projector' (though not exactly videos), the swf knows what to do from the html tag params, and displays the right content. how do i red html params from the sfw (and how do i test it?).
also, is there any doumentation/examples on how to connect php/mysql to a flash movie?
I'm looking for the best methods to pass variables to a MySQL and receive variables from that database as well.
View 3 RepliesI am trying to load a swf file in a browser and pass url parameters to the flash movie. How do I access the url parameters in the flash movie in actionscript?[url]...
I did find pointers on passing parameters through embed/object tags, but nothing on passing url parameters (and accessing them) just through a browser url.
I created a swf in swf where I have a video and also instantiate another swf using a loader.That other swf reads a xml (RSS) and displays a text with marquee at the bottom end ... What is wanted by main swf, pass parameters to another swf, being more specific, I want to pass the address (URL) of the RSS to be displayed.
View 1 RepliesI've created a very simple video player that I want to use with many different FLV files on my site. Rather than packaging SWF files with each FLV, I'd like to just design one SWF file and have the corresponding HTML file pass the URL of the FLV as a parameter to the SWF. I've read a lot about passing in parameters from HTML to SWF using AS3, and it seems pretty straightforward. Here's an example of the code I created using Flash CS3 and ActionScript 3.0:
this.loaderInfo.addEventListener(Event.COMPLETE,loaderComplete);
function loaderComplete(evt:Event):void {
//traceText.text = "Loaded";
[Code]....
Note that I'm using the variable "userName" to pass the parameter. Eventually I'd use a variable like "movieURL" to convey the actual URL of the FLV file. In any case, when I run the code, I get ... nothing! Nothing but a blank text box. Both the HTML and SWF files are on my local machine.
If I uncomment the "//traceText.text = Loaded" line, the text box says "Loaded", which would indicate that the event listener is functioning properly.
I am trying to use FlashVars to pass a parameter that will determine which graphic to load into my movie. The test actionscript code uses a dynamic text field called dText and is coded as follows (testing the FlashVars by passing them to a dynamic text field):
function loaderComplete(myEvent:Event){
var flashVars=this.loaderInfo.parameters;
dText.text=flashVars.userName; }
this.loaderInfo.addEventListener(Event.COMPLETE, loaderComplete);
In my html code I am adding:
<PARAM NAME=FlashVars VALUE="userName=SamG" />
FlashVars="userName=SamG" // added to the embed tag
Inside a .fla file I have some buttons and each button will tween a different image to the stage. All the images are outside the stage in the same x and y position and I just need to tween the x coordinate.
Now I'm working with an external document class where I'm trying to hold all my functions and I'm stucked with the Tweens. I'm willing to stay away from the flash tween engine and I'm trying to work with tweenLite.
Is it possible to pass parameters through eventListeners so I can use something like this inside my docClass?
public function animeThis (e:MouseEvent, mc:MovieClip, ep:int):void { //ep stands for endPoint.
TweenLite.to(mc, 2, {x:ep});
}
If this is possible, how am I supposed to write the listeners so it will pass the event to be listened for AND those parameters? And how to build the function so it will receive those parameters and the event?
I have e buttons, I need pass a parameter between frames, like this: If I chose btn1 gotoframe 10 and the parameter is "pt", can I do this? How?
View 1 RepliesI've written an imageLoader class. I want to dispatch an event after the completion of image loading to the document class from which imageLoader has been initialized.
[Code]...
onLoaderComplete is the image loading complete event and onLoaderProgress is the image loading progress event. Here i have dispatched an event in inLoaderComplete event. I want to send parameters along with the dispatchEvent. How it can be done?
I'm trying to do something like this:
var something = "someValue";
some_btn.onPress = function (something) {
someFunction(something);
}
[Code].....
But it traces "undefined". What would be the correct way of achieving this?