Using AS3 and Python to access MSSQL
How could I implement Python to access a MSSQL database in a Flash application using AS3? Thanks!
you call and retrieve data via python using the urlloader class in flash.
Similar Messages
-
Dear Apple. I have just installed Windows 7 64-bit full version Home Premium using Bootcamp and cannot get access to the internet. I installed on a Macbook Air Mid 2012 with Mountain Lion. Are there some drivers that are missing from the Windows 7 bootcamp install download from Apple
It is a Total Misconception that the Support files are installed when you are installing Windows, even if the USB drive that holds them is inserted in the system when doing the Windows install.
You must always Run the Setup.exe files from the support files or run the drivers individually once Windows has finished installing and booted to the desktop.
Also you really need to run the Boot Camp Control Panel Applet and check for updates as not all the newest drivers for full function of all the hardware is included with the original support download. That download is basically a generic version to get the system working and without doing the updates not everything will work properly. -
How do I upload an image using as3 and display it without a server?
Is it possible to upload an image using as3 and flash player 9 and then display it in a movie clip without server side assistance?
thanks,
JBHi,
Check out the links..
I hope it will helps u.
http://labs.findsubstance.com/2008/04/03/as3-upload-encode-images/
http://flexscript.wordpress.com/2009/01/12/uploading-an-image-into-flash-without-server-si de-script-using-flash-player-10/
Saransoft -
HELP: Problem using AS3 and CF-Flash Remoting CFC
I am trying to use CF flash remoting from an AS3 Class using
the NetConnection class. The approach I am using is directly from
"ActionScript 3.0 Cookbook" by Joey Lott et. al.
I am using a totally standard default install of CF, Flex and
SQL server on Windows 2003 R2.
When I do a CF Flash remoting call using,
_netConnection = new NetConnection();
_netConnection.connect('
http://pordev2.wcrt.xeroxlabs.com:8500/flashservices/gateway/');
_netResponder = new Responder(onGotData, onGotError);
_netConnection.call("porTechDB.PorComponents.ProjValuationRemote.getProjValuationData",
_netResponder, 1, strtest);
all seems OK. The CFC returns the integer and string just
fine.
HOWEVER, when I also add an associative array, "aa", to the
string of arguments, I get an error...
_netConnection.call("porTechDB.PorComponents.ProjValuationRemote.getProjValuationData",
_netResponder, 1, strtest, aa);
returns the error: "Unknown object type tag (17)"
The same error is also returned if "aa" is an XML variable
instead of an associative array.
So:
a) Is this a bug?
b) Is there an AS3 specific gateway I should have referenced?
c) Is Flash Remoting not yet supported in AS3?
Thanks you for your time,
Ned
=================================================================
Here is my test code:
<cfcomponent displayname="ProjValuationRemote"
hint="Returns an array of Project Header, Valuation and supporting
data recordsets">
<cffunction access="remote" name="getProjValuationData"
output="false" returntype="String">
<cfargument name="test1" type="numeric" required="no"
default=1>
<cfargument name="test2" type="string" required="no"
default = "a default string">
<cfargument name="AA" type="Struct" required="no">
<cfset testReturn = #test2# & ": TESTING -- This is
the return integer: " & #test1#>
<cfreturn testReturn>
</cffunction>
</cfcomponent>
public function requestVRD():void {
var strtest:String = "Simple test string";
var aa:Object = new Object();
aa.curDataSet = 86;
aa.curYear = 2007;
_netConnection = new NetConnection();
_netConnection.connect('
http://pordev2.wcrt.xeroxlabs.com:8500/flashservices/gateway/');
_netResponder = new Responder(onGotData, onGotError);
_netConnection.call("porTechDB.PorComponents.ProjValuationRemote.getProjValuationData",
_netResponder, 1, strtest);
private function onGotData(re:String):void {
// arVRD = re;
trace(re);
returnString = re;
trace("got remote data response");
private function onGotError(error:Object):void {
trace("Executing the gotProjectData_Fault: " +
error.description);
trace("Executing the gotProjectData_Fault -- no detail");
// setErrorAlert();
This works as expected producing the following trace:
Simple test string: TESTING -- This is the return integer: 1
Replacing the remote with the following, which adds an array
to the parameter list...
_netConnection.call("porTechDB.PorComponents.ProjValuationRemote.getProjValuationData",
_netResponder, 1, strtest, aa);
Produces the following error:
Executing the gotProjectData_Fault: Unknown object type tag
(17)I didn't think so,
We are putting together ads with alot of images with that 40k limit
so the images don't look great.
I was trying to find the best way to work with the images, while keeping it as simple as possible.
Oh.... your right I was hoping to slowly introduce my associates into AS3, I thought If this could be done
It woud be a great tool to introduce them to, but no
Thank you for your time and feedback -
[SOLVED] eth0-wlan0 AP using bridge AND keep internet access
Hi there!
This is my very first post here, so please forgive me if I (unintentionally) violate some rule.
I have set up my system as an eth0-wlan0 access point with hostapd using a bridge.
The IP addresses are provided by a separate dhcp-server (router resp. cablemodem).
My problem is: when I work on the AP I would like to have a working connection to the
Internet/Router. But to get there I have to execute
systemctl restart dhcpcd.service
The AP via the eth0-wlan0 bridge keeps working and I now have a working Internet connection.
AFAIK the dhcpcd service acts (invoked by netcfg) on the bridge-profile to assign an IP
to eth0. After that the bridge is set up and (now hostapd.service is up) the wlan0 is
added to the bridge in AP mode.
It would be great if someone could point out the problem for me.
Thx, Benedikt
Last edited by benedikt (2013-04-30 19:16:43)After switching from netcfg to netctl everything worked "out-of-the-box". The bridge gets to be the new standard network interface and all traffic on the machine gets directed through it. YAY
-
Link button to local html page using AS3
I am using AS3 and having trouble linking a button to a local html page
Okay, I tried both of the codes and it is still now working.
navigateToURL(new URLRequest("file:///fishcom/Home.html"));
I get a Windows dialog box that states that the path can not be found.
navigateToURL(new URLRequest("./fishcom/Home.html"));
This goes to http://./fishcom/Home.html but not my page.
The Flash file and the HTML page are in the fishcom folder on my desktop. Very frustrating because this was so easy in AS2. -
Highscore list using Flash and PHP
Hi,
I want to make a highscorelist using AS3 and PHP(MySQL).
I cant find a good tutorial on internet how to make something like that but I got this so far:
import fl.controls.TextInput;
import fl.controls.TextArea;
var variables:URLVariables = new URLVariables();
variables.name = "Wil";
variables.final = 2000;
var request:URLRequest = new URLRequest();
////insert in the location of the php script ////////////////
request.url = "http://www.justenter.nl/script.php";
request.data = variables;
var loader:URLLoader = new URLLoader();
loader.load(request); //sends the request
//when the request is done loading, it goes to the completeWriting function
loader.addEventListener(Event.COMPLETE, completeWriting);
function completeWriting(event:Event):void {
var writingCompleted:TextField = new TextField;
writingCompleted.autoSize = "center";
writingCompleted.x =200;
writingCompleted.y= 200;
writingCompleted.text = event.target.data;
addChild(writingCompleted);
He is sending the score and name to the database but he is doing that when i press ctrl-enter. He is sending the data I have given in:
variables.name = "Wil";
variables.final = 2000;
I want a input textfield and a button. And When I fill in my name in the input textfield he send it to the database when I press the button.
Is there someone that can help me out?
Tnximport fl.controls.TextInput;
import fl.controls.TextArea;
var variables:URLVariables = new URLVariables();
//variables.name = "Wil";
//variables.final = 2000;
var request:URLRequest = new URLRequest();
////insert in the location of the php script ////////////////
request.url = "http://www.justenter.nl/script.php";
request.data = variables;
var loader:URLLoader = new URLLoader();
submitBtn.addEventListener(MouseEvent.CLICK,submitF); // where submitBtn is your button
function submitF(e:Event){
variables.name=nameTF.text; // where nameTF is your input texfield
variables.final = score; // where score is the variable you use to tally user score
loader.load(request); //sends the request
//when the request is done loading, it goes to the completeWriting function
loader.addEventListener(Event.COMPLETE, completeWriting);
function completeWriting(event:Event):void {
var writingCompleted:TextField = new TextField;
writingCompleted.autoSize = "center";
writingCompleted.x =200;
writingCompleted.y= 200;
writingCompleted.text = event.target.data;
addChild(writingCompleted); -
IOS app using AS3 not fitting screen dimensions
I'm building an iOS app using as3 and air to package the app onto my iPhone 6. My issue is that I get a black bar above and below the app, the app itself is not going fullscreen. The stage screen is set to the iPhone 6 screen dimensions.
I have tried by adding the following launch images into the app folder; [email protected], [email protected], and [email protected] But it's not being displayed properly.
Does anyone have any fixes for this?Hi ericmathew
iPhone 6 & iPhone6+ require different Launch Images than older phones:
For Example,
For iPhone 6 : Default-375w-667h@2x~iphone.png
And iPhone6+ : Default-414w-736h@3x~iphone.png
For more details regarding this, check out below article :
http://blogs.adobe.com/airodynamics/2015/03/09/launch-images-on-ios-with-adobe-air/
-Tushar,
Adobe AIR Team -
Close a flex application using AS3
Hi everyone,
I am building a flex application using AS3, and I would like
to allow the user to close the application through a CLOSE button.
Do you know how can I do that ??
I traied with fscommand("quit"); but it dosen't work.The rules are that UIComponent cannot be used in the download progress bar. You'll need to use really low level objects.
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui -
Error while accessing a library using content and structure
I have a library having document and folder inside it. When I open the library using content and structure I get an error with a correlation ID. When checked the the logs with Correlation ID got an error message "View 'All Document' does not exist."
'All Document' is name of default view on the library.
When I open the library from view all site content the library is being opened.
Please help!!!Hello Victoria,
Thanks for the response.
I have tried troubleshooting steps given by you.
Check if the issue occurs with other users. Use another user to access the library in Content and Structure and then compare the results. --
I tried with different users but no luck
Make sure that the user account with issue has permission to view the All Documents view of the library. --
Yes, user Account have the permission
Check if the issue occurs with other libraries in the Content and Structure. If not, I recommend to save the library as
a template including contents and then create a new library based on this template. After that use the new library instead of the old library. --
No other library have this problem. I cannot save the library as template including the contents as the it has many folders and files. The current size of library is 786 MB
Clear cache in the browser or use another browser to see if the issue still occurs. --
tries but issue persists.
Best regards,
Ratnesh -
I forgot my i cloud password
The e mail address i used can no longer be accessed
To access the questions way, it requires my ID number
when I input my ID number the response is ' ID number incorrect! even though I am inputting there correct number
is there any way i can resolve this?Contact the Apple account security team for your country and ask for assistance resetting the password: Apple ID: Contacting Apple for help with Apple ID account security.
-
I had to take my hp back to factory setting and reinstall itunes, when I tried to use Itunes match it said i had to Deauthorize all my computers. I am using the same computer and desperately need access to my music.
When you reset to factory settings, the computer is de-authorised.
In iTunes menu Store > View Account > sign in > App Store > Deauthorise All.
Once done, authorise this computer iTunes.
Note: you can only do that once a year. -
I have a late 2008 Macbook Pro last updated to the Mavericks OS. The screen died and I took it into an Apple store and was told replacing the screen and the hardware to repair everything would cost almost as much as buying a new laptop or a cheaper model. I was told that I can use a drive sled to access data I need on my hard drive. How do I remove my hard drive and use a drive sled to get to the information I need? What makes matters more complicated is I need to update my iPhone and my iTunes/App store purchases. How can I accomplish this?
My wife has a late 2008 Macbook Pro as well, which I am assuming I need to run my hard drive. Is there a way to just access just my hard drive without interfering with hers?
I know this is lengthy. Thanks to whoever looks at this and offers advice/instruction.the device you need is an External enclosure for a 2.5" (laptop form factor) SATA drive.
A USB-interface enclosure will be slow, but is adequate for this task and for re-purposing as a backup drive later. A firewire-interface drive would be faster, but is harder to find, more expensive, and faster than needed for this purpose.
The drive will mount as an "extra" drive on your wife's Macbook, and you can drag and drop whatever you wish. You could create a separate Account for yourself on her computer, and use Migration Assistant or just copy your stuff over to the new account. Then it would not interfere with her files. -
Client remote Authentication using JAAS and EJB Access
Hi,
I have a problem using JAAS in combination with Sun One Appserver 8.1 and a java remote client trying to access an EJB. Here is the scenario:
I have implemented an EJB who's methods are protected through the deployment descriptor:
<assembly-descriptor>
<security-role>
<description>role for clients outside of the server </description>
<role-name>sedna</role-name>
</security-role>
<method-permission>
<role-name>sedna</role-name>
<method>
<ejb-name>ServerInfoBean</ejb-name>
<method-intf>Remote</method-intf>
<method-name>*</method-name>
</method>
</method-permission>
<method-permission>
<unchecked/>
<method>
<ejb-name>ServerInfoBean</ejb-name>
<method-name>getVersion</method-name>
</method>
<method>
<ejb-name>ServerInfoBean</ejb-name>
<method-name>create</method-name>
</method>
</method-permission>
</assembly-descriptor>I've deployed the EJB in a jar file which was packed into an ear file of a bigger application. The role has been mapped to the admin Principal in the sun-ejb-jar.xml descriptor.
I can find the EJB, create it, and call the unchecked method getVersion and that works fine, so far so good.
But then I try to access another method which is protected and then I get this exception
org.omg.CORBA.NO_PERMISSION: vmcid: 0x2000 minor code: 1806 completed: Maybe
at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:179)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:853)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:137)
...I have to mention that I do make a login via the LoginContext. My jaas.config File has a reference to the com.sun.enterprise.security.auth.login.ClientPasswordLoginModule module.
After login (which works perfectly) I lookup the context with a corbaname url which - if I understood it right - ignores the Context.SECURITY_PRINCIPAL and Context.SECURITY_CREDENTIALS settings.
After that I make the calls to the EJB. And I am allways ANONYMOUS on the server side, which is definitely the problem. Because ANONYMOUS is not allowed to call the protected EJB Methods. But I made a jaas login in advance. So where am I making a mistake???
Am I doing something wrong?
Need help! Thx,
StephanHi.
I understand correctly that you call Subject.doAs on
the client to call the remote EJB. I guess It isn't
right way.I had also a bad feeling about this, so I forget it. But anyway it wasn't working with or without using that doAs().
>
>
Subject contextSubject =
Subject.getSubject(AccessController.getContext());
contextSubject.getPrincipals();This code throws exceptions in the Appserver. Unfortunately they are catched somewhere so I'm unable to find out what was going wrong. But I guess, that these exceptions where security exceptions. Never the less thanks for the hint!
But I don't think that doing the check on the server side is the way I want to go because that is programmatically security and I want to use the declarative security which can be used through the deployment descriptor. If used correctly - and supposed I do not completely misunderstand the specification - then it should be possible to create an EJB that is protected via it's deployment descriptor and access it through the client only if the client has been authenticated through JAAS mechanisms. After successful authentication the principal should be accessible through the EJB context but not for security check, that should allready been done at this time.
Unfortunately I don't find any resource on the internet describing the scenario in such a detail that I can reproduce it. There are only very high level documentations and hints in forums.
Again, thanks for your effort,
Stephan -
New to Time Machine. The HD on my Mac Air is full so I got an external HD and using TM to back up everything.
Can I erase all files (pictures, docs, etc) from my Mac and still have access to those files through Time Machine?That is a bad idea. Time Machine is strictly a backup utility. What you describe will require archiving files, which Time Machine is not designed to accomplish.
Once you erase files from your MacBook Air, they will eventually be erased from your Time Machine backup. This is by design, as Time Machine will eventually fill your backup volume and will delete old files as required. Depending on when they were first backed up and how long they existed on your MBA before you erase them, they could disappear in as little as one hour.
Use Carbon Copy Cloner or equivalent "clone" utility and configure it to archive files that do not exist on the source, or simply copy them over manually using the Finder. You can then delete them from your MBA. Bear in mind that once you do that, you no longer have a backup copy. The only copies will exist on the external HD.
Maybe you are looking for
-
Multiple checkbox are to be checked when selecting one checkbox in formlayo
Hi, I created the checkbox in apex 4.0, as LOV(list of value), I want to select multiple checkbox at a time ,when by selecting one checkbox among them.......
-
Creating a DVD without any Menus (No Themes)
I know how to set iDVD to create a DVD to play immediately when inserted in a DVD player. However, when the show is over, it goes to a menu. Which I do not want it to do. How can I create a DVD without any menu?
-
Is it normal for Adobe Reader 10.1.0 to hang?
As of a few minutes ago I noticed that within Task Manger it said that my Adobe reader was running. Although none of the windows I had open contained anything running off Adobe. Even when I closed my browser window completely (Firefox 6.0) they stil
-
Very slow downloading wen sites
My iMac is taking from 15 seconds to 3 minutes to download web sites. There are also agonizing freeezes in switching from page to page within a web site (for example, Washingtonpost, nytimes,Google, news.yahoo) that last from about 12 seconds to over
-
Hi all, could any one help me what is the FM for getting multiple assignments of BP in an organisational structure? Regards.