As3 preloader problem - Captivate5
Hello all,
Been searching around for this for a bit in a the forums and cant find anything on it here goes:
I have a project that i built with a ToC for my company. And i have a as3 preloader as well.
Problem:
Preloader is fine and centered in the middle of my project with out a ToC but when i add the Toc the preloader will not center in my project i have tried to alter it in the html file insterting <center> tags and such and also externalizing the skin or FMR SWF also removing and placing it back in and not getting a fix for it. I realize this maybe a simple fix but i cant find anything in the forums here discribing exactly this issue.
can anyone help
thanx
bobby
Hi,
Going out on a stretch here but did you, by any chance, added external swf or widgets that would have set the values of either Stage.scaleMode or Stage.align. That could explain the effects you are seeing.
Whyves
www.flash-factor.com
Similar Messages
-
Preloader problems - disappears at 60%
Hi,
I have two Preloader problems for a project I'm working on right now.
1. The Main Site preloader disappears when 60% is loaded...with a blank screen lag until moving to the main screen
2. My external .swf Preloader is still on screen after an external .swf has loaded. I can hear the external .swf playing while watching my loader bar at about 20-40%.
I'm going to show the code I have for each...hopefully someone can help. Thanks!
Main Site Preloader:
var yChange = 109.2;
var yStart = 330.2;
myInterval = setInterval(preload,100);
function preload() {
var current = _root.getBytesLoaded();
var total = _root.getBytesTotal();
var pctLoaded = Math.round(current/total*100);
mask_mc._y = yStart - yChange/100*pctLoaded;
if (current >= total) {
clearInterval(myInterval);
gotoAndStop("Main",1);
External SWF Preloader:
var mcLoader:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
mcLoader.addListener(myListener);
myListener.onLoadProgress = function(target_mc,bytesLoaded,bytesTotal) {
extLoader_mc._visible = true;
var pctLoaded = Math.round(bytesLoaded/bytesTotal*100);
extLoader_mc.extLoaderBar_mc._xscale = pctLoaded;
if (bytesLoaded >= bytesTotal) {
extLoader_mc._visible = false;change soundHandler in the fla to:
// this code below is on the main timeline?
var soundHandler:AdobeCaptivate.rdSoundHandler = new AdobeCaptivate.rdSoundHandler(this);
and change rdSoundHandler:
import AdobeCaptivate.rdSound;
import flash.display.MovieClip; // if this is as3
class AdobeCaptivate.rdSoundHandler extends Object
var m_sounds:Object;
var m_movieSound:rdSound;
var mainMC:MovieClip;
function rdSoundHandler(mc:MovieClip)
m_sounds = new Object();
m_movieSound = null;
mainMC=mc;
function attachSound(key:Number, id:String):rdSound
var sound:rdSound;
if(m_sounds[key] == undefined || m_sounds[key] == null)
{ //attach new sound to the handler
var newSound:rdSound = new rdSound(mainMC);
// and now you have to find rdSound() class and post that
newSound.attachSound(id);
sound = m_sounds[key] = newSound;
else
sound = m_sounds[key];
sound.stopSound();
return sound;
function detachSound(key:Number)
{ //remove the sound object from the handler
if(m_sounds[key] != undefined && m_sounds[key] != null)
var sound:rdSound = m_sounds[key];
sound.stopSound();
m_sounds[key] = undefined;
function playAllSounds(bPause:Boolean)
if(bPause == true)
{ //pause all sounds
if(m_movieSound != null)
m_movieSound.pause();
for(var key in m_sounds)
m_sounds[key].pause();
else
{ //resume all sounds
if(m_movieSound != null)
m_movieSound.play();
for(var key in m_sounds)
m_sounds[key].play(); -
Load AS2 swf into AS3 swf problem
I have a flash with AS3 and inside this swf i load in a AS2 swf.
to load swf works just fine, but the problem is when i load this i want to go to
a specific part of it, for example i want to go to frame 3 in the loaded swf.
i must control this from the AS3 swf, does someone know if this is possible?
thanks in advanceso can i do like this then to go to frame 3 in my loaded swf?
MovieClip(ldr.content).gotoAndStop(3); ?
sorry for being such an airhead
thanks for helping me out =)
Date: Sun, 7 Jun 2009 10:25:09 -0600
From: [email protected]
To: [email protected]
Subject: load AS2 swf into AS3 swf problem
no.
if, in your loaded swf, you have a function f1() on the loaded swf's main timeline and you load that swf using a loader (say ldr), use:
MovieClip(ldr.content).f1(); // to call f1() in the loaded swf
> -
MBean Info preloading problem:
Hi.
I have Weblogic 6.1 cluster running on Solaris. When I start the Admin
server some times I'm getting this following error. This is not
happening all time. I have noticed this problem during these following
cases:
1. When I forcefully stop the server by kill the service
2. If I try to start the server immediately after shutdown.
I would appreciate If some can tell me why does this happen?
WLCP is /export/home/kana/stage01:/export/home/kana/stage01/bin/jars/SessionPatch.jar:/export/home/kana/stage01/bin/jars/kanaPlatform.jar:/export/home/kana/stage01/etc:/oracle/jdbc/lib/classes12.zip:/export/home/kana/stage01/bin/jars/avs30.jar:/export/home/kana/stage01/bin/jars/comm.jar:/export/home/kana/stage01/bin/jars/cs-tidy.jar:/export/home/kana/stage01/bin/jars/ibm-jlog-2.1.1-english.jar:/ex
ort/home/kana/stage01/bin/jars/oreilly.jar:/export/home/kana/stage01/bin/jars/ssce.jar:/export/home/kana/stage01/bin/jars/w3c-codec-1.2.jar:/export/home/kana/stage01/bin/jars/lotusxsl.jar:/export/home/kana/stage01/bin/jars/commons-beanutils.jar:/export/home/kana/stage01/bin/jars/commons-collections.jar:/export/home/kana/stage01/bin/jars/commons-digester.jar:/export/home/kana/stage01/bin/jars/apoll
.jar:/export/home/kana/stage01/bin/jars/apollo_common.jar
/export/home/kana/stage01:/export/home/kana/stage01/bin/jars/SessionPatch.jar:/export/home/kana/stage01/bin/jars/kanaPlatform.jar:/export/home/kana/stage01/etc:/oracle/jdbc/lib/classes12.zip:/export/home/kana/stage01/bin/jars/avs30.jar:/export/home/kana/stage01/bin/jars/comm.jar:/export/home/kana/stage01/bin/jars/cs-tidy.jar:/export/home/kana/stage01/bin/jars/ibm-jlog-2.1.1-english.jar:/export/hom
/kana/stage01/bin/jars/oreilly.jar:/export/home/kana/stage01/bin/jars/ssce.jar:/export/home/kana/stage01/bin/jars/w3c-codec-1.2.jar:/export/home/kana/stage01/bin/jars/lotusxsl.jar:/export/home/kana/stage01/bin/jars/commons-beanutils.jar:/export/home/kana/stage01/bin/jars/commons-collections.jar:/export/home/kana/stage01/bin/jars/commons-digester.jar:/export/home/kana/stage01/bin/jars/apollo.jar:/e
port/home/kana/stage01/bin/jars/apollo_common.jar:/export/home/kana/stage01:/export/home/kana/stage01/bin/jars/SessionPatch.jar:/export/home/kana/stage01/bin/jars/kanaPlatform.jar:/export/home/kana/stage01/etc:/oracle/jdbc/lib/classes12.zip:/export/home/kana/stage01/bin/jars/avs30.jar:/export/home/kana/stage01/bin/jars/comm.jar:/export/home/kana/stage01/bin/jars/cs-tidy.jar:/export/home/kana/stage
1/bin/jars/ibm-jlog-2.1.1-english.jar:/export/home/kana/stage01/bin/jars/oreilly.jar:/export/home/kana/stage01/bin/jars/ssce.jar:/export/home/kana/stage01/bin/jars/w3c-codec-1.2.jar:/export/home/kana/stage01/bin/jars/lotusxsl.jar:/export/home/kana/stage01/bin/jars/commons-beanutils.jar:/export/home/kana/stage01/bin/jars/commons-collections.jar:/export/home/kana/stage01/bin/jars/commons-digester.ja
:/export/home/kana/stage01/bin/jars/apollo.jar:/export/home/kana/stage01/bin/jars/apollo_common.jar:.:./lib/CR073072_610sp2.jar:./lib/weblogic_sp.jar:./lib/weblogic.jar:/export/home/kana/common/lib/HTTPClient.zip:/export/home/kana/common/lib/adapter.jar:/export/home/kana/common/lib/castor-0.9.4.1.jar:/export/home/kana/common/lib/commons-collections.jar:/export/home/kana/common/lib/commons-pool.jar
/export/home/kana/common/lib/grnds.jar:/export/home/kana/common/lib/hsqldb.jar:/export/home/kana/common/lib/jakarta-oro-2.0.2-dev-1.jar:/export/home/kana/common/lib/jdom.jar:/export/home/kana/common/lib/junit.jar:/export/home/kana/common/lib/log4j-1.2beta4.jar:/export/home/kana/common/lib/log4j.jar:/export/home/kana/common/lib/soap.jar:/export/home/kana/common/lib/struts.jar:/export/home/kana/comm
n/lib/velocity-1.2-dev.jar:/export/home/kana/common/lib/xalan.jar:/export/home/kana/common/lib/xalanj1compat.jar:/export/home/kana/common/lib/xerces.jar:/export/home/kana/stage01/bin/jars/ibm-xml4j-2.0.15.jar:/export/home/kana/stage01/bin/jars/lotusxsl.jar:/export/home/kana/stage01/ApolloProject/config
/export/home/kana/common/lib/HTTPClient.zip:/export/home/kana/common/lib/adapter.jar:/export/home/kana/common/lib/castor-0.9.4.1.jar:/export/home/kana/common/lib/commons-collections.jar:/export/home/kana/common/lib/commons-pool.jar:/export/home/kana/common/lib/grnds.jar:/export/home/kana/common/lib/hsqldb.jar:/export/home/kana/common/lib/jakarta-oro-2.0.2-dev-1.jar:/export/home/kana/common/lib/jdo
.jar:/export/home/kana/common/lib/junit.jar:/export/home/kana/common/lib/log4j-1.2beta4.jar:/export/home/kana/common/lib/log4j.jar:/export/home/kana/common/lib/soap.jar:/export/home/kana/common/lib/struts.jar:/export/home/kana/common/lib/velocity-1.2-dev.jar:/export/home/kana/common/lib/xalan.jar:/export/home/kana/common/lib/xalanj1compat.jar:/export/home/kana/common/lib/xerces.jar
-Dweblogic.Domain=wka1stg01 -Dweblogic.Name=app1stg01
-Dbea.home=/export/home/wls/weblogic
-Dweblogic.management.password=weblogic
-Dweblogic.ProductionModeEnabled=true
-Djava.security.policy==/export/home/wls/weblogic/wlserver6.1/lib/weblogic.policy
-Djava.protocol.handler.pkgs=com.kana.ebiz.protocol
-Dapollo.properties=/export/home/kana/stage01/ApolloProject/config/apollo.properties
-Dapollologger.properties=/export/home/kana/stage01/ApolloProject/config/logger.properties
-Dstubbo.properties=/export/home/kana/stage01/ApolloProject/config/stubbo.properties
-Dfile.encoding=Cp1252
Starting WebLogic Server ....
MBean Info preloading problem:
java.lang.ClassCastException: Assigning instance of class
java.lang.String to field
javax.management.MBeanAttributeInfo#attributeType
at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2271)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.inputArray(ObjectInputStream.java:1142)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:374)
at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at weblogic.management.internal.Helper.getMBeanInfo(Helper.java:205)
at weblogic.management.internal.Helper.preloadMBeanInfos(Helper.java:232)
at weblogic.management.Admin.initialize(Admin.java:212)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:362)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
at weblogic.Server.main(Server.java:35)
MBean Info preloading problem:
java.lang.ClassCastException: Assigning instance of class
java.lang.String to field
javax.management.MBeanFeatureInfo#description
at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2271)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at javax.management.MBeanFeatureInfo.readObject(MBeanFeatureInfo.java:78)
at java.lang.reflect.Method.invoke(Native Method)
at java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:2214)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.inputArray(ObjectInputStream.java:1142)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:374)
at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at weblogic.management.internal.Helper.getMBeanInfo(Helper.java:205)
at weblogic.management.internal.Helper.preloadMBeanInfos(Helper.java:232)
at weblogic.management.Admin.initialize(Admin.java:212)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:362)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
at weblogic.Server.main(Server.java:35)
MBean Info preloading problem:
java.lang.ClassCastException: Assigning instance of class
java.lang.String to field
javax.management.MBeanAttributeInfo#attributeType
at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2271)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.inputArray(ObjectInputStream.java:1142)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:374)
at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at weblogic.management.internal.Helper.getMBeanInfo(Helper.java:205)
at weblogic.management.internal.Helper.preloadMBeanInfos(Helper.java:232)
at weblogic.management.Admin.initialize(Admin.java:212)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:362)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
at weblogic.Server.main(Server.java:35)
MBean Info preloading problem:
--------------- nested within: ------------------
weblogic.management.configuration.ConfigurationException: Error
creating mbean, type: CustomRealm, parent:
wka1stg01:Name=wka1stg01,Type=Domain, objectName:
wka1stg01:Name=defaultLDAPRealmForNetscapeDirectoryServer,Type=CustomRealm
while parsing XML config file - with nested exception:
[weblogic.management.MBeanCreationException: - with nested exception:
[weblogic.management.MBeanCreationException: - with nested exception:
[java.lang.reflect.InvocationTargetException - with target exception:
[java.lang.ClassCastException: Assigning instance of class
java.lang.String to field
javax.management.MBeanAttributeInfo#attributeType]]]]
at weblogic.management.internal.xml.ConfigurationParser$ConfigurationHandler.createAdminMBean(ConfigurationParser.java:281)
at weblogic.management.internal.xml.ConfigurationParser$ConfigurationHandler.startElement(ConfigurationParser.java:183)
at weblogic.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1340)
at weblogic.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1183)
at weblogic.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1876)
at weblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1252)
at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:967)
at weblogic.management.internal.xml.ConfigurationParser.parse(ConfigurationParser.java:105)
at weblogic.management.internal.xml.XmlFileRepository.loadDomain(XmlFileRepository.java:261)
at weblogic.management.internal.xml.XmlFileRepository.loadDomain(XmlFileRepository.java:223)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy1.loadDomain(Unknown Source)
at weblogic.management.AdminServer.configureFromRepository(AdminServer.java:188)
at weblogic.management.AdminServer.configure(AdminServer.java:173)
at weblogic.management.Admin.initialize(Admin.java:239)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:362)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
at weblogic.Server.main(Server.java:35)
Reason: Fatal initialization exceptionYou should post this to the weblogic.developer.interest.management
newsgroup.
"siva" <[email protected]> wrote in message
news:[email protected]...
Hi.
I have Weblogic 6.1 cluster running on Solaris. When I start the Admin
server some times I'm getting this following error. This is not
happening all time. I have noticed this problem during these following
cases:
1. When I forcefully stop the server by kill the service
2. If I try to start the server immediately after shutdown.
I would appreciate If some can tell me why does this happen?
WLCP is/export/home/kana/stage01:/export/home/kana/stage01/bin/jars/SessionPatch.ja
r:/export/home/kana/stage01/bin/jars/kanaPlatform.jar:/export/home/kana/stag
e01/etc:/oracle/jdbc/lib/classes12.zip:/export/home/kana/stage01/bin/jars/av
s30.jar:/export/home/kana/stage01/bin/jars/comm.jar:/export/home/kana/stage0
1/bin/jars/cs-tidy.jar:/export/home/kana/stage01/bin/jars/ibm-jlog-2.1.1-eng
lish.jar:/ex
>
ort/home/kana/stage01/bin/jars/oreilly.jar:/export/home/kana/stage01/bin/jar
s/ssce.jar:/export/home/kana/stage01/bin/jars/w3c-codec-1.2.jar:/export/home
/kana/stage01/bin/jars/lotusxsl.jar:/export/home/kana/stage01/bin/jars/commo
ns-beanutils.jar:/export/home/kana/stage01/bin/jars/commons-collections.jar:
/export/home/kana/stage01/bin/jars/commons-digester.jar:/export/home/kana/st
age01/bin/jars/apoll
.jar:/export/home/kana/stage01/bin/jars/apollo_common.jar
/export/home/kana/stage01:/export/home/kana/stage01/bin/jars/SessionPatch.ja
r:/export/home/kana/stage01/bin/jars/kanaPlatform.jar:/export/home/kana/stag
e01/etc:/oracle/jdbc/lib/classes12.zip:/export/home/kana/stage01/bin/jars/av
s30.jar:/export/home/kana/stage01/bin/jars/comm.jar:/export/home/kana/stage0
1/bin/jars/cs-tidy.jar:/export/home/kana/stage01/bin/jars/ibm-jlog-2.1.1-eng
lish.jar:/export/hom
>
/kana/stage01/bin/jars/oreilly.jar:/export/home/kana/stage01/bin/jars/ssce.j
ar:/export/home/kana/stage01/bin/jars/w3c-codec-1.2.jar:/export/home/kana/st
age01/bin/jars/lotusxsl.jar:/export/home/kana/stage01/bin/jars/commons-beanu
tils.jar:/export/home/kana/stage01/bin/jars/commons-collections.jar:/export/
home/kana/stage01/bin/jars/commons-digester.jar:/export/home/kana/stage01/bi
n/jars/apollo.jar:/e
>
port/home/kana/stage01/bin/jars/apollo_common.jar:/export/home/kana/stage01:
/export/home/kana/stage01/bin/jars/SessionPatch.jar:/export/home/kana/stage0
1/bin/jars/kanaPlatform.jar:/export/home/kana/stage01/etc:/oracle/jdbc/lib/c
lasses12.zip:/export/home/kana/stage01/bin/jars/avs30.jar:/export/home/kana/
stage01/bin/jars/comm.jar:/export/home/kana/stage01/bin/jars/cs-tidy.jar:/ex
port/home/kana/stage
>
1/bin/jars/ibm-jlog-2.1.1-english.jar:/export/home/kana/stage01/bin/jars/ore
illy.jar:/export/home/kana/stage01/bin/jars/ssce.jar:/export/home/kana/stage
01/bin/jars/w3c-codec-1.2.jar:/export/home/kana/stage01/bin/jars/lotusxsl.ja
r:/export/home/kana/stage01/bin/jars/commons-beanutils.jar:/export/home/kana
/stage01/bin/jars/commons-collections.jar:/export/home/kana/stage01/bin/jars
/commons-digester.ja
>
:/export/home/kana/stage01/bin/jars/apollo.jar:/export/home/kana/stage01/bin
/jars/apollo_common.jar:.:./lib/CR073072_610sp2.jar:./lib/weblogic_sp.jar:./
lib/weblogic.jar:/export/home/kana/common/lib/HTTPClient.zip:/export/home/ka
na/common/lib/adapter.jar:/export/home/kana/common/lib/castor-0.9.4.1.jar:/e
xport/home/kana/common/lib/commons-collections.jar:/export/home/kana/common/
lib/commons-pool.jar
>
/export/home/kana/common/lib/grnds.jar:/export/home/kana/common/lib/hsqldb.j
ar:/export/home/kana/common/lib/jakarta-oro-2.0.2-dev-1.jar:/export/home/kan
a/common/lib/jdom.jar:/export/home/kana/common/lib/junit.jar:/export/home/ka
na/common/lib/log4j-1.2beta4.jar:/export/home/kana/common/lib/log4j.jar:/exp
ort/home/kana/common/lib/soap.jar:/export/home/kana/common/lib/struts.jar:/e
xport/home/kana/comm
>
n/lib/velocity-1.2-dev.jar:/export/home/kana/common/lib/xalan.jar:/export/ho
me/kana/common/lib/xalanj1compat.jar:/export/home/kana/common/lib/xerces.jar
:/export/home/kana/stage01/bin/jars/ibm-xml4j-2.0.15.jar:/export/home/kana/s
tage01/bin/jars/lotusxsl.jar:/export/home/kana/stage01/ApolloProject/config
>
/export/home/kana/common/lib/HTTPClient.zip:/export/home/kana/common/lib/ada
pter.jar:/export/home/kana/common/lib/castor-0.9.4.1.jar:/export/home/kana/c
ommon/lib/commons-collections.jar:/export/home/kana/common/lib/commons-pool.
jar:/export/home/kana/common/lib/grnds.jar:/export/home/kana/common/lib/hsql
db.jar:/export/home/kana/common/lib/jakarta-oro-2.0.2-dev-1.jar:/export/home
/kana/common/lib/jdo
>
.jar:/export/home/kana/common/lib/junit.jar:/export/home/kana/common/lib/log
4j-1.2beta4.jar:/export/home/kana/common/lib/log4j.jar:/export/home/kana/com
mon/lib/soap.jar:/export/home/kana/common/lib/struts.jar:/export/home/kana/c
ommon/lib/velocity-1.2-dev.jar:/export/home/kana/common/lib/xalan.jar:/expor
t/home/kana/common/lib/xalanj1compat.jar:/export/home/kana/common/lib/xerces
.jar
-Dweblogic.Domain=wka1stg01 -Dweblogic.Name=app1stg01
-Dbea.home=/export/home/wls/weblogic
-Dweblogic.management.password=weblogic
-Dweblogic.ProductionModeEnabled=true
-Djava.security.policy==/export/home/wls/weblogic/wlserver6.1/lib/weblogic.policy
-Djava.protocol.handler.pkgs=com.kana.ebiz.protocol
-Dapollo.properties=/export/home/kana/stage01/ApolloProject/config/apollo.properties
-Dapollologger.properties=/export/home/kana/stage01/ApolloProject/config/logger.properties
-Dstubbo.properties=/export/home/kana/stage01/ApolloProject/config/stubbo.properties
-Dfile.encoding=Cp1252
Starting WebLogic Server ....
MBean Info preloading problem:
java.lang.ClassCastException: Assigning instance of class
java.lang.String to field
javax.management.MBeanAttributeInfo#attributeType
at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2271)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.inputArray(ObjectInputStream.java:1142)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:374)
at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at weblogic.management.internal.Helper.getMBeanInfo(Helper.java:205)
at weblogic.management.internal.Helper.preloadMBeanInfos(Helper.java:232)
at weblogic.management.Admin.initialize(Admin.java:212)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:362)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
at weblogic.Server.main(Server.java:35)
MBean Info preloading problem:
java.lang.ClassCastException: Assigning instance of class
java.lang.String to field
javax.management.MBeanFeatureInfo#description
at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2271)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at javax.management.MBeanFeatureInfo.readObject(MBeanFeatureInfo.java:78)
at java.lang.reflect.Method.invoke(Native Method)
atjava.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:2214)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.inputArray(ObjectInputStream.java:1142)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:374)
at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at weblogic.management.internal.Helper.getMBeanInfo(Helper.java:205)
at weblogic.management.internal.Helper.preloadMBeanInfos(Helper.java:232)
at weblogic.management.Admin.initialize(Admin.java:212)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:362)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
at weblogic.Server.main(Server.java:35)
MBean Info preloading problem:
java.lang.ClassCastException: Assigning instance of class
java.lang.String to field
javax.management.MBeanAttributeInfo#attributeType
at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2271)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.inputArray(ObjectInputStream.java:1142)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:374)
at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at weblogic.management.internal.Helper.getMBeanInfo(Helper.java:205)
at weblogic.management.internal.Helper.preloadMBeanInfos(Helper.java:232)
at weblogic.management.Admin.initialize(Admin.java:212)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:362)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
at weblogic.Server.main(Server.java:35)
MBean Info preloading problem:
--------------- nested within: ------------------
weblogic.management.configuration.ConfigurationException: Error
creating mbean, type: CustomRealm, parent:
wka1stg01:Name=wka1stg01,Type=Domain, objectName:
wka1stg01:Name=defaultLDAPRealmForNetscapeDirectoryServer,Type=CustomRealm
while parsing XML config file - with nested exception:
[weblogic.management.MBeanCreationException: - with nested exception:
[weblogic.management.MBeanCreationException: - with nested exception:
[java.lang.reflect.InvocationTargetException - with target exception:
[java.lang.ClassCastException: Assigning instance of class
java.lang.String to field
javax.management.MBeanAttributeInfo#attributeType]]]]
atweblogic.management.internal.xml.ConfigurationParser$ConfigurationHandler.cr
eateAdminMBean(ConfigurationParser.java:281)
atweblogic.management.internal.xml.ConfigurationParser$ConfigurationHandler.st
artElement(ConfigurationParser.java:183)
atweblogic.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1340)
atweblogic.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVa
lidator.java:1183)
atweblogic.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentS
canner.java:1876)
atweblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispat
ch(XMLDocumentScanner.java:1252)
atweblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentSca
nner.java:381)
at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:967)
atweblogic.management.internal.xml.ConfigurationParser.parse(ConfigurationPars
er.java:105)
atweblogic.management.internal.xml.XmlFileRepository.loadDomain(XmlFileReposit
ory.java:261)
atweblogic.management.internal.xml.XmlFileRepository.loadDomain(XmlFileReposit
ory.java:223)
at java.lang.reflect.Method.invoke(Native Method)
atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:636)
atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
21)
atweblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:359)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy1.loadDomain(Unknown Source)
atweblogic.management.AdminServer.configureFromRepository(AdminServer.java:188
at weblogic.management.AdminServer.configure(AdminServer.java:173)
at weblogic.management.Admin.initialize(Admin.java:239)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:362)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
at weblogic.Server.main(Server.java:35)
Reason: Fatal initialization exception -
I'm trying to use one of the canned AS3 preloaders, in CP5. The preloader displays, and is centered; But it runs from beginning to end, and then repeats over and over until the project is fully loaded- rather than displaying the percent loaded...
I did edit the htm file to remove the javascript, here is the html in case that's the source of the problem. (I didn't write this, please don't critique the html beyond explaining why the preloader isn't working...)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
</head>
<body bgcolor="#f5f4f1">
<center>
<div id="CaptivateContent">
</div>
<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="790" height="585">
<param name="movie" value="demo_Core_Publish_Documents.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="7.0.70.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="demo_Core_Publish_Documents.swf" width="790" height="585">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="7.0.70.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</center>
</body>
</html>I'm having the same problem - see my last posts in the thread. The only difference is - all AS3 preloaders don't show up in my case, but with old AS2 preloaders from Cp4, I am getting exactly the same pattern: the animation runs in a loop until the whole clip is loaded. You can try Cp4 AS2 preloaders to see if it makes any difference.
I don't think jscript may affect that issue. The preloader should load correctly, even if you run swf file directly without html shell.
Are you using TOC? -
Hi,
Is there a surestarter preloader in AS3 with CS4? Meaning here, showing a progress bar or percentage value before loading the main swf, right away at the start of the loading.
I tried 3 different versions:
1- I used the code from a video (and accompanying files), and simply changed the content.swf to my own swf file (rename my swf content.swf), so that the original code would load my swf instead of the original content.swf. (original content.swf was too small to see anything before loading, because my loading speed is too fast).
Here is the code from the original preloader (loads a small swf which then loads the main swf file):
var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop);
l.contentLoaderInfo.addEventListener(Event.COMPLETE, done);
l.load(new URLRequest("content.swf"));
function loop(e:ProgressEvent):void
var perc:Number = e.bytesLoaded / e.bytesTotal;
percent.text = Math.ceil(perc*100).toString();
function done(e:Event):void
removeChildAt(0);
percent = null;
addChild(l);
and here is the link to the file:
http://www.raidcanada.com/preloader-org-test.html
2- used the code suggested, which does the preloading directly in the main swf file:
stop();
//Import the required assets
import flash.display.*;
//Stop the playhead while loading occurs
this.stop();
//Create a listener to call the loading function as the movie loads
this.loaderInfo.addEventListener (ProgressEvent.PROGRESS, PL_LOADING);
/*This is the main function, basically it grabs the total and loaded bytes,
calculates a percentage, and displays it by stretching the bar and adjusting
the textfield display. If your bar/textbox instancenames are NOT lbar/lpc,
you'll need to adjust this code to match your instance names*/
function PL_LOADING(event:ProgressEvent):void {
var pcent:Number=event.bytesLoaded/event.bytesTotal*100;
//Stretch the bar
lbar.scaleX=pcent/100;
//Display the % loaded in textfield
lpc.text=int(pcent)+"%";
//If the movie is fully loaded, kick to the next frame on the main timeline
//You may wish to change the gotoAndStop(2) to a gotoAndPlay(2)
if(pcent==100){
this.gotoAndPlay(2);
This one doesn't work either, and if you refresh the page, you get only the bar, instead of refreshing the main swf.
http://www.raidcanada.com/test/test-2.html
3- use the code suggested to replace the preceding version:
stop();
addEventListener(Event.ENTER_FRAME,checkLoad);
function checkLoad(e:Event):void {
var pcent:Number=this.loaderInfo.bytesLoaded /this.loaderInfo.bytesTotal*100;
lbar.scaleX=pcent/100;
lpc.text=int(pcent)+"%";
if (pcent==100) {
removeEventListener(Event.ENTER_FRAME,checkLoad);
this.gotoAndPlay(2);
This one loads correctly (without the percentage or progress bar) and the refresh is OK.
http://www.raidcanada.com/test/test-1.html
The idea is to have this page load correctly showing a percentage sign and a progress bar until the loading is complete for this page:
http://www.raidcanada.com/entete-multi-hiver-1-test.html
Every time I test the swf directly in Flash CS4 with the simulated download, I get the progress bar and percentage correctly.
I also tried with Firefox and get the same results.
FLAs are at:
http://www.raidcanada.com/test/test-1.fla
http://www.raidcanada.com/test/test-2.fla
and screenshots of FLASH (showing the progress bar in "test movie" with simulated download):
http://www.raidcanada.com/test/screenshot-test-1.jpg
http://www.raidcanada.com/test/screenshot-test-2.jpg
Am I missing something?
THank you in advanceHi,
I am using Internet Explorer 8, version 8.0.7600.16385 with Windows 7 Ultimate or Firefox 3 version 3.5.9
If I flush the cache and load the page:
http://www.raidcanada.com/entete-multi-hiver-1-test.html
It takes about 5 seconds with a blank screen before I get the main swf displayed.
If I load the page: http://www.raidcanada.com/test/test-1.html
It takes about 1 second with a blank screen before I get the main swf displayed. The main swf file is much smaller.
I also did a lot of tests, and still the same problem. Temporarely, on the production site, I ended up installing a static Image saying "Loading", without the code, which then loads the large swf. But some customers are seeing the "Loading" for 14 sec to 24 seconds, depending of the swf file.
I know the code suggested is probably working with CS3 and AS2, but I need to make it work with CS4 and AS3, because my other code is all in AS3, built with CS4. As I said before, if I make a simulation, the simulation is perfect.
Thanks -
Flash CS5 AS3 Preloader Issues
Hi.
I'm a complete novice with Flash and at risk at looking like 'Dumbest Poster of the Year', I'm requesting help/advic over a couple of issues.
My first concern is with a very simple preloader I've made for a movie. Here is the code (posted in first frame of movie; nothing else is in the frame except for the preloader itself):
import flash.events.Event;
stop();
addEventListener(Event.ENTER_FRAME, loaderF);
function loaderF(e:Event):void{
var toLoad:Number = loaderInfo.bytesTotal;
var loaded:Number = loaderInfo.bytesLoaded;
var total:Number = loaded/toLoad;
if(loaded == toLoad) {
removeEventListener(Event.ENTER_FRAME, loaderF);
gotoAndPlay(2);
} else {
PreLoader.PreLoaderFill.scaleX = total;
PreLoader.PercentLoaded.text = Math.floor(total*100) + "%";
When I simulate a download, the preloader works fine in all the settings except for 'T1'. On this setting, the movie loads to about 20% then the preloader stops, the movie begins and I receive the following error message in the output panel:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at FlashFront1_fla::MainTimeline/loaderF() .
The movie itself plays fine on all settings, including 'T1'. Debug doesn't report any issues on preloader or movie.
Can anybody give me any idea what the source of the issue is? Should I even be concerned about it givne that the movie plays without a problem?
My second question relates to the 'Simulate Download' pre-settings in Flash. I know their are people out there still on 56K dial-up, or with 'broadband' running at 500 KBS (in the UK at least), but nevertheless, the download simulation settings seem like they are all geared to internet as it was in 1997 and are hardly reflective of the capacity of modern connections. Why is this?
My movie is not large (about 320KB). Should I even be bothering with a preloader or am I wasting my time for a small minority audience (much like the web designers who still produce sites for the 12 people in the world still browsing in 800 x 600 res)?
Thanks for any help/advice.Flash movies stream down and finish "loading" when the first frame and content that loads on the first frame is available, though frame 1001 might not be downloaded yet. You would think you'd be kinda safe with frame 2 on a T1, but I think the issue is things aren't updating in the right order rather than things not really being downloaded. Heck, it could even just be the T1 simulation that's causing problems.
Debug Movie probably isn't showing issues because it slows the timing enough to make everything ok. You could try trace statements too to see how far the code gets.
Also, you might try a full scale AS3 loader like this one http://www.republicofcode.com/tutorials/flash/as3loader/
I've found the Event.COMPLETE listener for the loader like this:
my_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, finishLoading);
to be pretty accurate so far in regards to content truly being loaded where as previous methods gave false positives for loading. -
I am noticing a Bunch of Preloader Problems With Captivate 5
That are not being answered on the Adobe forums and they all seem to be some what related. I am have major preloader issues and wish this would be resolved.
http://forums.adobe.com/message/3595269
http://forums.adobe.com/message/3209686
http://forums.adobe.com/thread/471103
There are more. Some go back to Captivate 4 and most seem to be related to Action Script three. I am having all of the problems in the above three forums and have yet to find a answer.
I am using Captivate 5 and Connect Pro 8 on premise.
It is critical that I get my preloaders to function properly because my clients think that something is wrong when they have to wait more than a few seconds with out see some sign of progress. Thanks.Here are some more that are not answered.
http://forums.adobe.com/message/2954752
http://forums.adobe.com/thread/467275
http://forums.adobe.com/message/3139989 -
JavaFX - Image preloading problem
Hi,
I try to use ImageView and face some problems with image preloading.
Here is the code related to the component that has problems. The component extends CustomNode.
in class attributes declaration:
var imgNodes: ImageView[];
// list of url of images to display
public-init var imgs: String[];
in create function:
for(indice in [0..batch]){
var view= ImageView{
fitWidth:100
fitHeight:100
translateX: (110 * indice)
preserveRatio: true
cursor: Cursor.HAND
insert view into imgNodes;
on an image loading function:
for(indice in [0..batch]){
imgNodes[indice].image = Image{
width: 100
height: 100
url: imgs[firstItem+indice]
preserveRatio: true
backgroundLoading: true
with backgroundLoading set to true, the images are not displayed. When setting it to false, the images appear. So the urls passed to Image are ok.
If I display the fields error and progress of the Image components, both have the value 0.
I have other components that use preloading and they are working great before showing the problematic component. After, preloading does not work anymore.
It looks like as if the thread used to preload images is blocked.
Can anyone help me with it?
Thanks in advance for your help
ThomasI'm not shure but i think the only group component wich is updated after insert or delete is a Group, so there is the same problem with V/HBox.
Then this code work for me
package forumsamples;
import javafx.ext.swing.SwingButton;
import javafx.lang.FX;
import javafx.scene.Cursor;
import javafx.scene.Group;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.VBox;
import javafx.scene.Scene;
import javafx.stage.Stage;
* @author Alex
var imgNodes: Group;
// list of url of images to display
var imgs: String[] =
for (n in [1..3]) "file:///E:/dev/images/FA/OUI/{n}.bmp";
//in create function:
//on an image loading function:
function load() {
for(indice in [0..3]){
insert ImageView {
fitWidth:100
fitHeight:100
translateX: (110 * indice)
preserveRatio: true
cursor: Cursor.HAND
image: Image{
width: 100
height: 100
url: imgs[indice]
preserveRatio: true
backgroundLoading: true
} into imgNodes.content;
Stage {
title : ""
scene: Scene {
width: 200
height: 200
content: [
VBox {
content: [
SwingButton {
text: "Button"
action: function() {
load();
imgNodes = Group { }
} -
Hi there,
Hope someone can assist!
I am publishing my Captivate 4 project with AS3 settings, as I have created a few animations in AS 3 that are inserted. Now I am publishing it and putting it on our scorm compliant LMS, it is not communicating with the LMS.
I have also published a file in AS2, which worked just fine in communicating with the LMS. Just took a course with one slide published it with AS2, then tried the same content exactly same settings only selecting AS3 and it didn't work.
One of the differences is that with AS3 settings it also wants to open a new empty window, which it doesn't do with the AS2 setting.
I have done some checking with the firebug in Firefox and it looks like it loads just fine, but when it starts playing it misses the communication with the LMS.
I was wondering if there are any solutions out there...
Thanks a lot!
AnnemarieNo such thing as a stupid question....
Yes I did check those settings... and that seems to be causing the problem.
I just took an empty, new presentation (just for the process of elimination, no other values/factors involved) set the captivate settings to AS2 published tried it on the LMS, worked fine.
Then same empty slide, set the captivate settings to AS3, all other settings remained exactly the same, tried it on the LMS, it plays fine, but there is no communication to the LMS.
It loads all the swf files correctly, then with AS2 published file, it starts the "soaplms.php?op=initialize" and you can see in firebug (net) that the "scorm_support.swf?invokemethod etc" communicates with the LMS every few seconds, so it is reporting my progress and all that I do in the course.
With the AS3 settings, it never does the "soaplms.php?op=initialize", and actually at that moment it should display this message, it opens a new emtpy window. The course continues to play and all the buttons work, but it doesn't communicate to the LMS what my progress is or what I have done in the course.
There is a document that talks about the scorm compliance of Captivate and it mentioned that you might need to check that the API can be found, so I did that edited the html file, added the alert, and the API can be found when launching the AS3 published file.
I have also tried it on the scorm tracker site from rustici, which is a great resource by the way: http://www.scorm.com/scorm-solved/testtrack/
You can upload your zip files and see the debug reports so you know exactly what happens in terms of communication to the LMS.
ActusxReus wrote:
stupid question, but did you double check that you selected Actionscript 3 in your Captivate preferences?
ActusXreus, have you succesfully used AS3 settings in a course and published it and used it on an LMS where it did track the results? Or if there is anyone else out there that did use these settings successfully, I would really like to know and maybe see what type of settings you have used in the other areas...
Thank you so much!
Best regards from the Bahamas
Annemarie -
Ok, I have a simple ComboBox with instance name of dragonCombo
A Lable with an instance name of dragonLabel
Using a an AS3 called Dragon.as
When the ComboBox is clicked, a picture should pull up. The problem is, there are no errors, but The ComboBox is not listing any of the Labels I loaded. This is my AS3 code, maybe someone can see the mistake I have made somewhere.
package
import flash.display.MovieClip;
import flash.display.Loader;
import fl.controls.ComboBox;
import fl.data.DataProvider;
import flash.events.Event;
import flash.text.TextFieldAutoSize;
import flash.net.URLRequest;
import flash.net.navigateToURL;
import fl.controls.Label;
public class Dragons extends MovieClip{
public var dragonCombo:ComboBox;
public var dragonLabel:Label;
var comboDP:DataProvider;
var dragonLoader:Loader;
public function Dragons() {
setupComboDP();
setupdDragonCombo();
setupLabels();
private function setupComboDP():void{
comboDP = new DataProvider();
comboDP.addItem({ Label:"Fire"});
comboDP.addItem({ Label:"IceNFire"});
comboDP.addItem({ Label:"Ghost"});
private function setupDragonCombo():void{
dragonCombo.width = 150;
dragonCombo.prompt = "Choose a Dragon";
dragonCombo.dataProvider = comboDP;
dragonLoader = new Loader();
dragonLoader.x = 200.00;
dragonLoader.y = 60.00;
addChild(dragonLoader);
dragonCombo.addEventListener(Event.CHANGE,loadData);
public function setupLabels():void{
dragonLabel.text="";
dragonLabel.autoSize = dragonLabel.autoSize = TextFieldAutoSize.LEFT;
public function loadData(e:Event):void{
dragonLoader.load(new URLRequest("dragons3/"+e.target.selectedItem.Label.toLowerCase()+".png"));Your Dragons class is creating its own dragonCombo (it is not the one on the stage)...
public var dragonCombo:ComboBox;
that has no association with the combobox you placed on the stage manually as far as I can see.
Assuming this is not your document class, if all you are doing is importing the Dragons class, then you are not implementing it at all. You would have to have a line...
var dragons:Dragons = new Dragons();
in you fla in order to instantiate the class. At that point you might start seeing error messages because in doing that your class is trying to target an object that doesn't exist because it only declared the combobox, it did not create an instance of it, as in...
dragonCombo = new ComboBox(); -
Hi,
Just playing with some AS3; and encountered the following
problem (CODE IS ATTACHED):
Wanted to create a MC button I seen done on the
gotoandlearn.com site, but wanted to change it from AS2 to AS3;
Everything works fine, but where I am assigning a value to a
dynamic text field it not working.
b1_mc.buttText_mc.buttonText_txt.text = "Lynda.com";
When I test movie, lynda.com is the text on my MC button, but
Upon ROLL_OVER etc... it displays the test text, not
Lynda.com.
Can someone please help me out here. It would be appreciated.
Kind Regards,
Boxing BoomHi,
Yes. Well spotted. I had the instance name of buttText_mc,
missing the _mc part on a few frames with motion tweens applied, on
the button animation. I do not remember renaming it differently ;)
- must blame tools ;)
Kind Regards,
Boxing Boom -
Dear,
i have a problem in my preloader, i have 2 scenes, first one
the preloader and the another is the content of the site ( 10
frames )
the preloader start showing the loader in 56% not from 0% so
the user have to wait from 0% to 56% with blank stage.
even though, if i used the same preload but in only 1 frame
in the content scene its will work great.
i don't load anything from external movies, all my content in
one scene...
Thanks a lot...
my code:Oh. You have so many things wrong with this project.
First unless you are publishing to Flash 5 you shouldn't be
using onClipEvents(). That was a style of coding that went out in
2001 when Flash 6 was introduced and has a lot of drawbacks and no
advantages. (Well unless you need to publish to Flash 5!) Here is a
really good blog on the issue:
http://www.quip.net/blog/2006/flash/museum-pieces-on-and-onclipevent
Okay the next issue is that you really shouldn't use scenes.
They were a great tool to help timeline animators organize their
content. But when you start to use code it starts to breakdown.
There are several tricky little problems that crop up when you
start using code that moves the playhead and scenes. So it is
better to not put them on scenes. Instead just put your first
"scene" on frame one. And then maybe move over to frame 100 and
start your second "scene." When you publish your swf all the scenes
are strung together in one long timeline and the "scenes" are gone
per se.
Next issue is the one you actually are asking about. All the
content in frame 1 (the actual frame one after all the scenes are
strung together) must be loaded before any code on that screen can
start to execute.
So if you have any components, even if they are only in the
library and you aren't using them, will put a lot of content into
frame 1. If you have a bunch of library assets set to export for
actionscript those usually are in frame one as well.
Otherwise, you can go to the publish settings and switch to
the flash tab. There is a check box for generate a size report.
When you publish you will also get a text file that shows you how
much content is in your file and where it is. -
Preloader problem - feel like an idiot
I feel like a total idiot. I can't seem to get my
preloader to work. Here's my code. What am I doing wrong? The
problem is that myApp.swf loads successfully but the .onEnterFrame
function thinks that loader_mc is 1 frame and 0 bytes long.Again, I much appreciate your help. I had put some trace
statements in trying to find out what getBytesLoaded/Total were and
they were coming back with values I didn't understand, so I kept
thinking it was trying to get the values of the empty_mc I had
instantiated instead of the thing I was trying to load and I kept
scratching my head as to why and tried a lot of different things
and was baffled. At any rate, in the end I think it's a timing
issue if I understand correctly. In other words, I think the
function started executing before it could really grab the correct
information about the .swf that I was trying to load. Is that
right?
Oh well, I'm out of the ditch with that silly problem now and
moving on to my next set of challenges. :-)
Again, thank you so VERY much for being a willing helping
hand to us newbies out here. -
Microsoft SQL 2005 preload problem
Hi Guys,
First post! I took receipt of my W520 a few weeks ago. It is great, very pleased with it on the whole.
There is one problem, however. I play a fair amount of recreational card games over the internet. This requires a program which converts the text file “hand histories” into postgreSQL server data to make it quickly readable and provide tracking for win/loss among a whole host of other statistical things.
Unfortunately after going through their troubleshooting numerous times, going through factory restore and repeating the process, I still cannot get my SQL server to automatically start. Believe me, I have tried everything. Running them all as admin, editing the startup in the windows “services” dialog etc etc. The server does start manually and the program works fine, but every time I start it I have to do it manually and it is irritating. It should just start up in the background but it doesn’t.
I believe it is the Microsoft SQL 2005 express that is somehow blocking the auto start. Basically, I want my Lenovo as it is, just without the preloaded SQL server. Using the factory restore just reloads it back on and when I manually uninstall the SQL server I still have the same problem. I believe it leaves a lot of little nuggets behind when you uninstall it through the standard W7 “uninstall a program” and the full uninstall looks a long and difficult process, with no guarantee of really removing everything.
So, the plan is to install a bare copy of W7 using a borrowed disk, install my own personal SQL program and test to see if that works. I am almost certain it will. From there, I plan to build back my programs on top so I essentially have my PC now, bar the bundled SQL 2005 express or whatever it is. Following this I will make a system image and store it away safely to avoid all this mess and only reinstall using the factory disks if absolutely necessary.
I have my W7 OEM serial, found using a serial grabber. Obviously I didn’t pay all this money to scrap all the useful thinkvantage tools like “airbag” and basic fingerprint/camera drivers etc. I also like the realtime warranty countdown timer. How should I go about this task? Is all I need is the PC serial underneath to reload thinkvantage at a later date with full functionality? Is there anything I should consider before starting?
If there is a better subforum to post this question in, please let me know.
Many thanks,
NickWhat is service dependency?
Yes I tried to make a batch file. Not in startup folder, but one on the desktop that had the right path. This returned an error from the statistical program and not the SQL server. It initially looked hopeful as I had it start up the "start server" option for the right SQL server. This opened up the dos window and said it had correctly started. However, when the stats program launched it hung up on loadscreen and returned an error message. Not sure why this was, but it didn't seem to like being loaded through a .bat.
This seems like a work around more than a solution anyway. I just want to get it to work properly.
Here is the thread in the database analaysis program forum for your reference.
http://forums.holdemmanager.com/general-support/197501-hem-crashing.html
Thanks,
Nick
Maybe you are looking for
-
Reader 8.1.2 - 8.1.3 & Acrobat 7.x
We are updating 8000 workstations from Reader 8.1.2 to 8.1.3 (Security reasons) using the Adobe Customization wizard. Choosing "Default viewer for PDF files" and "Make Acrobat the default viewer if both Acrobat and Reader are installed". When we adve
-
How to change formula which is defined in COPA reporting
Hi Experts, How to change the formula which is defined in for COPA reports (KE30), like contribution margin (sales revenue-admin cost) Can any please give some inputs Thanks and Regards Ram
-
CLICKING HOME TAKES ME DIRECT TO MY INBOX---UNWANTED
VERIZON IS USED AS 'HOME PAGE'. USUALLY ANY USER HAS TO ENTER THIER DISCREET ID AND PASSWORD TO RETRIEVE THIER PERSONAL MAIL. SUDDENLY----WITHOUT 'KNOWINGLY' CHANGING ANY SETTINGS, CLICKING 'HOME' (VERIZON) TAKES ME----OR ANY USER DIRECTLY TO MY INBO
-
Cannot open score project settings...
Hi all! I have this wierd issue on my laptop. I've stripped some songfiles made on a MacPro, down so they only contain the score. No audio instruments, just some of the plugs are still there. When I open the files the page setup looks different. Even
-
when converting a integer to binary using Integer.toBinaryString, the leading zeros are removed. Is there a way to keep the leading zeros in the conversion? any help would be appreciated! thanks