._visible problem
Hello,
I have a small problem with my
website.
If you click on the VanAsep logo, you go to a rotating menu
page. If you click on the Home button on this page, my sound
on/sound off buttons or text disappear, and they don't reappear. I
can't figure out why they don't. If anyone would look at my
fla
file, I'd greatly appreciate it.
Cheers in advance,
P
I have just solved the problem.
But the site you are looking at is not the fixed version.
When I hit the logo, and home a couple of times in a row, I have my
sound buttons disappearing at random.
Anyhow, it's fixed now, and the posted site is here:
www.vanasep.ca
Thanks for looking. I would have posted earlier, but as I
said, I have just fixed the problem a couple of minutes ago.
P
Similar Messages
-
Problem with Duplicate Movie Clip which is tracked in an Array
I have a problem with my inventory code using Shared Objects.
What i did was to track the collected items in an array. Each time
the user collects an item, the original iconMC is duplicated and
loads a picture of the item (function loadImage). However, my
problem is that this retains the original array so even if I
already added new items into the inventory, the newest item doesn't
show. original array length = 2, new array length = 3; the last
item doesn't show. If I reload my flash, its the only time that
this shows. Now if I get an item and lessen the inventory, it still
retains the original length and doubles (or triples, depending on
how many items i lessened) the last item.
var so:SharedObject = SharedObject.getLocal("lakbayUser",
var i:Number = so.data.currentUserIndex;
var ctr = 0;
var iconCtr;
var iconArray: Array; //temporary storage of items placed
inside icon
function selectIcon(num){
eval("iconMC"+num)._alpha = 0;
so.data.users
[15][0] = true;
so.data.users[15][1] = iconArray
//loads the next icon
function setNextIconMC(itemCtr, iconCtr){
if(iconCtr > 0) {
newName = "iconMC" + iconCtr;
newPos = 130 * iconCtr;
_root.itemaHolderMC.iconHolderMC.iconMC0.duplicateMovieClip(newName,iconCtr+1);//does
not duplcate if unloadMovie is called
this[newName]._x = newPos;
this["iconMC"+iconCtr].enabled = true;
this["iconMC"+iconCtr]._alpha = 100;
loadMovie("gamit/icon"+itemCtr+".jpg",_root.itemaHolderMC.iconHolderMC[newName]);
trace(_root.itemaHolderMC.iconHolderMC[newName]);
else {
iconMC0.enabled = true;
iconMC0._alpha = 100;
loadMovie("gamit/icon"+itemCtr+".jpg",_root.itemaHolderMC.iconHolderMC.iconMC0);
//loads all the icons into the container
function loadImage(){
iconCtr=0;
iconArray = new Array();
for(itemCtr = 0; itemCtr < so.data.users
[14].length; itemCtr++){
if(so.data.users[14][itemCtr] == true){
iconArray[iconCtr] = itemCtr;
setNextIconMC(itemCtr,iconCtr);
iconCtr++;
if(iconCtr==0){
iconMC0._visible = false;
else iconMC0._visible = true;
loadImage();
so.flush();
stop();hey there yenniie - each time you update the array you must
also call 'flush' to update the SharedObject. also please use the
'attach code' button to post code, as you can see what happened in
your post with the ' i ' value. So assuming I'm interpreting the
the missing characters correctly the method should be: -
Problem loading window component more than once
I have a swf with a button that opens a window component
(from my library). it loads fine and also closes fine when I click
the close button in the window. but when I try to open the window
again, it actually loads again, but it stalls and locks up
immediatley. can anybody tell me what is wrong with my code? I also
was going to have different buttons to open different windows (each
swf playing a song and has written lyrics). it does the same thing
when i load the first window, close it, then try to open a second
window. it stalls and locks up.
please, I really need some help!Ok it sort of works... here is my code:
on (release) {
trace("button works");
win.title = "Yellow Birthday Package";
win.closeButton = true;
win.contentPath = "yellowPack";
win.setSize(550,500);
var listener:Object = new Object();
listener.click = function(){
win._visible = false;
win.addEventListener("click",listener);
It order to make it work, the window component has to be on the stage but i want it to popup only when the user clicks on the button. So the window should be hidden/invisible when the page first loads. I tried changing win._visible = true; but that did nothing.
The other problem is that the movie clip inside the window, isnt aligning center. i can only see a corner of the movie clip. in the top left. I havent tested the whole thing live though! -
SendAndLoad fails in mac .app version - possible security setting problem?
Hi all,
I'm having trouble with sendAndLoad working on the .app version of a flash application I made. So far it's only happening on one computer, so it appears to be some sort of security setting. Here's what's going on:
I've built a flash application (Flash 9, AS2) that has three versions: an online version, a standalone .exe version for PC, and a standalone .app version for mac. The user must log in to use the application. Online, this is handled by the portal hosting the flash. In the standalone versions, the user must login through the flash application. Through sendAndLoad, it accesses the same database of user info as the online version. The user just enters username/password, clicks "Submit," and if it finds the combination in the database, it lets the user in. If not, it gives them a message saying they entered the wrong username/password.
This has tested fine across macs and pcs, but sadly one macbook can't use the .app version. It launches, they put in valid username/password, hit submit and it freezes. All I can tell is that it gets the httpStatus number 0. As you can see below, I've got it set up to spit out an error message if it fails to load (login_lv.onLoad = function(success)), but it doesn't even do that.
I've put a crossdomain.xml file at the root level of the domain that's set to allow access from any domain.
This computer can log in successfully to the online version of the course, but the .app version seems to be hampered by some sort of security setting. The problem computer's settings match the settings of a mac I've tested successfully. It has up-to-date Flash 10 and is running Leopard. Here are security settings:
System Preferences>Security
General
Everything is unchecked
FileVault
Turned off
Firewall
"Allow all incoming connections" is selected
I'd appreciate any ideas anyone has. I'm far from wise about the ins-and-outs of mac security, so I may be missing something. I'm happy to clarify anything.
Code is below. It loads login_lv first, then bookmark_lv. It never gets far enough to load bookmark_lv. The severAppUrl is set to a placeholder for confidentiality's sake. The path is defintely right. It works on other computers.
Thanks!
Mike
// create a LoadVars instance
var login_lv:LoadVars = new LoadVars();
// add the login variables to pass to the server
login_lv.userid = "";
login_lv.pwd = "";
login_lv.modname = "a";
// setup login urls
var serverAppUrl = "http://myurlhere"; //this is just a placeholder. good ol' confidentiality agreements...
var loginUrl = serverAppUrl+"login.asp";
// setup bookmark urls
var bookmarkUrl = serverAppUrl+"menu.asp";
var bookmark_lv:LoadVars = new LoadVars();
// add the bookmark variables to pass to the server
bookmark_lv.studentid = "";
bookmark_lv.isAdmin = "";
bookmark_lv.modname = "A";
_global.modnameTemp = bookmark_lv.modname;
// setup login function
function doLogin() {
login_lv.userid = login_mc.user_txt.value;
login_lv.pwd = login_mc.pwd_txt.value;
login_lv.sendAndLoad(loginUrl,login_lv,"GET");
// send the login info
login_mc.continueBtn_mc.onRelease = function() {
this.enabled = false;
doLogin();
// variables will appear in the login_lv object
login_lv.onLoad = function(success) {
if (success) {
if (this.studentid == undefined) {
login_mc._x = 0;
trace("not logged in");
debug_mc.body_txt.text+="\nnot logged in";
if(this.reas == "Please Complete Overview and first 3 Module(s) with at least 70 score."){
login_mc.loginBad_mc.gotoAndStop("r2");
login_mc.loginBad_mc._visible = true;
} else if(this.reas == "Please Complete Overview Module first."){
login_mc.loginBad_mc.gotoAndStop("r3");
login_mc.loginBad_mc._visible = true;
} else {
login_mc.loginBad_mc._visible = true;
} else {
login_mc._x = 800;
trace("now logged in");
debug_mc.body_txt.text+="\nnow logged in";
trace("studentid: "+this.studentid);
trace("isAdmin: "+this.isAdmin);
//track variables for later use
_global.studentidTemp = this.studentid;
_global.isAdminTemp = this.isAdmin;
bookmark_lv.studentid = ""+this.studentid+"";
bookmark_lv.isAdmin = ""+this.isAdmin+"";
bookmark_lv.sendAndLoad(bookmarkUrl,bookmark_lv,"GET");
}else{
debug_mc.body_txt+="\nlogin load error"
login_lv.onHTTPStatus = function(httpStatus:Number) {
this.httpStatus = httpStatus;
if(httpStatus < 100) {
this.httpStatusType = "flashError";
else if(httpStatus < 200) {
this.httpStatusType = "informational";
else if(httpStatus < 300) {
this.httpStatusType = "successful";
else if(httpStatus < 400) {
this.httpStatusType = "redirection";
else if(httpStatus < 500) {
this.httpStatusType = "clientError";
else if(httpStatus < 600) {
this.httpStatusType = "serverError";
debug_mc.body_txt.text+="\n login_lv HTTPStatus number="+httpStatus+" HTTPStatus type="+this.httpStatusType;
//prepare bookmarkXML to receive returned info from bookmark_lv function
var bookmarkXML = new XML();
bookmarkXML.ignoreWhite = true;
bookmarkXML.onLoad = bookmark_lv;
// variables will appear in the bookmark_lv object
bookmark_lv.onLoad = function(success) {
if (success) {
trace("bookmarked");
debug_mc.body_txt.text+="\nbookmarked";
trace("bookmarkXML: "+bookmarkXML);
var bookmarkNode = mx.xpath.XPathAPI.selectNodeList(this.firstChild, "/bookmark");
trace("bookmarkNode: "+bookmarkNode);
var bookmarker:String = unescape(eval("bookmark_lv"));
trace("bookmarker: "+bookmarker);
bookmarker = bookmarker.split("<xml>").join("");
bookmarker = bookmarker.split("<bookmark").join("");
bookmarker = bookmarker.split("/bookmark>").join("");
bookmarker = bookmarker.split("</xml>").join("");
var startIndex:Number;
var endIndex:Number;
startIndex = bookmarker.indexOf(">");
trace(startIndex);
endIndex = bookmarker.indexOf("<");
trace(endIndex);
var bookFinally:String;
bookFinally = bookmarker.substr(startIndex+1, endIndex-2);
bookFinally = bookFinally.split("<").join("");
setBookmarkStr = ""+bookFinally+"";
trace("string: "+setBookmarkStr);
_global.newBookmark = bookFinally;
play();
}else{
debug_mc.body_txt+="\nbookmark load error"
bookmark_lv.onHTTPStatus = function(httpStatus:Number) {
this.httpStatus = httpStatus;
if(httpStatus < 100) {
this.httpStatusType = "flashError";
else if(httpStatus < 200) {
this.httpStatusType = "informational";
else if(httpStatus < 300) {
this.httpStatusType = "successful";
else if(httpStatus < 400) {
this.httpStatusType = "redirection";
else if(httpStatus < 500) {
this.httpStatusType = "clientError";
else if(httpStatus < 600) {
this.httpStatusType = "serverError";
debug_mc.body_txt.text+="\n bookmark_lv HTTPStatus number="+httpStatus+" HTTPStatus type="+this.httpStatusType;try using different loadvars instances for your send loadvars and for your receive loadvars.
-
Problems in Frame 1 with External HTML files
I am having an issue with loading two external html files within
my website.
I have a case study page with a
dynamic textbox and a scrollbar attached to it.
I have another page "news" that
contains another dynamic textbox with a scrollbar attached to
it.
I created two .txt files with my
information for both pages.
Working in Flash CS3 with
Actionscript 2.0 at 30fps.
My problem is this:
I can go to my news page and the .txt file will be visible,
but once I go to the other case study page and reveal that .txt
file, I go back to the news page and the .txt file is no longer
visible. Only a nonworking scrollbar is displayed with no text and
nothing else.
I believe I need to do something different in Frame 1's
Actioncode. I just don't know how to get the other .txt file to
work along with the other. I will be adding more .txt files in
dynamic textboxes later and I really need to resolve this issue so
I am able to add them with no problems. Appreciate anyone's help
immediately if you can.
Here is the temporary website link so you can test and see my
problem. Don't forget to go the the news button first in the
navbar. Then go to the case studies link and find the MAX Cat
Packaging and view that .txt file, then go back and you will see my
problem.
Click Here to
Visit Sitewell I made a separate layer and placed the symbol with the
text box and scrollbar attached. That was the only thing on the
layer as you mentioned to separate it. I don't see how I could
separate the scrollbar from it as it is needed. So I made some
keframes, selected the textbox inside the symbol and added the code
you told me to add:
caseStudyMC._visible=false; In the other frames where I
needed it visible I added the code:
caseStudyMC._visible=true;
When I tested the movie. I didn't see the text but I saw the
scroll bar still and the text still failled to appear after viewing
the MC Case study text.
Is the code supposed to go in Frame1? What do I do with the
scroll bar image? I tried to Make it all disappear using the alpha
at 0, but it still didn't work.
thanks for all your help. hope you understand what I
wrote. -
[F8] Problem with scrip when targeting player 8
When I target the flash 8 player my scripts wont work and I
cant figure out why. Here is what I have (forgive me if my
explanations arent up to snuff)
On my tracker button
Code:
on (rollOver) {
startDrag("/tracker", true);
On my first frame
Code:
mover = getProperty("scrollingobject", _x);
On my second frame
Code:
mouseh = getProperty("/tracker", _x);
mousev = getProperty("/tracker", _y);
if (Number(mousev)>325 and Number(mousev)<348) {
movevalue =
(Number(movevalue*5)+Number(((mouseh-320)/-12)))/10;
setProperty("/alert", _visible, true);
} else {
movevalue = 0;
setProperty("/alert", _visible, false);
On my third frame
Code:
mover = Number(mover)+Number(movevalue);
if (Number(mover)>1250) {
mover = 0;
if (Number(mover)<0) {
mover = 1250;
setProperty("/scrollingobject", _x, mover);
gotoAndPlay(59);
Basicaly the text scrolls right and left in conjuction with
the "tracker" button. I learned how to do this from one of the
flash kit files that I will try and locate.
But the problem with this is that it only works in the flash
6 player and I need to target the flash 8 player
Any responce would be great.
P.S. My fla can be found here
http://www.myapartmentbar.com/F8prob.fla
http://www.myapartmentbar.com/F8prob.fla">http://www.myapartmentbar.com/F8prob.flaLong shot, but...
Open Audio Midi Setup in Applications>Utilities, see the input & output options & KHz setting there, some things will change it for their own use, then not set it back.
Open Console in Applications>Utilities & see if there are any clues or repeating messages when this happens. -
AS2/CS4 Netstream problem...
I'm currently building a custom flv player and need some help. Maybe I'm missing something, I'm not sure. The main problem is that the FLV doesn't load/play, which most likely causes the secondary problems, such as the bufferClip always visible and no way to test the video and audio scrubbers.
----CODE----
var nc: NetConnection = new NetConnection();
nc.connect(null);
var ns: NetStream = new NetStream(nc);
ns.setBufferTime(5);
ns.onStatus = function(info){
if(info.code == "NetStream.Buffer.Full"){
bufferClip._visible=false;
if(info.code == "NetStream.Buffer.Empty"){
bufferClip._visible=true;
if(info.code == "NetStream.Play.Stop"){
gotoAndStop("end");
//video location
videoPlace.attachVideo(ns);
ns.play("URL of FLV");
//audio control
_root.createEmptyMovieClip("vSound",_root.getNextHighestDepth())
vSound.attachAudio(ns);
var so:Sound = new Sound(vSound);
audioControl.audioScrub.onEnterFrame=function(){
so.setVolume(100-this._y);
audioControl.audioScrub.onPress=function(){
this.startDrag(false,this._x,0,this._y,100);
audioControl.audioScrub.onRelease = audioControl.audioScrub.onReleaseOutside = function(){
this.stopDrag();
//restart button
controlBar.restartBtn.onRelease = function(){
ns.seek(0);
//Play and Pause button
controlBar.playpause.onRelease = function(){
ns.pause();
//setup the video interval
var vidInt = setInterval(videoStatus, 100);
var amtLoad:Number;
var duration:Number;
ns["onMetaData"] = function(obj){
duration = obj.duration;
function videoStatus(){
amtLoad = ns.bytesLoaded/ns.bytesTotal;
loader_mc.loadBar._width = amtLoad * 560;
loader_mc.scrubber._x = ns.time/duration * 560;
//scrubber code
var scrubInt;
loader_mc.scrubber.onPress = function(){
clearInterval(vidInt);
scrubInt = setInterval(scrubIt,10);
this.startDrag(false,0,this._y,560,this._y);
loader_mc.scrubber.onRelease = loader_mc.scrubber.onReleaseOutside = function(){
clearInterval(vidInt);
vidInt = setInterval(videoStatus,100);
this.stopDrag();
function scrubIt(){
ns.seek(Math.floor((controlBar.loader_mc.scrubber._x/560) * duration));
----END CODE----
Thank you for your help in advance. If you need anymore info, just let me know.
~gray14Okay, I did that. The video loads and plays, which is good. Now a couple more problems come to light:
1) The video scrubber (_root.loader_mc.scrubber) drags where it should, but the video doesn't react as it should. The video should play at the time that corresponds with the position of the scrubber.
2) There is no sound, which I'm guessing has to do with that audioControl and audioScrub code I wrote.
Never mind that second one. I had the sound turned off on my PC ((stupid me, lol)). I have another question, purely for asthetic reasons:
How do I write the code so the playpause button changes from a play symbol to a pause symbol when paused and vice versa? -
Problem loading swf file in flash player 9.0.47.0
Hi all!
I have a really strange problem and couldn't find any information over the internet.
The problem only occurs in flash player 9.0.47.0. It works in all the others players, newer and older..
I try to load a swf file to my web application and get the following error: "This content requires Adobe Flash Player 10.2. Would you like to install it now?"
the log file shows:
*** Security Sandbox Violation ***
SecurityDomain 'http://10.1.1.84:8080/app/jsp/flex/bin-release/LP_FLEX_project.html' tried to access incompatible context 'http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?0.5087 71003223956'
Warning: Reference to undeclared variable, 'out'
Warning: Reference to undeclared variable, 'out'
Warning: 'out' has no property 'text'
Warning: Reference to undeclared variable, 'cameraSettings'
Warning: 'System' has no property '_visible'
Warning: Reference to undeclared variable, 'microphoneSettings'
Warning: 'System' has no property '_visible'
Warning: Reference to undeclared variable, 'privacy'
Warning: checkPort is not a function
Warning: Reference to undeclared variable, 'xOffset'
Warning: Reference to undeclared variable, 'yOffset'
Warning: Reference to undeclared variable, 'cameraSettings'
Warning: 'System' has no property '_visible'
Warning: Reference to undeclared variable, 'microphoneSettings'
Warning: 'System' has no property '_visible'
Warning: Reference to undeclared variable, 'privacy'
Warning: checkPort is not a function
Warning: Reference to undeclared variable, 'cameraSettings'
Warning: 'System' has no property '_visible'
Warning: Reference to undeclared variable, 'microphoneSettings'
Warning: 'System' has no property '_visible'
Warning: Reference to undeclared variable, 'privacy'
Does anybody has a solution??
Thanks alot!
AssafMaybe FP9 does not support your application / swf file? How did you develop it?
-
Actionscript bug problem loading in Firefox
Please Help.
I'm working on a page at
http://localhost/skitterskatter/gerilance/D4D/index4.html
The page works fine in Internet Explorer on a PC. In Firefox
and some mac browsers when you click on a thumbnail, the image does
not display (an image is supposed to expand out from the thumbnail
into the upper right of the screen). After a page refresh often the
thumbnail actions work.
It seems that the image has to load into the cache before it
can move. I can't figure out how to get this to work. Here is the
actionscript:
var finalWidth = 435; // width for furniture piece
var finalHeight = 295; // height for furniture piece
var initWidth = 10; // initial width and height for furniture
piece that explodes from thumbnail
var initHeight = 10;
var finalX = 570; // Destination X and Y positions for
furniture piece
var finalY = 50;
var stoploop = 0; // counter to determine when furniture
piece is in place
var numberOfCalls = 40; // the number of times a function is
called to reach the final position
var intervalID;
var initX = 0;
var initY = 0;
function startLoading(image, button) {
clearInterval(intervalID);
_root.infoField._visible = true;
myData = new LoadVars();
myData.onLoad = function() {
_root.descr.text = this.theText;
myData.load("./descr/"+image+".txt");
myData = new LoadVars();
myData.onLoad = function() {
_root.nameOfPiece.text = this.theText;
myData.load("./names/n_"+image+".txt");
_root.perice._width = 10;
_root.perice._height = 10;
var whichImage = "./pieces/"+image+".jpg";
loadMovie(whichImage, "_root.perice");
_root.onEnterFrame = function() {
var infoLoaded = _root.perice.getBytesLoaded();
var infoTotal = _root.perice.getBytesTotal();
var percentage = Math.floor(infoLoaded/infoTotal*100);
_root.infoField.text = "loading... "+percentage+"%
InfoLoaded: "+infoLoaded+" InfoTotal: ";
if (percentage>=100) {
var material = "./materials/mat_"+image+".jpg";
var titleimage = "./titles/title_"+image+".jpg";
var design = "./designs/design_"+image+".jpg";
loadMovie(material, "_root.material");
loadMovie(titleimage, "_root.titleimage");
loadMovie(design, "_root.design");
initX = _root._xmouse;
initY = _root._ymouse;
stoploop = 0;
_root.perice._x = initX;
_root.perice._y = initY;
intervalID = setInterval( moveperice, 50 );
delete this.onEnterFrame;
// gotoAndPlay(1);
_root.startagain();
function moveperice() {
_root.perice._x += (finalX-initX)/numberOfCalls;
_root.perice._y += (finalY-initY)/numberOfCalls;
_root.perice._width += (finalWidth-initWidth)/numberOfCalls;
_root.perice._height +=
(finalHeight-initHeight)/numberOfCalls;
stoploop += 1;
if (stoploop >= numberOfCalls) {
clearInterval(intervalID);
slidebar.button1.onRelease = function () {
startLoading("albert", this, initX, initY);
slidebar.button2.onRelease = function () {
startLoading("amy", this, initX, initY);
slidebar.button3.onRelease = function () {
startLoading("david", this);
etc with the rest of the buttons.
Please help.I couldn't see a problem there using firefox... except that
the size is designed for a higher resolution than what my laptop
has I'm guessing.
For MovieClipLoader examples there are quite a few already in
these forums (you should be able to find them by searching in as1
& as2 for "MovieClipLoader") or you will find examples in the
help files for MovieClipLoader, or livedocs online. Or there's a
simple example here for loading a swf ( a jpg is not much
different) :
http://www.flashgods.org/forums/viewtopic.php?f=20&t=70 -
Hello I´m having problems with a simple as2 piece of
code...
//Hide Close Button
cerrar_mc._visible = false;
//Show Close Button
text_bg.onRollOver = function():Void{
cerrar_mc._visible = true;
text_bg.onRollOut = function():Void{
cerrar_mc._visible = false;
//Drag Text
text_bg.onPress = function():Void{
this._parent.startDrag(false, -325, -140, 420, 280);
text_bg.onRelease = function():Void{
this._parent.stopDrag();
text_bg.onReleaseOutside = function():Void{
this._parent.stopDrag();
What I need the code to do is to make text_bg drag, and show
cerrar_mc on rollover.
cerrar_mc is a close button which unloads the movie on that
level.
The problem is that when i rollover text_bg, cerrar_mc is
visible but when i rollover it, it disappears.
Is there anything wrong with the code?
thanks.text_bg.onRollOver = cerrar_mc.onRollOver = function()
and
text_bg.onRollout = cerrar_mc.onRollOut = function()
That should fix your problem.
What was happening is that, when you rolled onto the
cerrar_mc, you subsequently would rollOut of the text_bg, and the
rollOut event would fire. -
Flash Image Gallery load problem
This a familiar problem that has been put up here a thousand
times I'm sure but as yet I haven't been able to find a solution
for it. I've put together a simple image gallery using Flash and an
XML file. It works perfectly on my system but there are issues with
the images loading properly when I put them onto my site. I know
very little Flash, I've been using a pre-made gallery that I
downloaded but since it works on my computer I assume I should be
able to get it to work online too. The thumbnails for the file seem
to work fine and the information from the XML file is obviously
being accessed, however the main images are not loading. I've
included all the code below (Actionscript, XML and the Web coding),
if someone could help me before I put my fist through a wall that
would be great:
Actionscript
stop();
//specify the url where folder is located below (if
applicable)
toadd="";
t = 0;
l = 0;
theside = 1;
galxml = new XML();
galxml.load(toadd+"flash/fashion/easy-xml-gallery-2.xml");
galxml.ignoreWhite = true;
galxml.onLoad = function(success) {
if (success) {
maxnum = galxml.firstChild.childNodes.length;
for (n=0; n<maxnum; n++) {
specs = galxml.firstChild.childNodes[n];
//TEXT FOR SIDE NAV
duplicateMovieClip(side.thumbs.thumbsb, "thumbs"+n, n);
thumbclip = eval("side.thumbs.thumbs"+n);
thumbclip._x = n*100;
thumbclip.thetitle = specs.attributes.name;
thumbclip.theurl = specs.attributes.theurl;
thumbclip.thecaption = specs.attributes.caption;
thumbclip.thenum = n+1;
thumbclip._alpha = 100;
loadMovie(toadd+"/flash/fashion/images/"+(n+1)+"b.jpg",
thumbclip.thumbload.thumbload2);
play();
side.thumbs.thumbsb._visible = false;
mainperc.onEnterFrame = function() {
if (mainperc.perc<98) {
mainperc._alpha += 5;
mainperc.perc = Math.round(l/t*100);
mainperc.perctext = mainperc.perc+"%";
mainperc.ltext = "OF THUMBNAILS LOADED
("+Math.round(t/1024)+"kb)";
if (mainperc.perc>98) {
//mainperc._alpha -= 5;
if (mainperc._alpha<-50) {
delete mainperc.onEnterFrame;
XML
<gallery>
<pic1 name="ONE">
<pic2 name="TWO"/>
<pic3 name="THREE"/>
<pic4 name="FOUR"/>
<pic5 name="FIVE"/>
<pic6 name="SIX"/>
<pic7 name="SEVEN"/>
<pic8 name="EIGHT"/>
<pic9 name="NINE"/>
<pic10 name="TEN"/>
</gallery>
Webpage coding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>shorty designs</title>
<style type="text/css">
<!--
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #666666;
body {
margin-left: 0px;
margin-top: 0px;
background-image: url(images/fashion_back.gif);
background-repeat: no-repeat;
a:hover {
color: #999999;
text-decoration: none;
.Sections {
color: #333333;
font-weight: bold;
#wrapper {
background-color: #FFFFFF;
padding: 10px;
width: 760px;
margin-right: auto;
margin-left: auto;
.section_reg {
color: #333333;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: large;
padding-left: 10px;
.contact {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: large;
color: #333333;
background-color: #FFFFFF;
width: 400px;
padding-left: 22px;
text-align: right;
.section_back {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: large;
color: #FFFFFF;
background-color: #000000;
width: 135px;
padding-left: 10px;
margin-top: 15px;
margin-bottom: 15px;
background-position: center center;
vertical-align: middle;
height: auto;
.style2 {color: #F0F0F0}
a:link {
text-decoration: none;
color: #333333;
a:visited {
text-decoration: none;
color: #333333;
a:active {
text-decoration: none;
-->
</style>
<script src="Scripts/AC_RunActiveContent.js"
type="text/javascript"></script>
</head>
<body>
<div id="wrapper">
<p class="Sections"><img src="images/version5.jpg"
alt="shorty logo" width="166" height="85" /><span
class="contact">Contact by email:
[email protected]</span></p>
<p class="Sections">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','536','height','518','align','right','src','/flash/fashion/fashion','quality','high',' pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=Shockwa veFlash','movie','/flash/fashion/fashion'
); //end AC code
</script>
<noscript>
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
width="536" height="518" align="right">
<param name="movie" value="/flash/fashion/fashion.swf"
/>
<param name="quality" value="high" />
<embed src="/flash/fashion/fashion.swf" width="536"
height="518" align="right" quality="high" pluginspage="
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash"></embed>
</object>
</noscript>
</p>
<p class="section_back">Fashion</p>
<p class="section_reg"><a
href="travel.html">Travel</a></p>
<p class="section_reg"><a
href="wedding.html">Wedding</a></p>
<p class="section_reg"><a
href="layout.html">Layout</a></p>
<p class="section_reg"><a
href="personal.html">Personal</a></p>
</div>
</body>
</html>Yep, these are the directions:
this is very easy to update. You only need to edit the simple
xml file and add images to the images folder.
step 1.
add as many images as you like at the size 536 x 403
step 2.
create thumbnails for the above images at size 100x75
step 3.
update the xml file with the name url and caption for each
image. (to take the url off just click through to the button on the
main picture and delete the script that says getURL(theurl)
step 4.
open flash file and change the 'toadd' variable to the folder
where the flash file and image folder is located on your site.
thats it done.
The frustrating thing now is that the files are finally being
found but the thumbnail function has decided to mess up. -
Problem Extending the Dialog component from Flex
I'm trying to extend the flex Dialog component () for usage in Xcelcius, I can package my component successfully and add it to the add-ons in Xcelsius. The problem is that if I try to drag and drop the component to the Xcelsius workspace, the component appears blank and halts the IDE a bit. Does anyone have an idea what I might be doing wrong?
my code is as follows:
package com.component.xcelsius.component
import flash.text.TextFormatAlign;
import mx.containers.TitleWindow;
import mx.controls.Label;
import mx.core.ScrollPolicy;
[CxInspectableList ("title", "showTitle")]
public class ErrorMessageHandler extends TitleWindow
private var _titleChanged:Boolean = true;
private var _valueChanged:Boolean = true;
private var _titleText:String = "My Own";
private var _showTitle:Boolean = true;
private var _visible:Boolean = true;
public function ErrorMessageHandler()
super();
[Inspectable(defaultValue="Title", type="String")]
public override function get title():String
return _titleText;
public override function set title(value:String):void
if (value == null) value = "";
if (_titleText != value)
_titleText = value;
_titleChanged = true;
invalidateProperties();
override protected function createChildren():void
super.createChildren();
// Allow the user to make this component very small.
this.minWidth = 200;
this.minHeight= 25;
// turn off the scroll bars
this.horizontalScrollPolicy = ScrollPolicy.OFF;
this.verticalScrollPolicy = ScrollPolicy.OFF;
override protected function commitProperties():void
super.commitProperties();
if (this._titleChanged)
this.title = _titleText;
this.visible = true;
this.showCloseButton = true;
invalidateDisplayList(); // invalidate in case the titles require more or less room.
_titleChanged = false;
if (this._valueChanged)
// Override updateDisplayList() to update the component
// based on the style setting.
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
super.updateDisplayList(unscaledWidth, unscaledHeight);Hi,
First of all make sure you compile your Flex project with Flex SDK 2.0.1 Hotfix 3?
In the Add-on Packager carefully check your classname (the full class path + class name) because Xcelsius creates an instance of that class when you drag the add-on onto the canvas, so if it doesn't create anything usually it means your classname is wrong in the packager.
In your case:
com.component.xcelsius.component.ErrorMessageHandler
If none of that works try extending from VBox as the top-level add-on class instead and see if that works (I have never tried with a TitleWindow).
Regards
Matt -
Flash Preloader Problem....please help
I have created a website (
http://www.gapproject.co.uk)
with a preloader.
When you access the (
http://www.gapproject.co.uk/gap_gallery.html)
page of the site (which is over 2meg) the content loads about 90%
and THEN shows the preloader.
I want the preloader to start showing from 0% through to 100%
before directing me to the first frame of the website??
Any ideas as this leaves people waiting with a blank screen
for a while before seeing the progress bar load from 90% ish to
100%???
my AS code.....
myProgressBarListener = new Object();
myProgressBarListener = function (eventObject) {
myProgressBar._visible = false;
gotoAndStop(8);
myProgressBar.addEventListener("complete",
myProgressBarListener);
myProgressBar.mode = "polled";
myProgressBar.source = "_root";
myProgressBar.conversion = "1";
myProgressBar.label = "LOADING %3%%";
myProgressBar.direction = "right";
myProgressBar.labelPlacement = "bottom";
stop();I saw someone in this forum had a similar problem and he was
told to de-select export on fram1 for the linkage of components.
Tried this...great it worked....but none of my components
were there anymore i.e. my rollover images etc had all gone.
So this option not good for me....any other ideas? Anyone??
pleeeeeeeeeeeeeeeaaaase?? -
PreLoader causing component problem
Hey all,
I have a created a site that has a scene preloader that
preloads my main.swf.
My main.swf then has a preloader for each external .swf file
loaded into it.
Everything seems to work it preloads my main.swf showing the
percent loaded.
Once it's loaded it appears and then loads an .swf file into
a loader component (this works)
Problem:
the buttons inside the external .swf (that is loaded into my
loader component) do not work. What could be wrong?
I'm thinking it's just a problem with the scope. Below is my
script I'm using.
thanks in advance,
skyI have a loader component on a layer in my main movie named
"bgLoader".
In my actions layer in my main movie I also have the code
below:
mcLoader.addListener(mcListener);
mcListener.onLoadProgress = function (target_mc,
bytesLoaded,bytesTotal) {
extLoader_mc._visible = true;
var pctLoaded = Math.round((bytesLoaded/bytesTotal)*100);
extLoader_mc.pctLoaded_txt.text = pctLoaded;
extLoader_mc.loaderBar_mc._xscale = pctLoaded;
if(pctLoaded>=12){
extLoader_mc.loaderBar_mc._visible=true;
if(bytesLoaded >= bytesTotal){
extLoader_mc._visible = false;
mcLoader.loadClip("intro.swf", bigLoader);
then in the file that is loaded into my bgLoader I have
buttons both component and _mc's and neither will load.
the code for the buttons in the .swf that is loaded into
bgLoader (loader component) is
// comboBox.value = hello.swf
component_btn.onRelease = function () {
if(comboBox.value == "defaultValue"){
warning_txt.text = "Select Option";
}else{
warning_txt.text = ""; // works!
//_root.mcLoader.loadClip("hello.swf", _root.bgLoader);
_root.bgLoader.loadMovie(comboBox.value);
trace(comboBox.value); // works!
}; -
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();
Maybe you are looking for
-
Error while creating SQL Subscription control in Web Analysis...
Hi, I created a report using SQL Spreadsheet object. I want to associated a filter for this result set so that the user can use a drop down box to select the desired date. When I drag and drop the SQL Subscription control it prompts me to select a da
-
Reinstallation of CS3 on new Harddisk is not working
My Mac got a new harddisk. The repair man copied all files (including applications) form the old one. Of course the applications are not working. I want to install CS3 (which I bought and have a serial number) onto the new harddisk but after starting
-
We are running SRM 7.0 SP 8 with Process Controlled Workflow. I am trying to use object with reference to class /SAPSRM/CL_WF_PROCESS_LEVEL, method IS_LAST_LEVEL to determine if the current workflow process level is the last in an N-step approval. Bu
-
when i am trying to run my oracle form on google chrome i am getting a error message that oracle jinitiator version is very low kindly give the answer
-
I cant open pages documents on my ipad that i created with my mac
When i create a document on my Mac, and try to open it on my iPad I get a message "Document couldn't be imported." What is going on? I thought that iCloud was supposed to allow me to use Pages across all my Apple devices. Is this an iOS specific prob