SlideShare una empresa de Scribd logo
1 de 18
AS3FlexDBConectarea la MySQL din FLEX
Alexandru Ghiura
RIA Software Developer
contact@ghalex.com
http://ghalex.com
Martie 2009
Bine ați venit:
o Vă mulțumesc că ați venit
o Informații utile:
• http://ghalex.com/presentations
• http://code.google.com/p/as3flexdb/
• http://itutorials.ro/viewtopic.php?f=9&t=7
• http://sephiroth.it/tutorials/flashPHP/as3flexdb/
• http://ghalex.com/blog/?p=53
• http://ghalex.com/docs/as3flexdb/
Agenda:
o Ce este AS3FlexDB ?
o Ce avantaje oferă AS3FlexDB ?
o Cum execută AS3FlexDB un SQL ?
o Cum instalăm AS3FlexDB ?
o Cum folosim AS3FlexDB ?
o Securitate
o Demo
o Q & A
Ce este AS3FlexDB ?
Ce avantaje oferă AS3FlexDB:
o Rapiditate
o Uniformitate
o Portabilitate
Flex fară AS3FlexDB:
MySQL
MySQL
Flex fară AS3FlexDB, unde scriem cod?
MySQL
MySQL
AS3 Code PHP/ASP/CF
Flex cu AS3FlexDB, unde scriem cod?
MySQL
MySQL
AS3 Code AS3FlexDB
Cum execută
AS3FlexDB un SQL
Cum execută AS3FlexDB un SQL?
MySQLAS3 Code
AS3FlexDB
Service
AS3FlexDB
Cum instalăm
AS3FlexDB
Cum instalăm AS3FlexDB:
AMFPHP:
o Instalăm AMFPHP
• http://itutorials.ro/viewtopic.php?f=9&t=4
• http://www.sephiroth.it/tutorials/flashPHP/flex_remoteobject/
AS3FlexDB:
o Copiem fisierul “database.php” in directorul “servicesmysql”.
o Adaugăm AS3FlexDB_version.swc la proiectul nostru
Cum folosim
AS3FlexDB
Un exemplu foarte simplu, folosind MXML:
<mx:DataGrid id="dg1"
width="100%"
height="100%"
dataProvider="{q1.Records}">
<mx:columns>
<mx:DataGridColumn dataField="fname" headerText="First Name"/>
<mx:DataGridColumn dataField="lname" headerText="Last Name"/>
<mx:DataGridColumn dataField="password" headerText="Password"/>
</mx:columns>
</mx:DataGrid>
<phi:ConnectionData id="c1"
name="mxml_conn1"
host="localhost"
db="test" username="root"
password="root" />
<phi:Database id="db1" connection="{c1}" />
<phi:Query id="q1" database="{db1}" q="SELECT * FROM users WHERE 1" />
<phi:QueryExecute id="q1ex" query="{q1}" />
Un exemplu foarte simplu, folosind AS3:
private var db :IDatabase;
private var query :IQuery;
private function f0():void
{
db = Database.getInstance();
query = new Query();
db.connect("conn1", "root", "", "localhost", "flexdb", true);
query.connect("conn1", db);
}
private function f1():void
{
query.addEventListener(Query.QUERY_END, queryEnd);
query.execute("SELECT * FROM users WHERE 1");
}
private function f2(evt:Object ):void
{
users = query.getRecords();
}
Securitate
Demo
Q & A

Más contenido relacionado

La actualidad más candente (6)

Windows azure and linux
Windows azure and linuxWindows azure and linux
Windows azure and linux
 
Nginx, PHP and Node.js
Nginx, PHP and Node.jsNginx, PHP and Node.js
Nginx, PHP and Node.js
 
Svelte the future of frontend development
Svelte   the future of frontend developmentSvelte   the future of frontend development
Svelte the future of frontend development
 
About PHP
About PHPAbout PHP
About PHP
 
Doug Gorman: When Pigs Fly
Doug Gorman: When Pigs FlyDoug Gorman: When Pigs Fly
Doug Gorman: When Pigs Fly
 
Using the "pip" package manager for Odoo/OpenERP - Opendays 2014
Using the "pip" package manager for Odoo/OpenERP - Opendays 2014Using the "pip" package manager for Odoo/OpenERP - Opendays 2014
Using the "pip" package manager for Odoo/OpenERP - Opendays 2014
 

Similar a AS3FlexDB

Similar a AS3FlexDB (20)

Firefox os how large open source project works
Firefox os   how large open source project worksFirefox os   how large open source project works
Firefox os how large open source project works
 
Apache Flex and the imperfect Web
Apache Flex and the imperfect WebApache Flex and the imperfect Web
Apache Flex and the imperfect Web
 
Service Workers and APEX
Service Workers and APEXService Workers and APEX
Service Workers and APEX
 
Headless approach for offloading heavy tasks in Magento
Headless approach for offloading heavy tasks in MagentoHeadless approach for offloading heavy tasks in Magento
Headless approach for offloading heavy tasks in Magento
 
[In Control 2010] HTML5
[In Control 2010] HTML5[In Control 2010] HTML5
[In Control 2010] HTML5
 
CSS3 3D Workshop
CSS3 3D WorkshopCSS3 3D Workshop
CSS3 3D Workshop
 
Ajax
AjaxAjax
Ajax
 
Introducing ofgodpaperframework
Introducing ofgodpaperframeworkIntroducing ofgodpaperframework
Introducing ofgodpaperframework
 
Easily create dashboards to manage your databases with OVH
Easily create dashboards to manage your databases with OVH Easily create dashboards to manage your databases with OVH
Easily create dashboards to manage your databases with OVH
 
The Characteristics of a Successful SPA
The Characteristics of a Successful SPAThe Characteristics of a Successful SPA
The Characteristics of a Successful SPA
 
Scalable Django Architecture
Scalable Django ArchitectureScalable Django Architecture
Scalable Django Architecture
 
Flexbox
FlexboxFlexbox
Flexbox
 
Anwendungsfälle für Elasticsearch JAX 2015
Anwendungsfälle für Elasticsearch JAX 2015Anwendungsfälle für Elasticsearch JAX 2015
Anwendungsfälle für Elasticsearch JAX 2015
 
OSMC 2013 | Log- und Eventmanagement by Bernd Erk
OSMC 2013 |  Log- und Eventmanagement by Bernd ErkOSMC 2013 |  Log- und Eventmanagement by Bernd Erk
OSMC 2013 | Log- und Eventmanagement by Bernd Erk
 
OTN Developer Days - GlassFish
OTN Developer Days - GlassFishOTN Developer Days - GlassFish
OTN Developer Days - GlassFish
 
Untangling spring week9
Untangling spring week9Untangling spring week9
Untangling spring week9
 
Don’t reduce dispatcher testing to an afterthought
Don’t reduce dispatcher testing to an afterthoughtDon’t reduce dispatcher testing to an afterthought
Don’t reduce dispatcher testing to an afterthought
 
DevOps Spain 2019. Diego Parrilla-Microsoft
DevOps Spain 2019. Diego Parrilla-MicrosoftDevOps Spain 2019. Diego Parrilla-Microsoft
DevOps Spain 2019. Diego Parrilla-Microsoft
 
Automation: PowerShell & DSC
Automation: PowerShell & DSCAutomation: PowerShell & DSC
Automation: PowerShell & DSC
 
Building APIs with NodeJS on Microsoft Azure Websites - Redmond
Building APIs with NodeJS on Microsoft Azure Websites - RedmondBuilding APIs with NodeJS on Microsoft Azure Websites - Redmond
Building APIs with NodeJS on Microsoft Azure Websites - Redmond
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 

AS3FlexDB

  • 1. AS3FlexDBConectarea la MySQL din FLEX Alexandru Ghiura RIA Software Developer contact@ghalex.com http://ghalex.com Martie 2009
  • 2. Bine ați venit: o Vă mulțumesc că ați venit o Informații utile: • http://ghalex.com/presentations • http://code.google.com/p/as3flexdb/ • http://itutorials.ro/viewtopic.php?f=9&t=7 • http://sephiroth.it/tutorials/flashPHP/as3flexdb/ • http://ghalex.com/blog/?p=53 • http://ghalex.com/docs/as3flexdb/
  • 3. Agenda: o Ce este AS3FlexDB ? o Ce avantaje oferă AS3FlexDB ? o Cum execută AS3FlexDB un SQL ? o Cum instalăm AS3FlexDB ? o Cum folosim AS3FlexDB ? o Securitate o Demo o Q & A
  • 5. Ce avantaje oferă AS3FlexDB: o Rapiditate o Uniformitate o Portabilitate
  • 7. Flex fară AS3FlexDB, unde scriem cod? MySQL MySQL AS3 Code PHP/ASP/CF
  • 8. Flex cu AS3FlexDB, unde scriem cod? MySQL MySQL AS3 Code AS3FlexDB
  • 10. Cum execută AS3FlexDB un SQL? MySQLAS3 Code AS3FlexDB Service AS3FlexDB
  • 12. Cum instalăm AS3FlexDB: AMFPHP: o Instalăm AMFPHP • http://itutorials.ro/viewtopic.php?f=9&t=4 • http://www.sephiroth.it/tutorials/flashPHP/flex_remoteobject/ AS3FlexDB: o Copiem fisierul “database.php” in directorul “servicesmysql”. o Adaugăm AS3FlexDB_version.swc la proiectul nostru
  • 14. Un exemplu foarte simplu, folosind MXML: <mx:DataGrid id="dg1" width="100%" height="100%" dataProvider="{q1.Records}"> <mx:columns> <mx:DataGridColumn dataField="fname" headerText="First Name"/> <mx:DataGridColumn dataField="lname" headerText="Last Name"/> <mx:DataGridColumn dataField="password" headerText="Password"/> </mx:columns> </mx:DataGrid> <phi:ConnectionData id="c1" name="mxml_conn1" host="localhost" db="test" username="root" password="root" /> <phi:Database id="db1" connection="{c1}" /> <phi:Query id="q1" database="{db1}" q="SELECT * FROM users WHERE 1" /> <phi:QueryExecute id="q1ex" query="{q1}" />
  • 15. Un exemplu foarte simplu, folosind AS3: private var db :IDatabase; private var query :IQuery; private function f0():void { db = Database.getInstance(); query = new Query(); db.connect("conn1", "root", "", "localhost", "flexdb", true); query.connect("conn1", db); } private function f1():void { query.addEventListener(Query.QUERY_END, queryEnd); query.execute("SELECT * FROM users WHERE 1"); } private function f2(evt:Object ):void { users = query.getRecords(); }
  • 17. Demo
  • 18. Q & A

Notas del editor

  1. AS3FlexDB este o librarie open source ce permite applicatilor Flex sa se conecteze si sa manipuleze la o baza de date MySQL