SlideShare une entreprise Scribd logo
1  sur  15
Additional Action Script 3.0 Understanding the loaderClass
Additional interaction wish list for our project Load an external swf file Load and external text file Making the text file scrollable via buttons
var myLoader : Loader  =  new Loader( ); CLASS a blueprint or cookie cutter Creates a new variable named  myLoader with a data type of  Loader new  instance of the  Loader  Class
var myLoader:Loader = new Loader(); myLoader.load FUNCTION a task, such as loading an external swf file
URLRequest a request to load an external swf file var myLoader:Loader = new Loader(); myLoader.load (new URLRequest("the name of your swf file goes here.swf"));
var myLoader:Loader = new Loader(); myLoader.load(new URLRequest("the name of your swf file goes here.swf")); addChild(myLoader); addChild adds the swf to the family
unload remove the swf from the timeline
var content_req : URLRequest  =  new  URLRequest (“name of your text file goes here.txt” ); CLASS a blueprint or cookie cutter Creates a new variable named  content_req with a data type of  URLRequest new instance of the   URLRequest   Class which specifies the  name of the text file
var  content_req :URLRequest = new URLRequest(“name of your text file goes here.txt” ); var   content_ldr : URLLoader  = new   URLLoader (“content_req” ); CLASS a blueprint or cookie cutter
Event listener var content_req:URLRequest = new URLRequest(“name of your text file goes here.txt” ); var  content_ldr :URLLoader = new URLLoader(“content_req” ); content_ldr .addEventListener(Event.COMPLETE, onComplete);
var content_req:URLRequest = new URLRequest(“name of your text file goes here.txt” ); var content_ldr:URLLoader = new URLLoader(“content_req” ); content_ldr.addEventListener(Event.COMPLETE, onComplete); function onComplete(event:Event):void { instance name of text box .text = event.target.data; } FUNCTION a task, such as loading external text file
function  scrollUp (event:MouseEvent):void { instance name of text box .scrollV -= 2; } FUNCTION a task, such as a scrolling dynamic text file
function  scrollDown (event:MouseEvent):void { instance name of text box .scrollV += 2; } FUNCTION a task, such as a scrollable dynamic text file function scrollUp(event:MouseEvent):void { instance name of text box.scrollV -= 2; }
Event listener instance name of scroll up button .addEventListener(MouseEvent.CLICK,  function name for up ); instance name of scroll down button .addEventListener(MouseEvent.CLICK,  function name for down ); function scrollDown(event:MouseEvent):void { instance name of text box.scrollV += 2; } function scrollUp(event:MouseEvent):void { instance name of text box.scrollV -= 2; }
HTML instructions for the browser on displaying your content TAGS <b> content is here </b> bold <font color> content is here </font color> <font face> content is here </font face> <i> content goes here </i>

Contenu connexe

Tendances

Up.Php
Up.PhpUp.Php
Up.Php
wsoom
 
Students to Business Day 2012: Alex Turner
Students to Business Day 2012: Alex TurnerStudents to Business Day 2012: Alex Turner
Students to Business Day 2012: Alex Turner
Frederik De Bruyne
 
Qtp compare xml files
Qtp compare xml filesQtp compare xml files
Qtp compare xml files
Ramu Palanki
 

Tendances (19)

Up.Php
Up.PhpUp.Php
Up.Php
 
Web Services
Web ServicesWeb Services
Web Services
 
Converting with custom transformer
Converting with custom transformerConverting with custom transformer
Converting with custom transformer
 
Converting with custom transformer part 2
Converting with custom transformer part 2Converting with custom transformer part 2
Converting with custom transformer part 2
 
Students to Business Day 2012: Alex Turner
Students to Business Day 2012: Alex TurnerStudents to Business Day 2012: Alex Turner
Students to Business Day 2012: Alex Turner
 
Windows 8 Development
Windows 8 Development Windows 8 Development
Windows 8 Development
 
Learn ELK in docker
Learn ELK in dockerLearn ELK in docker
Learn ELK in docker
 
Retrofit 2 - O que devemos saber
Retrofit 2 - O que devemos saberRetrofit 2 - O que devemos saber
Retrofit 2 - O que devemos saber
 
Mule esb How to convert from Object to Json in 5 minutes
Mule esb How to convert from Object to Json in 5 minutesMule esb How to convert from Object to Json in 5 minutes
Mule esb How to convert from Object to Json in 5 minutes
 
Process file one after another
Process file one after anotherProcess file one after another
Process file one after another
 
Mule esb - How to convert from Json to Object in 5 minutes
Mule esb - How to convert from Json to Object in 5 minutesMule esb - How to convert from Json to Object in 5 minutes
Mule esb - How to convert from Json to Object in 5 minutes
 
Gradle basics
Gradle basicsGradle basics
Gradle basics
 
Três conceitos que farão a diferença nos seus apps
Três conceitos que farão a diferença nos seus appsTrês conceitos que farão a diferença nos seus apps
Três conceitos que farão a diferença nos seus apps
 
Qtp compare xml files
Qtp compare xml filesQtp compare xml files
Qtp compare xml files
 
Mule esb How to use Jackson in Json to Object converter
Mule esb How to use Jackson in Json to Object converterMule esb How to use Jackson in Json to Object converter
Mule esb How to use Jackson in Json to Object converter
 
PHP file
PHP  filePHP  file
PHP file
 
Membuat Form Login
Membuat Form Login Membuat Form Login
Membuat Form Login
 
C5, vb11, f3
C5, vb11, f3C5, vb11, f3
C5, vb11, f3
 
Collect distributed application logging using fluentd (EFK stack)
Collect distributed application logging using fluentd (EFK stack)Collect distributed application logging using fluentd (EFK stack)
Collect distributed application logging using fluentd (EFK stack)
 

En vedette (10)

Komunizm
KomunizmKomunizm
Komunizm
 
How to write a press Release
How to write a press Release How to write a press Release
How to write a press Release
 
Action script 101
Action script 101Action script 101
Action script 101
 
Action script
Action scriptAction script
Action script
 
An Introduction to Game Programming with Flash: An Introduction to Flash and ...
An Introduction to Game Programming with Flash: An Introduction to Flash and ...An Introduction to Game Programming with Flash: An Introduction to Flash and ...
An Introduction to Game Programming with Flash: An Introduction to Flash and ...
 
Action Script 3 With Flash Cs3
Action Script 3 With Flash Cs3Action Script 3 With Flash Cs3
Action Script 3 With Flash Cs3
 
Action script for designers
Action script for designersAction script for designers
Action script for designers
 
Action Script
Action ScriptAction Script
Action Script
 
Fizike-Ruajtja e momentit kendor
Fizike-Ruajtja e momentit kendorFizike-Ruajtja e momentit kendor
Fizike-Ruajtja e momentit kendor
 
Mekanika 2
Mekanika 2Mekanika 2
Mekanika 2
 

Similaire à Additional action script 3.0

Android Studio Assignment HelpCan someone who is familiar with And.pdf
Android Studio Assignment HelpCan someone who is familiar with And.pdfAndroid Studio Assignment HelpCan someone who is familiar with And.pdf
Android Studio Assignment HelpCan someone who is familiar with And.pdf
feelinggift
 
Overview of The Scala Based Lift Web Framework
Overview of The Scala Based Lift Web FrameworkOverview of The Scala Based Lift Web Framework
Overview of The Scala Based Lift Web Framework
IndicThreads
 
Scala based Lift Framework
Scala based Lift FrameworkScala based Lift Framework
Scala based Lift Framework
vhazrati
 
Cliw - extension development
Cliw -  extension developmentCliw -  extension development
Cliw - extension development
vicccuu
 
How Not to Build a WordPress Plugin
How Not to Build a WordPress PluginHow Not to Build a WordPress Plugin
How Not to Build a WordPress Plugin
Will Norris
 

Similaire à Additional action script 3.0 (20)

Android Studio Assignment HelpCan someone who is familiar with And.pdf
Android Studio Assignment HelpCan someone who is familiar with And.pdfAndroid Studio Assignment HelpCan someone who is familiar with And.pdf
Android Studio Assignment HelpCan someone who is familiar with And.pdf
 
Тарас Олексин - Sculpt! Your! Tests!
Тарас Олексин  - Sculpt! Your! Tests!Тарас Олексин  - Sculpt! Your! Tests!
Тарас Олексин - Sculpt! Your! Tests!
 
Beyond the page
Beyond the pageBeyond the page
Beyond the page
 
Drag and drop file upload with Dropzone in CodeIgniter
Drag and drop file upload with Dropzone in CodeIgniterDrag and drop file upload with Dropzone in CodeIgniter
Drag and drop file upload with Dropzone in CodeIgniter
 
GradleFX
GradleFXGradleFX
GradleFX
 
API 통신, Retrofit 대신 Ktor 어떠신가요.pdf
API 통신, Retrofit 대신 Ktor 어떠신가요.pdfAPI 통신, Retrofit 대신 Ktor 어떠신가요.pdf
API 통신, Retrofit 대신 Ktor 어떠신가요.pdf
 
Overview Of Lift Framework
Overview Of Lift FrameworkOverview Of Lift Framework
Overview Of Lift Framework
 
Overview of The Scala Based Lift Web Framework
Overview of The Scala Based Lift Web FrameworkOverview of The Scala Based Lift Web Framework
Overview of The Scala Based Lift Web Framework
 
Scala based Lift Framework
Scala based Lift FrameworkScala based Lift Framework
Scala based Lift Framework
 
CodeIgniter PHP MVC Framework
CodeIgniter PHP MVC FrameworkCodeIgniter PHP MVC Framework
CodeIgniter PHP MVC Framework
 
Let ColdFusion ORM do the work for you!
Let ColdFusion ORM do the work for you!Let ColdFusion ORM do the work for you!
Let ColdFusion ORM do the work for you!
 
Cliw - extension development
Cliw -  extension developmentCliw -  extension development
Cliw - extension development
 
Html5 For Jjugccc2009fall
Html5 For Jjugccc2009fallHtml5 For Jjugccc2009fall
Html5 For Jjugccc2009fall
 
Url programming
Url programmingUrl programming
Url programming
 
How Not to Build a WordPress Plugin
How Not to Build a WordPress PluginHow Not to Build a WordPress Plugin
How Not to Build a WordPress Plugin
 
File upload in oracle adf mobile
File upload in oracle adf mobileFile upload in oracle adf mobile
File upload in oracle adf mobile
 
ZH爱丽丝梦游仙境
ZH爱丽丝梦游仙境ZH爱丽丝梦游仙境
ZH爱丽丝梦游仙境
 
Flask – Python
Flask – PythonFlask – Python
Flask – Python
 
create-netflix-clone-05-client-model.pdf
create-netflix-clone-05-client-model.pdfcreate-netflix-clone-05-client-model.pdf
create-netflix-clone-05-client-model.pdf
 
Scala & sling
Scala & slingScala & sling
Scala & sling
 

Plus de Brian Kelly (12)

Understanding the Internet
Understanding the InternetUnderstanding the Internet
Understanding the Internet
 
Creating a strong password
Creating a strong passwordCreating a strong password
Creating a strong password
 
Internet safety
Internet safetyInternet safety
Internet safety
 
Understanding social media
Understanding social mediaUnderstanding social media
Understanding social media
 
Internet basics slide
Internet basics slideInternet basics slide
Internet basics slide
 
Computer Basics
Computer Basics Computer Basics
Computer Basics
 
Digital video basics
Digital video basicsDigital video basics
Digital video basics
 
Digital Audio 101
Digital Audio 101Digital Audio 101
Digital Audio 101
 
Additional action script 3.0
Additional action script 3.0Additional action script 3.0
Additional action script 3.0
 
Flash 101
Flash 101Flash 101
Flash 101
 
Twitter: It's not what you had for breakfast
Twitter: It's not what you had for breakfastTwitter: It's not what you had for breakfast
Twitter: It's not what you had for breakfast
 
Defining social media
Defining social mediaDefining social media
Defining social media
 

Dernier

ab-initio-training basics and architecture
ab-initio-training basics and architectureab-initio-training basics and architecture
ab-initio-training basics and architecture
saipriyacoool
 
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
instagramfab782445
 
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
gajnagarg
 
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman MuscatAbortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion pills in Kuwait Cytotec pills in Kuwait
 
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...
amitlee9823
 
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
amitlee9823
 
Editorial design Magazine design project.pdf
Editorial design Magazine design project.pdfEditorial design Magazine design project.pdf
Editorial design Magazine design project.pdf
tbatkhuu1
 
➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men 🔝jhansi🔝 Escorts S...
➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men  🔝jhansi🔝   Escorts S...➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men  🔝jhansi🔝   Escorts S...
➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men 🔝jhansi🔝 Escorts S...
amitlee9823
 
Verified Trusted Call Girls Adugodi💘 9352852248 Good Looking standard Profil...
Verified Trusted Call Girls Adugodi💘 9352852248  Good Looking standard Profil...Verified Trusted Call Girls Adugodi💘 9352852248  Good Looking standard Profil...
Verified Trusted Call Girls Adugodi💘 9352852248 Good Looking standard Profil...
kumaririma588
 

Dernier (20)

Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
 
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
 
ab-initio-training basics and architecture
ab-initio-training basics and architectureab-initio-training basics and architecture
ab-initio-training basics and architecture
 
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
 
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
 
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman MuscatAbortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
 
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...
 
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 
Booking open Available Pune Call Girls Nanded City 6297143586 Call Hot India...
Booking open Available Pune Call Girls Nanded City  6297143586 Call Hot India...Booking open Available Pune Call Girls Nanded City  6297143586 Call Hot India...
Booking open Available Pune Call Girls Nanded City 6297143586 Call Hot India...
 
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
 
WhatsApp Chat: 📞 8617697112 Call Girl Baran is experienced
WhatsApp Chat: 📞 8617697112 Call Girl Baran is experiencedWhatsApp Chat: 📞 8617697112 Call Girl Baran is experienced
WhatsApp Chat: 📞 8617697112 Call Girl Baran is experienced
 
Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...
Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...
Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Gi...
 
The hottest UI and UX Design Trends 2024
The hottest UI and UX Design Trends 2024The hottest UI and UX Design Trends 2024
The hottest UI and UX Design Trends 2024
 
Jordan_Amanda_DMBS202404_PB1_2024-04.pdf
Jordan_Amanda_DMBS202404_PB1_2024-04.pdfJordan_Amanda_DMBS202404_PB1_2024-04.pdf
Jordan_Amanda_DMBS202404_PB1_2024-04.pdf
 
Editorial design Magazine design project.pdf
Editorial design Magazine design project.pdfEditorial design Magazine design project.pdf
Editorial design Magazine design project.pdf
 
Sweety Planet Packaging Design Process Book.pptx
Sweety Planet Packaging Design Process Book.pptxSweety Planet Packaging Design Process Book.pptx
Sweety Planet Packaging Design Process Book.pptx
 
➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men 🔝jhansi🔝 Escorts S...
➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men  🔝jhansi🔝   Escorts S...➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men  🔝jhansi🔝   Escorts S...
➥🔝 7737669865 🔝▻ jhansi Call-girls in Women Seeking Men 🔝jhansi🔝 Escorts S...
 
Verified Trusted Call Girls Adugodi💘 9352852248 Good Looking standard Profil...
Verified Trusted Call Girls Adugodi💘 9352852248  Good Looking standard Profil...Verified Trusted Call Girls Adugodi💘 9352852248  Good Looking standard Profil...
Verified Trusted Call Girls Adugodi💘 9352852248 Good Looking standard Profil...
 
AMBER GRAIN EMBROIDERY | Growing folklore elements | Root-based materials, w...
AMBER GRAIN EMBROIDERY | Growing folklore elements |  Root-based materials, w...AMBER GRAIN EMBROIDERY | Growing folklore elements |  Root-based materials, w...
AMBER GRAIN EMBROIDERY | Growing folklore elements | Root-based materials, w...
 

Additional action script 3.0

  • 1. Additional Action Script 3.0 Understanding the loaderClass
  • 2. Additional interaction wish list for our project Load an external swf file Load and external text file Making the text file scrollable via buttons
  • 3. var myLoader : Loader = new Loader( ); CLASS a blueprint or cookie cutter Creates a new variable named myLoader with a data type of Loader new instance of the Loader Class
  • 4. var myLoader:Loader = new Loader(); myLoader.load FUNCTION a task, such as loading an external swf file
  • 5. URLRequest a request to load an external swf file var myLoader:Loader = new Loader(); myLoader.load (new URLRequest(&quot;the name of your swf file goes here.swf&quot;));
  • 6. var myLoader:Loader = new Loader(); myLoader.load(new URLRequest(&quot;the name of your swf file goes here.swf&quot;)); addChild(myLoader); addChild adds the swf to the family
  • 7. unload remove the swf from the timeline
  • 8. var content_req : URLRequest = new URLRequest (“name of your text file goes here.txt” ); CLASS a blueprint or cookie cutter Creates a new variable named content_req with a data type of URLRequest new instance of the URLRequest Class which specifies the name of the text file
  • 9. var content_req :URLRequest = new URLRequest(“name of your text file goes here.txt” ); var content_ldr : URLLoader = new URLLoader (“content_req” ); CLASS a blueprint or cookie cutter
  • 10. Event listener var content_req:URLRequest = new URLRequest(“name of your text file goes here.txt” ); var content_ldr :URLLoader = new URLLoader(“content_req” ); content_ldr .addEventListener(Event.COMPLETE, onComplete);
  • 11. var content_req:URLRequest = new URLRequest(“name of your text file goes here.txt” ); var content_ldr:URLLoader = new URLLoader(“content_req” ); content_ldr.addEventListener(Event.COMPLETE, onComplete); function onComplete(event:Event):void { instance name of text box .text = event.target.data; } FUNCTION a task, such as loading external text file
  • 12. function scrollUp (event:MouseEvent):void { instance name of text box .scrollV -= 2; } FUNCTION a task, such as a scrolling dynamic text file
  • 13. function scrollDown (event:MouseEvent):void { instance name of text box .scrollV += 2; } FUNCTION a task, such as a scrollable dynamic text file function scrollUp(event:MouseEvent):void { instance name of text box.scrollV -= 2; }
  • 14. Event listener instance name of scroll up button .addEventListener(MouseEvent.CLICK, function name for up ); instance name of scroll down button .addEventListener(MouseEvent.CLICK, function name for down ); function scrollDown(event:MouseEvent):void { instance name of text box.scrollV += 2; } function scrollUp(event:MouseEvent):void { instance name of text box.scrollV -= 2; }
  • 15. HTML instructions for the browser on displaying your content TAGS <b> content is here </b> bold <font color> content is here </font color> <font face> content is here </font face> <i> content goes here </i>