Refresh Error - OldNewbie
Hi there. I had written on Friday regarding a problem with my site refreshing unexpectantly when viewing my portfolio sometimes. You wanted me to post the fla in MX format. I have had to take some of the elements out to get it down to a uploadable size, but am unable to get it under 500K. How may I get you to take a look at that for me? thanks,
DFW
FlashKit > Flash Help > Flash MX
Posted on: 10-31-2004, 01:20 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
- On Refresh Page, Flash Doesn't Refresh Loaded Vars?
- OLDNEWBIE
- For Oldnewbie
- Oldnewbie
- Help W/ Oldnewbie's Pre
- Oldnewbie Help
- Oldnewbie?
- Oldnewbie Is No 1
- Oldnewbie... Can You Help?
- One For Oldnewbie (or Anyone Else Who Knows)
- Hey Oldnewbie, Got One For You...
- To: OldNewbie
- Oldnewbie, Can You Help?
- OldNewbie This Ones For You
- Help, OldNewbie Anyone, Someone, Help
- OldNewbie...
- Oldnewbie Can You Help Me With This
- Hey Oldnewbie...
- Hey Oldnewbie
- Oldnewbie I Need Your Help Again.
- Oldnewbie....
- For Oldnewbie
- Oldnewbie
- Oldnewbie...please Help
- Oldnewbie.........
- Help Oldnewbie
- Help Oldnewbie...
- Oldnewbie
- Oldnewbie...help A Guy Out...
- Oldnewbie...help
- Oldnewbie...help
- Oldnewbie, Please, Help
- Oldnewbie...help Please (or Anyone Else Who Can)
- OldNewbie Or Anyone Else
- FAO Oldnewbie
- Oldnewbie...
- To Oldnewbie
- **Error** TempInit : Line 1, Column 5 : [Compiler] Error #1084: Syntax Error: Expecti
- Error #2044: Unhandled IoError:. Text=Error #2032: Stream Error. Cannot Be Caught
- Question For Oldnewbie (others May Know Too)
- Hey Oldnewbie Got A Question
- Oldnewbie, Please Help With Scroller
- Oldnewbie....I Need Your Expertise....please Help
- An Easy One For OldNewbie
- Question For Oldnewbie
- Hey Oldnewbie: Just A Few Words
- OldNewbie For Moderator
- Question For Oldnewbie
- Oldnewbie Got An Idea That I Want To Ask You About First.
On Refresh Page, Flash Doesn't Refresh Loaded Vars?
Hi my flash app loads random vars from a php script and shows the vars, but on refresh page the flash still contains the same vars as before? How do I reload the php script again and get new random vars into my flash app?
Mads
OLDNEWBIE
Dear Oldnewbie,
I saw you directed someone to Macromedia's load_images.fla sample file. I used that file as a template for a page I created. I have uploaded my HTML file, SWF file and a folder full of jpgs to my webspace provided by my cable modem co. BUT the jpgs do not show up when I click on the appropriate buttons on my web page. They did when I tested the movie before publishing for the web. Here is the Actionscript from Macromedia's file:
_root.onEnterFrame = function() {
// when a new Photo is selected, fade out, load new image, and fade in
if (square._alpha>10 && fadeOut) {
square._alpha -= 10;
}
if (square._alpha<10) {
loadMovie("../images/image"+whichPic+".jpg", "square");
fadeOut = false;
fadeIn = true;
}
if (square._alpha<100 && fadeIn && !fadeOut) {
square._alpha += 10;
} else {
fadeIn = false;
}
Is there something I need to change for my file to "find" those jpgs? I am thinking the loadMovie ("..blah blah blah..." part needs to be changed. The jpgs ARE in a folder named "images".
Can you help me?
Thanks
For Oldnewbie
Hey Oldnewbie, How you been?
I was wondering if you would be able to help me with this dynamic text problem I have been dealing with. I notice you answer on alot of these types of posts. I posted this a few days ago:
http://board.flashkit.com/board/show...hreadid=337654
If you can, Much Appreciation
If you can't, Much Appreciation
Oldnewbie
I see you hit 1000 posts. Thanks for helping everyone.
Kennyb
Help W/ Oldnewbie's Pre
Oldnewbie,
I got your component preloader to work, but with one MAJOR problem.
when the preloader movie loads in, it works okay UNTIL it gets to the part with the scrollbar.. I guess the best way to describe it is, the pictures and sybols in that particular section of the movie become displaced..
another problem, the preload movie doesnt want to unload...
here's my script on the first frame:
stop();
this.createEmptyMovieClip("container", 1000);
// Replace "content.swf" by your file name.
container.loadMovie("perkinsSite.swf");
this.onEnterFrame = function() {
LoadedBytes = container.getBytesLoaded();
TotalBytes = container.getBytesTotal();
Percent = (Math.ceil((LoadedBytes/TotalBytes)*100));
if((LoadedBytes==TotalBytes)&&(LoadedBytes>0)){
_level0.nextFrame;
}
}
and here's the second frame:
stop();
_root.onEnterFrame = null;
I even tried using oldnewbie's FLA and just replaced the name of the movie to be load and got the same problem, except the text of the loader movie did disappear..
HELP??
-myk
Oldnewbie Help
I have been trying to create preloaders in between SWF files but nothing seems to work. I am trying to create a flash website and I want to have doors close when a person clicks on a button to go to another section. While the other section loads the doors will remain close, once the SWF file loads the doors will open. Please help me!!!
2advanced.com is the perfect example!
Oldnewbie?
I need help getting the right coding for something like what you sent me here.
http://odin.prohosting.com/~oldnew/f...rgloadswf3.swf
Please Respond ASAP
Oldnewbie Is No 1
Ah oldnewbie, im sitting here finishing up teaching my calss some computer literacy skills, and i deicded to give a cheer to you! I really respect your intelligence on the answers you gave me, damn near everything you have answered that ive seen has been correct. But i guess enough of the mushy appraisal, i do have a ?, how long have you been messing with flash? and all the methods you have learned. im sure youve had other methodss besides tearing apart .fla/s Speaking of which im doing that now , but i dont seem to get a great deal out of it so.. hmm any words of wisdom adn encourgament so i dont throw in the towel?/
Oldnewbie... Can You Help?
Hey buddy.. hehe sorry to center you out.. but every single question I've asked here you've solved for me......
I've attached a copy of a flash photo gallery I am working on.
There is a movie clip of thumbnails the scrolls whe you click the left or right buttons... that works fine.... now on each thumbnail there is a button (within the thumbnail movie). When each button is clicked the movieclip with the larger photos is supposed to slide the corresponding photo into the view screen.. Umm but it doesn't.... The first one works. The AS I used is:
on (release) {
_root.gotoAndPlay("01");
}
The main elements of the gallery (viewing area) are on the main timeline, and as I mentioned the thumbs and photos are set in movie clips....
The first button works with the above AS but when I use this same AS on the other buttons (referencing the other frame labels of course ) don't work.... I've been pulling my hair out trying to figure this out and I know I'm gonna kick my butt if I find out it's something really simple that I missed...
Can ya help out?
One For Oldnewbie (or Anyone Else Who Knows)
Hey, oldnewb.. After reading that actionscript book, i finally understand the script of your external preloader and am fairly _level-savvy... anyway, on to my question..
I have a main movie with a few buttons. Each button will load a new movie to a certain level.. I use this script to make my preloader respond to the button press...
Code:
function contactLoader() {
if ((button + "Loaded") == true) {
_level1._visible = true;
}else{
progress._visible = true;
this.createEmptyMovieClip("contactForm", 1);
contactContainer.loadMovie("contactForm.swf");
this.onEnterFrame = function() {
LoadedBytes = contactForm.getBytesLoaded();
TotalBytes = contactForm.getBytesTotal();
percent = (Math.ceil(LoadedBtyes/TotalBytes) *100);
progress.percentLoaded.text = percent;
if (LoadedBytes >= TotalBytes) {
progress._visible = false;
loadMovieNum("contactForm.swf", 1);
contactFormLoaded = true;
}else{
contactForm.stop();
updateAfterEvent();
}
}
}
}
I want to make this function univeral so i dont have to rewrite it for each button.. I'd like to make a few arguments in the function declaration that simply give maybe a name (see contactForm throughtout the script) and a level, so each button will call a function like:
Code:
on (release) {
pageLoader(contactForm, 1);
}
the trouble is formatting the script to handle the number i put into the arguement and asign it to a level.
does this make sense?
thanks,
-myk
Hey Oldnewbie, Got One For You...
What's wrong with this code?
loadMovie("picture1.swf", "picture");
setProperty("picture", _width, "300");
setProperty("picture", _height, "373");
setProperty("picture", _x, "0");
setProperty("picture", _y, "0");
Causes weird problems with Flash MX.
http://www.flashkit.com/board/showth...hreadid=428584
To: OldNewbie
Can I email you a zip file containing the movie I have been working on. I have those dynamic text fields that scroll they work ok but after you go into the frames that contain the so many times they stop being able to scroll. Really strange how it works for a while and then it stops.
Oldnewbie, Can You Help?
I have a movie that loads 4 sample mp3's for background music dynamically when you select one of the samples. The first sample loads as default as soon as you enter the site. However, it works fine locally, but once on the server it doesn't work right.
If you click the stop button first and then click play it loads and plays, but not until you click the stop button. You have to hit the stop button only if it is the first time you try to play the sample. You can see what I mean if you go to www.delstrange.com/2bluemoon
I Have attched the .fla if you care to take a look at the code.
Thanks in advance.
OldNewbie This Ones For You
Hey oldNewbie.
I wrote to you via email about a week ago asking whether you had forgotten about me andf the generic preloader.
You said you might be able to send me a quick demo a few days later but I never recieved anything.
I know you are probably heaps busy but was hoping that you still might be able to help me as at the moment the site i am building is using a preloader on each external swf and your generic main timeline preloader would work so much better I think and save me so much time.
Any help soon would be invaluable.
much appreciated pixelmagikau
Help, OldNewbie Anyone, Someone, Help
Ok, I have a menu system that when the user double clicks anywhere on the stage the menu bounces from off stage to where the user clicked on the y axis, allowing the user to see the navigation for the site. When a user clicks on one of the main buttons it sends the menu system bouncing back off stage and out of the way. One of my buttons has a sub nav and I would have thought that I would just use the same actions on the sub nav buttons as on the main nav buttons to send the menu bouncing back off stage...apparently not. Or maybe I'm just doing some small stupid mistake somewhere. I've attached my .fla, it was made on a Mac but PC users should be able to open it if you open Flash first then go to open and select the file. Thank you all for your help, this is driving me insane.
OldNewbie...
I don't know if you remember the example I showed you last week with the pictures scrolling. I guess that scrolling takes up a lot of resources which is why it's a little slow. It makes CPU usage jump to 98%. If the scrolling is stopped by placing the mouse in the middle, the CPU usage drops to 10%. So I guess my question is how to stop the pictures when the mouse rolls out of the masked area. Is it doable.
site
here's the fla for just the pictures scrolling. The blue screen is on another level
fla
thanks in advance. I hope you're computer is fixed.
Oldnewbie Can You Help Me With This
I have a copy of this code at my office but I'm not able to access it from here. I need the code to loadmovie in to a empty MC same as load external swf.
Thanks in advance.
Hey Oldnewbie
Hey man thanks a lot for showing me that awesome example of what you can do with the scrollpane. One problem though...how do I go about modifying it like that?
Oldnewbie I Need Your Help Again.
How are you?
I have a picture website that loads pictures individualy on different levels. Each picture.swf is loaded on top of the previous one by
on (release){
loadMovieNum(name, i)
i++
}
bacause I want the top picture to fade over the one under it. I'm using a scrollPane, and it's not fading. Any idea how I can achieve this effect. The scrollPane is a must, and I want to fade them as I said eariler.
Thanks in advance
Oldnewbie....
My friend, I've lost you. I hope everything is OK. I know you are just very busy. I'm still trying to figure out that problem that you helped me with. I even tried downloading the swfs from your your website but the actions don't import. Is there any way I can get the fla's. I would really appretiate that.
Thanks in advance oldnewbie
For Oldnewbie
Hey oldnewbie, sorry to bother. just wondering if you were still gonna help me out with this preloader.
http://www.flashkit.com/board/showth...hreadid=537528
Much Appreciation
Oldnewbie
can you check out this thread and see if you can help me
http://www.flashkit.com/board/showth...hreadid=573701
thanks
Oldnewbie...please Help
Can you look at the post titled Project due in two days and see if you have any ideas. You have helped me on projects before and now I need you help again!!!
Thanks
Jim
Oldnewbie.........
you had posted a thread with probably the best easing scroll bar I have EVER seen.....i had it marked and now I can not find it...
Can you either link me to the thread or just send me the url again?
Help Oldnewbie
Hey,
Welp. Everything is running perfectly smoothly now. There's one more thing I want to make my movie do.
I'm including the flash file as I have it right now. As you play it you'll see that the "minimize" button works perfectly as it should. The transparency changes on cue, and the movie clip closes as it should.
The only thing is, I would like to make the entire clip fade out as opposed to just dissapearing. So basically I set up the coding so that the alpha of the entire clip would change on it's way out. Unfortuantely, I had no idea how to put in some kind of coding that would manually fade out the clip over a period of frames or time.
So basically...if you could tell me how it would be possible to make the clip fade without having to link to a seperate scene first, it would be an awesome help. Thanks much.
Help Oldnewbie...
Hey...
Need some help in some coding.
Assume that I wanted to simply apply an action on a button. Here's what I want to happen.
On a mouse roll over, I want a button with an alpha of 0 to change to 100. At the same time, I want a piece of code that will take the button back to 0 upon the mouse rolling out. Here's what I tried...
on (rollOver) {
company_block._alpha = 100;
}
on (rollOut) {
company_block._alpha = 0;
}
That was my best guess as to solving the problem. It ended up fading out the entire movie clip on mouseover instead of the company_block button. Thanks in advance for any help.
Oldnewbie
Oldnewbie, I tried the solution to exporting the swf to avi then to quicktime with no success, I was wondering if I gave you the swf, if you would have time to look at it, Thanks soilentgreen
Oldnewbie...help A Guy Out...
oldnewbie...
I once again come back seeking your assistance. Had a quick simple question. I was checking out a nifty design studio and they gave me an idea for mine that could work pretty well.
Here's the basic gist of what I want. Every time my flash site loads up, I want a RANDOM picture to load up inside the flash movie clip which will act as the background while externally loaded .swf's will load on top with navigation and content.
For an example of what I'm talking about...check out
http://www.exopolis.com/site/
After you load up the site, close the pop up window and reload it. Note the different bg but the same content. That's what I'm shooting for. Thanks in advance for the help!
Oldnewbie...help
Yo,
I'm back yet again for another teaching in the ways of flash use.
Question. Is it possible to load an external swf into a movie clip INSIDE of another movie clip? The name of the first movie clip is "body copy bg" . The name of the mc INSIDE that mc is "aboutcontent" . So...Here's the code I attempted (failing miserably).
on (release) {
loadMovie("flash/about_technology.swf", "_body copy bg.aboutcontent");
}
Please help! Thanks...
Oldnewbie...help
Okay,
I think I'm going out of my mind...
I'm simply trying to load an external swf into a mc container.
I'm inside a mc, in that mc is a button. The code I have on the button is as follows:
on (release) {
loadMovie("http://www.oodelally.com/flash/portfolio_clients_margo.swf", "_parent.portfoliobox");
}
The name of the mc container is portfoliobox. I've tried _parent. _root. _level0. and several others. What am I doing wrong???
Oldnewbie, Please, Help
Oldnewbie,
I was searching the board looking for a way to solve my problem, when I finally found one message of yours talking about a preloader that would load external SWF´s (The thread was named "Best possible way to do a preloader for external swf?". To preload external SWFs... That´s my problem...
Would you please be kind enough to send me this external preloader that you´ve made? It would help me a lot...
Thanks in advance!
Oldnewbie...help Please (or Anyone Else Who Can)
(Oldnewbie helped me with this issue last year on another site, hence why I called him...glad to accept help from anyone though =)
I have three frames in a frameset (topFrame, leftFrame, and mainFrame)
my flash menu is in the leftFrame, and it is leftportion.swf
I have it working now in IE, but the solution doesn't seem to work in Firefox. I want the pages to cause the flash menu
to change frames when they load (someone clicks the link to 'home', and when the page 'home.htm'
loads, it sends a message to leftportion.swf that says "GotoFrame")
the buttons are in an instance called "nav" on the main timeline of my swf.
I have the following in the body tag of my leftframe htm page (leftside.htm):
---------------------------------------------
<script language="JavaScript"><!--
function my_menuMove(frame) {
flashfile.TGotoFrame("_level0/nav",frame);
}
//--></script>
---------------------------------------------
I also made sure to add id="flashfile" in the object tag, name="flashfile" in the embed tag, and swLiveConnect="true" also in the embed tag (all in the leftside.htm)
on the pages that are sending the (GotoFrame) number, I have this: (this number is for the home page)
---------------------------------------------
<body onLoad="javascript:top.leftFrame.my_menuMove(2)";>
---------------------------------------------
as I said, it works great in IE, but in Firefox it will not work (and produces an error in the javascript console that says "error: flashfile is not defined")
I am not a code writer, so please keep that in mind with any suggestions...
thanks much in advance
OldNewbie Or Anyone Else
Hi Old and/or guys, i looked in the FAQs and found what i need but the link you provided is dead.
I'm looking for a TV screen noise effect(as small, in file size, as possible since it will be used in an intro).
Thanks in advance.
p.s Worth a star.....
Have Fun...
Sharky99
FAO Oldnewbie
Old, you posted a link to a Flash "puppet" type thing a little while ago. I've been trawling through old posts trying to find it again but can't. Could you repost the link?
Slainte
http://www.wangbar.co.uk
Oldnewbie...
Hey talk to me about the work around you have for the preloading problem while using componets..I saw you post it a few times but I can't remember the work around..Something about another movie preloading the other..
Using scroll panes and preloader is not showing up till about 50% loaded..
I have some other scroll bars I can use but the scroll panes slick style just matches perfectly with what I want!
carlsatterwhite@orlandomediasolutions.com
To Oldnewbie
To you, oldnewbie, I've been reading old posts from when I first started posting here-back when virt2002 was still posting here - the old posts have more information for Flash 5, and I'm sorry if this isn't the place to put this, but you've helped so so many people over the years, I just want to personally thank you for all the help you've been to me and others. You know us Canadians, we get drinkin' and sentimental...And when I came across this thread: Thread250-63999 I was just thinking how long that you've been helping us all out for..man, you're amazing!!
Adam
**Error** TempInit : Line 1, Column 5 : [Compiler] Error #1084: Syntax Error: Expecti
Hi,
I'm trying to convert my AS2 project to AS3. I got rid of all errors but one :
**Error** tempInit : Line 1, Column 5 : [Compiler] Error #1084: Syntax error: expecting identifier before 45.
var 45:MovieClip;
I got no idea what tempInit is, and no where do I declare a variable called 45...
After searching the web for hours I am tired and thus asking for your help.
Thank you,
Error #2044: Unhandled IoError:. Text=Error #2032: Stream Error. Cannot Be Caught
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///C|/LocalWorkspace/Simulation%20Platform/sim/assets/conversations/14/Maria/NPC_104.MRK
Hi all, I'm getting this error, and I damn well know why. Its because I'm trying to load a file that doesn't exist. But the thing is, I'm wrapping the code in a try catch, and I'm still getting the error. Also, I'm being told that the error is on this line:
ActionScript Code:
var loader:URLLoader = new URLLoader();
I need to do it this way because i know that some of the files I'm trying to load do not yet exist.
But what could possibly be wrong with this line? And either way, it should be caught by the try, catch. So, whats the problem?
ActionScript Code:
try {
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, completeHandler);
loader.load(new URLRequest(_filename));
} catch (error:Error) {
trace("DATA: loadAnimData(): Error loading lip synch data.");
}
Question For Oldnewbie (others May Know Too)
Just an odd question about preloading with components and sound, etc... I have used oldnewbies preloader in the past, and seem to remember another workaround before, but cant find it. I'm not at a computer w/Flash right now, so let me pose this question:
if you make a movie with a preload scene and set you components or whatever you want to use to export for actionscript, but do NOT export them to the first frame, can you simply place them offstage on the first frame of the main scene and still have the preloader work correctly, since the items are exported in the next scene?
thanks,
-myk
-moo
Hey Oldnewbie Got A Question
Regarding to the preloader at <http://odin.prohosting.com/~oldnew/...ing/preload.htm> I'm still having trouble getting it to work. I've set my movies first frame w/nothing in it but it still dosen't work properly. Can you explain "run time sharing" & how it works w/ regards to your preloader. I've set my MCs & Graphic symbols to "import on first frame" but it dosen't work. Am I doing something wrong.
Oldnewbie, Please Help With Scroller
hi guys,
lookin for oldnewbie really. he posted a fla for a thing called "scroller". i have managed to put a couple of invisible buttons on the "visible" area of the screen.
what i want to do is make it scroll left on rolling over the left hand button and right on rolling over the right hand button.
what i can do is make it scroll either to one end tar=800 or the other tar=0. but not stop when i move off the button area.
ignore the _y stuff and evrything called "2" i was playing at moving it up and down too. (it is great for learning with thanx)
here is the file. dont kill yourself as i was just playing around trying to learn some stuff. it is not really important
file is just too big so try here
http://www.gary-bydesign.co.uk/scroller2.fla
thanx for any h as usual
gary
Oldnewbie....I Need Your Expertise....please Help
I've created this menu:
menu
It has a stop() on frame 1, so right click and hit play to be able to see it.
Notice how when you click any of the buttons, the clicked picture moves to the left, but when it goes all the way around, the picture is there again, and it's not suppose to appear again until you click another button. Help please!!
the fla is here
menu.fla
I'm going crazy I've tried different things and nothing works...thanks in advance
An Easy One For OldNewbie
txVisits already is = 1 and is not a string
txVisits = txVisits + 1;
I get a result of 11 though
I've looked throught the actionscript book a few times and can't find the command to make sure that flash thinks that txVisits is a number, not a string.
Thanks.
Question For Oldnewbie
where do i put the stop command exactly? in the keyframe of the movie when i am editing IT as a symbol? and also, does it need an eventhandler mumbo-thingy? or can it just read stop(); ? plus, the movie has a lot of keyframes, like a lot goes on in it, so how do i know what keyframe to pick?
thanks for your speed! i really appreciate it.
Hey Oldnewbie: Just A Few Words
We just returned from a 10 day visit of montreal. By the end of our trip I found that I didn't want to leave. The city is great and the people were wonderful. You are lucky. Maybe someday.......
chosenson
OldNewbie For Moderator
Quote:
Originally posted by hurricaneone
Did you guys see that oldnewbie is going to quit posting when he reaches 10,000 posts? I think he's on 8,500, or there abouts.
Now that's a damn shame, 'cause he's great over in the help forums.
Just another demonstration of someone who should be asked to be a mod for all the great work they've put into FK.
Question For Oldnewbie
What do you do for a living? I remember frequenting the board over a year ago and you where on here helping people and still are. Do you work for Flash Kit? hehe. Well just wanted to say kudos for taking time to help all these peeps, I might be back in the near future if projects take off like I want them to.
Oldnewbie Got An Idea That I Want To Ask You About First.
You have just become the "god father" of flash so I got to ask you before I do something big.
OK you know the website I'm working on right?
site
pretty much everything that you see there is a seperate swf. The outside border, girl on the left, the 2 spikes in the center, and even the welcome paragraph in the center is called home.swf. When you click on "make an appointment" every thing disappears in a predetermined manner, and the new stuff appears. This is done in a very unintelligent way, and I want to change that.
do you think it would be a good idea to create an array called MoviesLoaded[], and add to it the names of movies loaded as they load. Then when a button is clicked, to use that array to unload or change the corresponding movies (the spike in the center is not unloaded just dropped a bit)
Since the page set up is going to be different for almost every main category, I need to make it work no matter what is clicked on, and what is currently displayed.
I just don't want to plan out every possible path, and make it happen through the main time line, which is how it is done now.
I'm sorry for writing to much. I'm going to stop now so I don't scare you away. Please ask any questions you want.
|