Loader component help
... I'm trying to get the imaged that's loaded within
an instance of a loader component.. is there a way to align the
image that's inside?
Look in the online help at the Loader object and specifically
at the info on Loader.content. The example will show you how to
assign the loaded content as a movieClip instance. Then you can set
new values to any of the properties of that clip.
Similar Messages
-
Help with Loader component!
hi, i've got a Loader component on a swf i call holder.swf
i am loading an external.swf in this loader
i have a variable called music in holder.swf.
is there any way for me to access the variable music that was
defined in holder.swf, from the externally loaded external.swf?
in code:
basically i have in "holder.swf"
onClipEvent (load) {
_root.myLoader.contentPath = "external.swf";
_global.music=5;
and in external.swf
i am trying to do
if(_root.music==5){
do something;
}Hi
Won't using _global.music work (rather than _root.music)? I
use various ways to load swf files and usually pass variables via
_global.
Don't think I've used your particualr load method
though. -
Load external jpgs.. to a loader component to transition
I need to load external
images to a loader component, in the main scene, than change
automatically after 2 seconds in a fade transition,,, please help.JamesHammerstein wrote:
> Dear All - Can anyone help?
>
> I have created a spry gallery page with a dropdown to a
number of different
> categories...
>
>
http://aster.rhul.ac.uk/STAR/galleries/gallery_prototype.php
>
> I want to be able to add links on another page that will
automatically load a
> particular gallery from this page, i.e. select a
particular category to be
> displayed from a link on another page.
Try asking your question in the Spry forum where you'll get a
more focused group of viewers for your question :
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=72&catid=602
Danilo Celic
|
http://blog.extensioneering.com/
| WebAssist Extensioneer
| Adobe Community Expert -
Hey guys...
I'm back. I am still working on this site, and have worked
through numerous challanges and gotten through, but I have now hit
a roadblock that I cant seem to conquer... Here is the
situation....I have a “main” file.... I am using the
technique of loading external swf’s into a loader component
on the main file. So each individual page is a different swf file.
I have the navigation set up in a seperate swf file as well, and
have the nav bar loading into another instance of the loader in the
“main” file. The navigation has its own action
scripting that animates it, and I have written action script so
that when you click the buttons (I have attached the code that I
wrote for the buttons), the other loader on the main page should
load the corresponding swf... (still with me?) well I preview the
“main” page and it runs great and the home.swf
automatically loads and the nav loads (and animates), but when you
click the buttons nothing happens... I hope someone can help me
through this problem.... Thanks so much in advance...........Doesnt anyone know how to help me with this issue?
Best,
Ken -
Could someone kindly explain to me how the swf loader component works? How can it be used?
Thanks in advance for any help!Hi,
Goto following link, will help you
http://ryangoodman.net/blog/index.php/2008/02/14/adding_a_pre_loader_in_xcelsius_dashboar
http://help.sap.com/businessobject/product_guides/xcelsius2008SP3/en/Xcelsius2008_FP3.1_release_notes_en.pdf
http://saptechblogsxcelsius.blogspot.com/
-Obaid -
Loader component not displaying content
I had this issue on a few different projects and have not
been able to find a solution:
When loading an image with the loader component, the image
only displays about half the time even though the complete event is
received. I sometimes see a quick flicker of the image.
I have tried both calling invalidate() and resizing after
loading has completed, but does not help.i had a similar issue with that, what i did was create a
class.
this class was linked to a movie clip, and whenever i'd need
an image loaded, i'd simply attach this movie.
as for resizing and positioning of the image, i also did a
code in my enterframe that always made the image centered with a
max size and height of 100, that way it was always proportionate
and i could simply control the size by controlling the xscale and
yscale of the image movie clip.
hope this helps
class image extends MovieClip {
function image() {}
function loadImage(sPath){
this.createEmptyMovieClip("mContent", 0);
// you can also attach a loader there
this["mContent"].loadMovie(sPath);
this.onEnterFrame = function () {
if(this["mContent"].getBytesLoaded() ==
this["mContent"].getBytesTotal()) {
//remove the loader
this["mContent"]._visible = true;
} else {
// update the loader
this["mContent"]._visible = false;
} -
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. -
UI Loader Component causing delay in preloader
Hi All-
I would really appreciate if you could help me with this
issue.
I have a preloader in the first scene. In the next scene is
my main movie, in which I have a UI Loader Component. I've
unchecked "export in first frame" in the linkage options for the UI
loader, but "export for Action Script" is still checked.
The problem is, when I do a "simulate download" my preloader
will not show on screen until it's about 15% loaded already. I'm
assuming this is because the "export for Action Script" for the UI
loader is still on, but the loader obviously won't work without
that option checked...
Is there any way to fix this??
I'm still new to Flash so please bear with me...Thnx for the response Ned, I did do that. First inside of flash with control>test movie. The file worked so I brought onto the DW page and tested in Firefox. Didnt work.
-
Error in Add/Replace Bulk Load component - illegal character in XML
Has anyone ever seen the bulk load component complain about some illegal character in xml? I see this error and not sure what exactly the problem is:
ERROR [SocketReader] - Received error message from server: Character is not legal in XML 1.0
It's a very simple graph - reading data from clover data file and ingesting it straight into Endeca using the out of the box bulk load component.
Thanks for your help!
Edited by: 935345 on May 18, 2012 11:48 AMAssuming you are on EID 2.3, this transformation will apply the fix to all your string fields and print on your console the fields that had non-compliant XML 1.0 characters.
//#CTL2
string[] fields;
// Transforms input record into output record.
function integer transform() {
$out.0.* = $in.0.*;
for(integer i = $in.0.length() - 1; i >=0 ; i--) {
if (getFieldType($in.0.*, i) == "string" && getFieldType($out.0.*, i) == "string") {
if (!isNull($in.0.*, i)) {
string originalValue = getStringValue($in.0.*, i);
string newValue = originalValue.replace("([^\\u0009\\u000a\\u000d\\u0020-\\uD7FF\\uE000-\\uFFFD]|[\\u0092\\u007F]+)","");
if (originalValue != newValue) {
fields[i] = getFieldName($in.0, i);
setStringValue($out.0.*, i, newValue);
return OK;
// Called during component initialization.
// function boolean init() {}
// Called during each graph run before the transform is executed. May be used to allocate and initialize resources
// required by the transform. All resources allocated within this method should be released
// by the postExecute() method.
// function void preExecute() {}
// Called only if transform() throws an exception.
// function integer transformOnError(string errorMessage, string stackTrace) {}
// Called during each graph run after the entire transform was executed. Should be used to free any resources
// allocated within the preExecute() method.
function void postExecute() {
printErr("Fields with non-compliant XML 1.0 characters");
for(integer i = 0; i < fields.length(); i++) {
if (fields[i] != null) {
printErr(fields);
// Called to return a user-defined error message when an error occurs.
// function string getMessage() {}
-- Alex -
Engage upgrade failed - could not load component library
Can anyone help with this......
I had Xcelsius 4.5 Pro and have bought the download to upgrade to Engage. I couldn't get it to install to begin with so I did the fix with Regedit and permissions. This allowed me to install the software but, on opening, I get the message "Could not load component library" I have tried uninstalling and re-installing the software - this didn't work. I also downloaded and installed Service Pack 1 to see if that would fix it, but I am still getting the same message. Grateful for any help with this problem please.
Thanks,
Ronnie
Edited by: Ronnie Leishman on Sep 5, 2008 10:22 AMThe cause of the error sounds like it is being thrown from the communcation between Xcelsius 2008 and the Canvas itself.
To further debug the issue, I'd suggest installing the debugger version of Flash Player. If there is a problem there, then this should expose it.
Uninstall Flash:
http://download.macromedia.com/pub/flashplayer/current/uninstall_flash_player.exe
Install Flash Debug Player:
http://download.macromedia.com/pub/flashplayer/updaters/9/flashplayer_9_ax_debug.exe
Note: make sure to re-install the regular Flash Player after troubleshooting.
Please post the message that the debugger displays if one so happens to occur.
Thanks,
-david -
How can I regulate the volume of an SWF that I load through a
loader component? I am loading several SWFs, each has its own
audio, so it's producing a cacophony of sound. I've already tried
stopAllSounds(); and no luck.
Any ideas? Thanks!Hi,
Goto following link, will help you
http://ryangoodman.net/blog/index.php/2008/02/14/adding_a_pre_loader_in_xcelsius_dashboar
http://help.sap.com/businessobject/product_guides/xcelsius2008SP3/en/Xcelsius2008_FP3.1_release_notes_en.pdf
http://saptechblogsxcelsius.blogspot.com/
-Obaid -
Cannot load component from JAR file.
I got the message : cannot load component ... from JAR file. The class must be compiled and must be on the classpath of the project...
I just add a javabean from a JAR file from Palette manager, then drag and drop it, then got this message.
Can anyone tell me what i was wrong ? Thank you.Hi,
You should paste your error log here to easy for other to help you.
For your scenario, it is a big chance you didn't include the jar file into your classpath, please check.
Thanks. -
Cannot load component class className from project: ProjectName
Hi guys,
I've a strange issue.
I found some solutions on google and on this forum, but they doesn't work for me.
I've a javafx application in netbeans in which I also use swing controls.
I created a custom jlabel control
public class Label extends JLabel {
public Label()
private void setAspect(String csFontName, int nSizeFont, boolean bold,Color cColor)
int style=bold ? Font.BOLD : Font.PLAIN;
this.setFont(new Font(csFontName,style,nSizeFont));
this.setForeground(cColor);
public Label(String csText)
super(csText);
setAspect("Tahoma",10,false,Color.black);
public Label(String csText, int nSize)
super(csText);
setAspect("Tahoma",nSize,false,Color.black);
public Label(String csText, int nSize, boolean bold)
super(csText);
setAspect("Tahoma",10,bold,Color.black);
public Label(String csText, int nSize, boolean bold, Color cColor)
super(csText);
setAspect("Tahoma",10,bold,Color.black);
}I selected Label.java file in the project and I click on Tools->add to palette and I selected Swing controls as family.
I restarted netbeans and I found it in the palette.
I try to drag it into my swing form and I've :
Cannot load component class <ProjectName>.Label from project: D:\Progetti\<ProjectName>.
The class must be compiled and must be on the classpath of the project to which this form belongs.Following forums I went on netbeans log
org.openide.ErrorManager$AnnException: msg
at org.openide.ErrorManager$AnnException.findOrCreate(ErrorManager.java:870)
at org.openide.ErrorManager$DelegatingErrorManager.annotate(ErrorManager.java:653)
Caused by: java.lang.ClassNotFoundException: <ProjectName>.Label
at org.netbeans.modules.form.project.ProjectClassLoader.findClass(ProjectClassLoader.java:178)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.netbeans.modules.form.project.FormClassLoader.findClass(FormClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.netbeans.modules.form.project.ClassPathUtils.loadClass(ClassPathUtils.java:98)
at org.netbeans.modules.form.MetaComponentCreator.prepareClass0(MetaComponentCreator.java:1322)
... 34 more
msg
Cannot load component class ortholab2.Label from project: D:\Progetti\<ProjectName>.
The class must be compiled and must be on the classpath of the project to which this form belongs.I hope someone can help me ,
ThanksThat sounds more like a NetBeans-specific question, not a general java programming question.
Plus, your desciption is inconsistent:
Cannot load component class <ProjectName>.Label from project: D:\Progetti\<ProjectName>.
Cannot load component class ortholab2.Label from project: D:\Progetti\<ProjectName>What is the fully-qualified name of this class: ortholab2.Label ? ortholab2 being both the package name and the project name?
And where do you use it, in the same project or in yet another NetBeans project? -
Wireless Media Server: "Failed To Load Component of Media Serve
When I try to install Wireless Software it always ends up in telling me "Failed to load component of Media Server" after I've restarted the system. Media Server is not running and no icon of Media Server is to be found in the system tray. ?
I am having the same problem. Did you ever get a solution?
I've tried:
uninstalling/reinstalling all the software
forcing exceptions in my firewall (Norton), showing they permit all traffic from the Media Server & Console
assigning a static IP address (my router shows the receiver as connected to the network)
But I still get the "Failed to load component of media server" message every time I log in to Windows or try to start the Media Server manually. When I try to do the receiver's Network Setup (either letting my router assign and address, or with assigning the static address), at first I get the flashing green lights, then just a solid red, with the message that my settings are incorrect. Are those two separate problems, or the same problem?
I am using a 2Wire HomePortal Gateway. The main computer I am attempting to set up through is connected by Ethernet to the gateway. I am using WEP 64-bit encryption with a single key. There are notes about "open" vs "Shared key" modes, but I don't know where to find that info in the HomePortal's settings. I have connected a laptop and a PDA wirelessly with no problems once the key is entered. I can see the receiver on the gateway's summary page of my home network.
Any help is appreciated! -
AS 2.0 Loader component question
I have a site that has a gallery with 40 images, takes a long
time to load so I need to find the best way to correct. The files
that load manually now are movieclips that play in 10 second frames
in their own timeline with an alpha effect on each all the jpgs and
other files are in the main fla which is huge because of this. I
was going to use the loader component but I see you can only use
for .jpgs and I can't put the effect on jpgs, other obvious way is
using loadMovie but then I have to convert all mc's to separate
swfs. Before I go that route is there another way to do this?
rderfI have a site that has a gallery with 40 images, takes a long
time to load so I need to find the best way to correct. The files
that load manually now are movieclips that play in 10 second frames
in their own timeline with an alpha effect on each all the jpgs and
other files are in the main fla which is huge because of this. I
was going to use the loader component but I see you can only use
for .jpgs and I can't put the effect on jpgs, other obvious way is
using loadMovie but then I have to convert all mc's to separate
swfs. Before I go that route is there another way to do this?
rderf
Maybe you are looking for
-
After starting x a command line with a white backgroud (i.e. x11) appears but its either frozen or doesn't recognise my keyboard because I can't type anything and I'm I have to shutdown the computer manually. I have configured x according to the man
-
JCo v3 standalone program works fine but creates connection errors RC 223
I'm using JCO v3 with my own written DestinationDataProvider. In the syslog I find R49 communication error, CPIC return code 020, SAP rc 223 How can I force a proper disconnect at the end of the program? I call Envirnment.unregisterDestinationDataPro
-
Message Handling in BADI implementation
Hi All, Initially I was trying to use an EXIT but was not able to do so because we were not getting the functionality properly. So i switched to BADI. I have implemented a standard BADI and its working fine. Now i want to display messages as required
-
How to kill threads in obiee server
Can some one please tell me how to kill threads in OBIEE server
-
What is the best metadata field for picture TITLE?
Hi -- as stated: what is the best metadata field to use to hold the title of a picture? I've been using the IPTC field "Title", but: - I think this is actually used for a person's job title, not the title of a picture, and - I can't get it to show up