ActionScript Loader Components - GLoader
GearLoader
ActionScript Loader component
used to load static resouces
such as image(png,jpg),swf,txt,binaryData
this project no used static funcitons. need new class to load. Tiny Loader components,flexible in your project.
Examples
Load a bitmap file:
var imageLoader:GImageLoader = new GImageLoader(); //google logo , for test imageLoader.url = "http://www.google.com/images/nav_logo170_hr.png"; imageLoader.onProgress = onProgressHandler; imageLoader.onComplete = onCompleteHandler;imageLoader.load(); function onProgressHandler(e:GLoaderEvent):void{ trace(e.progress); trace(e.loadRate); // download rate } function onCompleteHandler(e:GLoaderEvent):void{ var bitmapData:BitmapData = GImageLoader(e.item).getBitmapData(); }
Load a xml file:
var textLoader:GTextLoader = new GTextLoader(); //google news RSS, for test textLoader.url = "http://news.google.com/?output=rss"; textLoader.onProgress = onProgressHandler; textLoader.onComplete = onCompleteHandler; textLoader.load(); function onProgressHandler(e:GLoaderEvent):void{ trace(e.progress); trace(e.loadRate); // download rate } function onCompleteHandler(e:GLoaderEvent):void{ var xml:XML = new XML(e.content as String); }
Load files by queue:
var loaderQueue:GQueueLoader = new GQueueLoader(); //use before loader loaderQueue.addLoader(imageLoader); loaderQueue.addLoader(textLoader);loaderQueue.onProgress = onQueueProgressHandler; loaderQueue.onComplete = onQueueCompleteHandler; loaderQueue.load(); function onQueueProgressHandler(e:GLoaderEvent):void{ trace(e.rawProgress); // queueLoader's loaded file count progress trace(e.progress); // queueLoader's loaded file bytes progress trace(e.loadRate); // download rate } function onQueueCompleteHandler(e:GLoaderEvent):void{ trace("Queue loaded complete!"); }
now , this open source project on github.
join us we will complete this project to stronger !
github site: https://github.com/Assin/GearLoader.git
lbl.text
Tracy
Similar Messages
-
Opening XLF Loading components .. Does not load all components
Hi
When i try to open a dashboard XLF file, dialog box appears opening file Loading components but the status does not reach to end process/status bar complete. I could see all the component in the preview. In the object browser i did not all the components and this leads me to think that all the objects were not indeed loaded. This is happenning just recently on this XLF. Due to this i am unable to tweak the XLF for enhancements.
Any remedies welcome!
Edited by: Raja Bandla on Sep 2, 2011 10:32 PMHi
Try with this once.
go to File->Document Properties->Check that Show Loading Status box.
still if you are not getting with this
then check excel INDEX/MATCH functions
If you are extensively using INDEX/MATCH functions within the Excel spreadsheet, opt for a selector component with 'Filtered rows' option under the Data Insertion Type
i hope it may helps you. -
Getting error in IC agent business role while loading components.
The user has been allowed and access to all business role.user are using all business roles but when user click on the IC agent business role the following error arise.
Cannot display view CRMCMP_BPIDENT/BuPaMultipleLayoutVS of UI Component CRMCMP_BPIDENT
An exception has occurredException Class CX_CRM_GENIL_GENERAL_ERROR - Component set CRMIC_DEFAULT cannot be loaded with BP_APPL+EMPTY+IC_ACCT_ID since multiple object definitions exist for component SO2
Method: CL_CRM_GENIL_INTERNAL_MODEL=>LOAD_COMPONENT_SET
Source Text Row: 124
Initialization of view CRMCMP_BPIDENT/BuPaMultipleLayoutVS of UI Component CRMCMP_BPIDENT failed
An exception has occurredException Class CX_BSP_WD_RUNTIME_ERROR - View BPConfirmedPartners.MainWindow in component CRMCMP_BPIDENT could not be bound
Method: CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW
Source Text Row: 165
Cannot display view CRMCMP_BPIDENT/BuPaMainVS of UI Component CRMCMP_BPIDENT
An exception has occurredException Class CX_BSP_WD_RUNTIME_ERROR - View BPConfirmedPartners.MainWindow in component CRMCMP_BPIDENT could not be bound
Method: CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW
Source Text Row: 165
Initialization of view CRMCMP_BPIDENT/BuPaMainVS of UI Component CRMCMP_BPIDENT failed
An exception has occurredException Class CX_BSP_WD_RUNTIME_ERROR - View CRMCMP_BPIDENT/BuPaMultipleLayoutVS in component CRMCMP_BPIDENT could not be bound
Method: CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW
Source Text Row: 165
Cannot display view MainWindow of UI Component CRMCMP_BPIDENT
An exception has occurredException Class CX_BSP_WD_RUNTIME_ERROR - View CRMCMP_BPIDENT/BuPaMultipleLayoutVS in component CRMCMP_BPIDENT could not be bound
Method: CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW
Source Text Row: 165
Initialization of view MainWindow of UI Component CRMCMP_BPIDENT failed
An exception has occurredException Class CX_BSP_WD_RUNTIME_ERROR - View CRMCMP_BPIDENT/BuPaMainVS in component CRMCMP_BPIDENT could not be bound
Method: CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW
Source Text Row: 165
Cannot display view CRM_UI_FRAME/WorkAreaViewSet of UI Component CRM_UI_FRAME
An exception has occurredException Class CX_BSP_WD_RUNTIME_ERROR - View BPIDENT.MainWindow in component CRM_UI_FRAME could not be bound
Method: CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW
Source Text Row: 165
Initialization of view CRM_UI_FRAME/WorkAreaViewSet of UI Component CRM_UI_FRAME failed
An exception has occurredException Class CX_BSP_WD_RUNTIME_ERROR - View BSPWD_BASICS/WorkAreaHostViewSet in component CRM_UI_FRAME could not be bound
Method: CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW
Source Text Row: 165
Cannot display view CRM_UI_FRAME/MainWindow of UI Component CRM_UI_FRAME
An exception has occurredException Class CX_BSP_WD_RUNTIME_ERROR - View BSPWD_BASICS/WorkAreaHostViewSet in component CRM_UI_FRAME could not be bound
Method: CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW
Source Text Row: 165
Initialization of view CRM_UI_FRAME/MainWindow of UI Component CRM_UI_FRAME failed
An exception has occurredException Class CX_BSP_WD_RUNTIME_ERROR - View CRM_UI_FRAME/WorkAreaViewSet in component CRM_UI_FRAME could not be bound
Method: CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW
Source Text Row: 165
Cannot display view Root.htm of UI Component CRM_UI_FRAME
An exception has occurredException Class CX_BSP_WD_RUNTIME_ERROR - View CRM_UI_FRAME/WorkAreaViewSet in component CRM_UI_FRAME could not be bound
Method: CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW
Source Text Row: 165
An error occurred during initialization of the application
An exception has occurredException Class CX_BSP_WD_RUNTIME_ERROR - View CRM_UI_FRAME/MainWindow in component CRM_UI_FRAME could not be bound
Method: CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW
Source Text Row: 165
I could not able to diagnose the error from where it is coming and I goggled lot but did not find anything about the above cited issue .
if any of you can help me to solve this soon it will be highly appreciated .Hi,
I am not sure if this appies here. You might check
SPRO->CRM->crm cross-application components->
Generic interaction Layer/Object Layer ->
component-specific settings->
define simple objects
For these objects 2 rules apply:
1. 'search object name' can only be used once.
2. 'search object name' should not have the same name as any 'object
name'.
Do you have any entries, which break these rules?
If it is related to component enhancement, note 1122248 might help.
Best Regards,
Sigrid -
Loading components 1 by 1 [passing value from 1st component to other]
Hi all,
can anyone tell that how to load component one after one.
In my application I have created components and placed in
another component. when i load the page each component is loading
the data Asyncronesly. But i want to load 1st component 1st and
then set value to other components from 1st component.
In 1st component i am filling dropdown and setting property
in that component after setting the property i want to pass that
value to other components and based on that property i set the
corresponding data should be populated in ohter component. how can
i achieve this.
like in second component i am filling tje datagrid items
based on selected value from the dropdown in 1st component..
I just want to pass the property which i set in 1st component
to other components and load the other components after the 1st
component is loaded completely with data..
reply asap
GirishHi Tracy,
I am quering / retrieving data from salesforce database using
AsyncResponder method. In each component i have written login
method [logging into salesforce db].
Created all my mxml component separately and drag&dropped
in another mxml component. -
Best way to load components seperate from the main movie
When my flash movie loads, it takes a while to diaplay the
loading frame because it is too busy exporting the components on
the first frame. What is the best way of avoiding this, while still
being able to use the components through the .swf?
Thanks for any help,
~Oni.OniLink wrote:
> When my flash movie loads, it takes a while to diaplay
the loading frame
> because it is too busy exporting the components on the
first frame. What is the
> best way of avoiding this, while still being able to use
the components through
> the .swf?
>
> Thanks for any help,
> ~Oni.
>
loadMovie("component.swf", _container);
the best way is to load it externally but if you don't get
it, check out
www.gotoandlearn.com ...
they have the best tutorials basic and advanced. -
Failed to load components. Please reinstall the ap...
i have an n95.
windows xp sp 2.
my os is running in english.
the version for pc suite i downloaded was in english for the n95.
pc suite version 6.84.
all the applications work in pc suite EXCEPT for imagestore and applicationinstaller. anytime i try to load these applications it says "failed to load application components. please re-install the program." i HAVE uninstalled the program/drivers/ran pc suite cleaner. five times. i have tried installing an older version of pc suite (the one included in the n95 box). i've tried running that .bat file in pc connectivity solutions. i've tried re-installing through safe mode. this thing is driving me crazy! i just want to install apps on my n95
anybody know how to fix this problem? or does anybody have any suggestions? i tried talking to nokia support but they kept telling me to re-install the program. which i did... obviously it didn't work though. thanks.Hi,
Maybe some of system dll file is missing from your PC. Can you take some logs from PC Suite's application installer?
If you can, do this:
1. Go to http://www.sysinternals.com/Utilities/Filemon.html and download Filemon (it is end of the page).
2. Start FileMon.exe and click 'Options', 'Filter/Highlight..' and set string: *Application* to 'Include' option.
3. Go to http://www.sysinternals.com/Utilities/Regmon.html and download Regmon (it is end of the page).
4. Start RegMon.exe and click 'Options', 'Filter/Highlight..' and set string: *Application* to 'Include' option.
6. Start Nokia Application installer
7. when you get the error message, save logs and attach those log files to your response message (or save to www.savefile.com and send link to me) -
Runtime error with inclusion of Actionscript 2 components
I'm trying to import a AS2 swf into an apollo app, and at
runtime the error #1056 pops up. It doesn't seem to affect
operation of the app afterwards. I've narrowed the cause down to
the inclusion of a couple of Flash 8 components, the Label
component and the ComboBox component. Is it possible to include
Flash 8 components in an Apollo app without causing a runtime
error?I'm trying to import a AS2 swf into an apollo app, and at
runtime the error #1056 pops up. It doesn't seem to affect
operation of the app afterwards. I've narrowed the cause down to
the inclusion of a couple of Flash 8 components, the Label
component and the ComboBox component. Is it possible to include
Flash 8 components in an Apollo app without causing a runtime
error? -
Flash actionscript loads jpg files, no png or gif
Hi, I'm using this script to load png files, but it does not
load them, it loads jpgs. It is being pulled from an xml file. I
have also tried gifs and that does not work. I need to put images
that have transparency. I can not find any refrence to jpg in the
code or anything like that. Any ideas would be helpful.
code:
Thanks,
JoshHi, I'm using this script to load png files, but it does not
load them, it loads jpgs. It is being pulled from an xml file. I
have also tried gifs and that does not work. I need to put images
that have transparency. I can not find any refrence to jpg in the
code or anything like that. Any ideas would be helpful.
code:
Thanks,
Josh -
Problem with Loader Components, can not display my forms properly
Here is the problem (my God, my customer waiting for his web
site:( ... ) I have a form made in CoffeeCup Flash Form Builder
(Nice one...).Now this form with fields like name, sec name age,
etc I want it to apear into my main screen when I press the button
"Reservation" and then the customer could fill the fields and sent
it to my mail. I tryed with the Loader Component, I mean when I
press the button then starts "playing" the form.swf. BUT the Loader
can not display the form properly specialy thinks like drop down
menus in the form, or check boxes....It just show me the
form....The Flash Form Builder gives me 4 files like: form.swf,
form.html, form.php and form.xml. Any solution on how my customers
complete this form with no problems?
THANK YOU A LOT!Dear,
You have to following these step to run form on firefox,
Run the following file,
1) C:\DevSuiteHome_1\jinit\jinit.exe
2) jvm.dll copy this file to the following path,
C:\Program Files\Oracle\JInitiator 1.3.1.22\bin\hotspot
3) And firefox connection settiong with 'No-Proxy'
The above setting it will help full you to run your form on firefox.
Thank you, -
Im pretty new to actionscript and the likes so bare with me,
here's the situation:
I have 2 loader components, each on a different keyframe on
the same timeline.
They both load an external image like so:
myLoader_1.contentPath="image_1.png"
Now what I want to do is create a transition between these 2
components, so one fades in as the other fades out.
Any help is appreciated! Remember Im still new to
this.You will need to load the images into the flash movie before
displaying
them. If they are movie clips with instance names you can use
action script
to create a fade by changing the ALPHA property for each clip
-- fading one
out as you fade the other in.
Rich
"mac89" <[email protected]> wrote in message
news:fcob91$5e1$[email protected]..
> Im pretty new to actionscript and the likes so bare with
me, here's the
> situation:
> I have 2 loader components, each on a different keyframe
on the same
> timeline.
> They both load an external image like so:
>
myLoader_1.contentPath="image_1.png"
>
> Now what I want to do is create a transition between
these 2 components,
> so
> one fades in as the other fades out.
> Any help is appreciated! Remember Im still new to this.
> -
Can I have two loader components in one flash file (my main web page) I have a main loader for my pages to load into when the corresponding button is clicked. I need to add a second one for a small .swf file of a interactive calendar. So I guess I need another loader . I tried to add another loader to my main flash page and it said something like this component is in use or has same name. I looked in my library and changed the name of my other loader to myLoader and it is still giving this wierd error. Is is possible to use the Loader component twice in one flash document? I also don't have them in the first frame of my document because I have an animation that plays through first.
I'm only trying to interpret what that message is telling me in this response. It seems to be indicating that you have some object in the library that you have named "calLoader" and assigned it a linkage ID of Loader (possibly by default) as well as another object in the library named myLoader that has the same linkage ID (possibly by default).
If these two objects are the same component type, then you only need one of them in the library. The different naming of them can be managed on the stage. -
Loader Component IE7 Scaling Content Issue
Hello,
I have an image gallery that is using Loader components to
pull in the thumbnails and i have the scaling set to true, but in
IE7 it is very inconsistent in scaling... IE6 and Mozilla work
great, but IE7 is inconsistent... click on the top left to view
image galleries, then select Family or Weddings and you can see
what i mean..
http://www.gummyinteractive.com/projects/infinite/
thanks in advance!Yes, because of the size of the stage being larger than that
of the Loader and loaded SWF, you will see it rendered 'outside'
the Loader component.
Simply mask the area of the Loader Component, in the loading
SWF. -
More FMS & Flash CS3 not loading FLV
I consider myself an intelligent fellow, but getting Flash
CS3 to stream vis FMS is killing me. I've read the posts here where
people are describing similar situations. I've read several
websites that show kinda similar methods of getting this done, but
none are working! The docs on FMS & CS3 are like in an infinite
loop "see AS2.0/3.0 documentation on how to stream videos" &
when you get there "See FMS documentation on how to stream
videos"!!
I've read this & did it all, no dice:
http://www.mcalister.cc/ddd/flv/index.html
Read this which linked me to above, no dice:
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveD ocs_Parts&file=00003495.html
Here is my config:
SERVER running FMS2, Windows Server 2003, IIS6, offsite, but
am able to RDP in.
File structure:
C:\Program Files\Macromedia\Flash Media Server
2\applications\ForRentFlash\streams\small\Cosmo_Small.flv
C:\Program Files\Macromedia\Flash Media Server
2\applications\ForRentFlash\main.asc (sole content being:
load(components.asc))
Where: ForRentFlash = appName
small = instanceName
Flash CS3 development locally & testing movie produces
WHITE SCREEN.
Component Inspector for FLVPlayBack AS3.0 dropped on stage:
Source Content Path:
rtmp://1.2.3.4/ForRentFlash/small/Cosmo_Small.flv (of course with
correct IP)
No matter how I go about this, I end up with: FAILED TO LOAD
rtmp://1.2.3.4/ForRentFlash/small/Cosmo_Small.flv.
Port 1935 was opened on the firewall of the remote
server.Try placing your flv files in a _definst_ directory.....
Here is how mine are set up:
C:\Program Files\Macromedia\Flash Media Server
2\applications\aniridia\streams\_definst_\V032v.flv
I don't use any .asc files, but I'm fairly certain that they
would be in the root of the " aniridia " directory (which is the
application), rather than in the " aniridia\streams\_definst_ "
directory.
My videos would not stream until I put them in the _definst_
directory.
I use an xml playlist with my flv player to call my videos.
My stream syntax looks like this:
rtmp://mydomain.com/aniridia
Don't reference the flv file name.
Good luck! -
I'm not too sure I want to troubleshoot anymore when it comes
to the Loader component and IE7, but I wanted to check if anyone
has anything new on the matter. All searches concerning this issue
show unanswered posts, so I guess it's just another bug/conflict
that Adobe isn't concerned about or if the issue is just with IE7.
The main issue is when loading images into the loader component,
scaleContent set to default (true), autoLoad set to default (true),
when images are loaded, they are not always aligned properly in the
center. Plus, most of the time I see a flicker of the image
appearing either on the top left or bottom left of the loader
before the image appears as it should. I've even tried AS2 to
center the loader.content._x and loader.content._y on
listener.complete (see code), but randomly the loaded image's (0,0)
position seems to be in the center of the loader (I was going to
provide a screen shot of what I'm talking about, but I think the
explanation is clear). All the above works great on Firefox, Opera,
Safari, and even the crappy AOL browser, but not consistently on
IE7.
Is this a known issue or an unsolved bug?
Unless anyone has an answer to the above, I would like to
also ask around about purchasing loader components online. I've
seen several, but wanted some testimonials from people who have
used them.
If anyone wants to visually see what I'm talking about, go to
Design Visions of
Austin and click "on the boards". If you compare the website
using Firefox versus IE7, you will see what I mean.
Thanks to anyone who can help. I hope this post doesn't go
unanswered. In the past, I've helped a lot of people, so I would
appreciate if someone could help me for once :) thanks again...
I just realized... two variables I mentioned in my code were
assigned prior to the attached code.
var cpLoader:mx.controls.Loader;
var cpLoaderWidth:Number = cpLoader.width;
var cpLoaderHeight:Number = cpLoader.height;The flicker happens on both FF2 and IE7, and is because you
are positioning after the load is complete. To solve this, set the
visibility of the Loader to false (cPLoader._visible = false;)
before moving the content, and to true after. IE (you could try it
this way, but it might not work)
cpLoaderListener.complete = function(evt_obj:Object) {
mcPreloaderClip._visible = cpLoader._visible = false;
var cpLoaderContentWidth:Number = cpLoader.content._width;
var cpLoaderContentHeight:Number = cpLoader.content._height;
cpLoader.content._x = (cpLoaderWidth - cpLoaderContentWidth)
/ 2;
cpLoader.content._y = (cpLoaderHeight -
cpLoaderContentHeight) / 2;
cpLoader._visible = true;
It would be better to set cpLoader._visible = false on the
button click that loads the image, maybe with an automatic fade out
implemented to make it smoother. Then setting it back to true after
moving it fixes the flicker effect.
As for the centering not working in IE7. The very first image
does not center properly in IE7, but after that everything works
identical to FF. I am unsure how to fix that issue. I have always
implemented a centering script myself to ensure that things get
centered properly, and have not yet had any problems with it. -
Why is load status bar appearing on startup?
I just downloaded and installed Yosemite on my MacBook Air and Macbook Pro 13 inch notebooks. Everything is working as it should. But I noticed something I have not seen on previous OSX installs once the install is completed. On each successive startup I see the Apple logo on a blank screen, which is normal. But in addition to the logo I am now seeing a status load bar underneath the logo. Usually I only see this status load bar on initial installs when components are being unpacked, configured and installed. I am wondering if Yosemite is not installed completely and keeps re-loading components on each boot-up. Anyone else experiencing the same issue?
I have exactly the same problem - grey screen with progress bar before computer fully opens. My wife has also installed yosemite - but her machine has the spinning wheel still before it fully opens. Two different laptops with yosemite behaving differently. Also my laptop finally opens - very sluggish in safari - whereas my wife laptop works fine. Something is not right!!!
Maybe you are looking for
-
How to create lead follow up opportunity....
Hello, How to create lead follow up opportunity automatically... Also my clients need is when we change the status of Lead from Open or In-Process or Won to Completed then an automatic email should go to the employee responsible in the lead. Please h
-
How do I save an album to my iPad?
How do I save an album to my iPad? This really should be pretty basic.
-
Do I need flash of can I get rid of it and somehow use HTML or anything else? XPSP3 FF7b
Please no details on how to troubleshoot. I'm looking for alternates to flash player and don't know enough about this topic despite googling this subject (alot)...
-
RE: Field status of the vendor account group
Hi, I am doing customization for argentina country specific: For the vendor account group there should be a field called Fiscal type in General-control tab, But i dont see it. Can any one please help me on this thing?
-
BPC 7.5 - Multiple Usernames in the owner property for Work Status Update
Good Day, We have an issue in our BPC system, where our organisation dimension(entity) has an owner property which is maintained with multiple usernames. The issues comes in when we have to update the Work status for locking. The system recognises th