ActionScript 2.0 :: CS3 Hide A Btn Until (preloaded) FLV Has Loaded?
Oct 6, 2009
I've found lots of answers on making a button visable after a swf has loaded but not a flv. I am preloading an flv, well 20secs of it, then it starts playing. But I have a 'play' button on the stage and it sits there tempting people to hit it whilst the preloading bar works its magic preloading the flv. I want the button to be visable only after the flv has loaded or at least until it starts to play.[code]
I am trying to use load movie to pull in an external Flash file. ALl the external file is, is an image with a dynamic text field. My XML is <feedbackImage xloc="100" yloc="200">feedbackHolder.swf</feedbackImage> In Flash right after the XML loads I have imgfeedback = myFeedback[0].firstChild.nodeValue; feedbackHolder_mc.loadMovie(imgfeedback); feedbackHolder_mc._visible=false
When Flash runs, the loaded swf shows up inside the holder and I am able to control the functionality of it....except I can't hide it. the _visible wont work. So I tried feedbackHolder_mc.unLoadMovie, which did hide it, but when I went to load again, the text I was trying to pass into the text box didn't show up. Basically I want this loaded and then hidden until a user gets feedback, at which time the loaded swf becomes visible. Hoping I can use the visible property.
I'm loading data into a Flash application via XML, which is in the same directory as the swf file on the server, and would like to prevent the XML from being viewed in a browser. I was assuming I could set the XML's permissions to allow Owner and Group read and prevent Others from reading (UNIX 770), but when I do that the XML won't load.
I thought about using an .htaccess file but I don't want a password dialog to pop up when the swf requests the XML. Is there a way of doing this via permissions?
Myapp loads an external swf and adds it to MovieClip.External swf movie has elements that are placed outside the stage (they go on the stage during swf playing). But after loading that elements are visible in the main MovieClip.In other words, it looks like the whole space outside the stage is visible as well as the stage.How to hide elements outside the stage of loaded swf?
I'm loading a dozen or so external .swf movies in the 1st frame of my movie in the timeline which are to be initially hidden and shown to display page content when necessary along the rest of the timeline. My problem is that when I load them in, they all automatically display on the 1st frame. Here's is the code I'm using:
It's as if the _visible commands aren't working in the 1st frame but are in the rest of the timeline. Perhaps I need to use an onLoad method to wait until each MC can be manipulated this way?
I am using AS 3 Flash CS4, WIndows XP SP3. I am unable to use the Mouse.hide(); method in many of my scripts. If I add Mouse.hide() to a preexisting script, I get the following error; line1 1061: Call to a possibly undefined method hide through a reference with static type Class. If I add Mouse.hide():void; to a preexisting script, I get the following error: line1 Label must be a simple identifier Once this has happened, if I then remove ALL lines of script from the file...but leave the Mouse.hide(); [or Mouse.hide():void;], and also remove all objects from the stage, when I run the file, I still get those same errors.
Hon the wallets page, when you click to view a wallet you get a slight delay and I'm guessing that this is because I've put the preloader in the swf being loaded, hence not being able to see the thing your loading until its been loaded.how I would put the preloader in the main movie and what kind of code I would use? At the moment the timeline being loaded basically tells the playhead to goto and play frame (whatever) when the movie is loaded.
i�ve written a small class for a image galery with preloader. but how to check if a image allready is loaded to hide preloader bar? i tried to discover with httpStatus, but unfortunetly this event is dispatched after the open/progress event - the code comes here
main class:
Code: package marek { import flash.display.*; import flash.net.*[code]...............
I have a container swf that preloads 4 other swf's and the user can navigate between all 4.
The problem is that once loaded, the animations for all the swf's begin immediately. So the animation for the 4 swf could be finished before the user ever sees it.
I've tried reloading the swf as a new URLRequest, but that caused an issue: when I test using a simulated slower connection it causes a slight delay in the loading of the swf.
my site is finished but as it's quite a large SWF the preloader and logo doesn't appear on screen untill it's load about 40% loaded.
Is there any way to get the logo on screen before anything else comes up rather than just having a black screen? (without breaking the main movie into smaller ones).
ive been building a site for about a month now and slowly piecing it together- so far ive managed to get all my various different levels loading and unloading the way i want them to, but now id like a little status bar to load on screen as my multiple levels are loaded in the background.The way ive been accomplishing this without the load bar is like so:on first frame of main movie loadMovieNum("dl_web.swf", 3);load MovieNum("dl_ illustration.swf", 4);loadMovieNum("dl_retouching.swf", 5);(the first frame of each of those movies has a stop function on it)And i have buttons on the main movie that make each of those levels visible and play.NOW, ive just created a movie clip ive named "bar" which is a thin rectangle, and i would like to have that movie clip load lengthways as my multiple levels are loaded in the background. So, my question is how do i accomplish this? I've looked all over and it seems like all the good preload tutorials are loading into movieclips whereas i am loading into levels.Right now my site is technically working, but there will be pauses for people with slower internet connections and i need my bar graphic to pop up so they dont think they are dealing with a broken site....
In my application, I make numerous calls to preload images to brower cache in the background using Loader instances and ignore the complete event. I don't store the results in the application, but rather want to store them in the browser cache. The images have long Expires header dates.
When I want to use a particular image(s), I again use a Loader instance and call the same url and listen for the complete event to load the file to an Image.
The problem is that when I re-request the url for the "cached" image, it is making an http request with response 200 status, which I presume means it is hitting the server. How do I make sure that a request for a cached image never hits the server from Flex? I am finding that any request to a url for a cached image (with a long expires header) is making another request to the server, or at least that is my interpretation of it in Firebug.
I'm trying out the preloader method shown on [URL] and its working fine until I use any reference to 'stage' in the loaded swf.
My loaded swf works fine if I test it on its own, but when I run the preloader which loads it, I get an error 1009 - I have found out (by a series of elimination) that its as soon as I reference 'stage' in the document class of the loaded swf
I recently put together a gallery based on examples that Stringy posted here.A couple improvements have been made, there is now a forward/back button that is sensitive to which photo you're on...thumbnails appear only on rollover. Run locally, it works perfectly.But there's a problem. For this particular project, there NEED to be 30 photos loaded in to the gallery, and they're biggish, average = 130k/per. When i'm running it live, the first 15 photos work fine (using the next/button) ... but once you reach the final 20...it CRAWLS. Most browsers I've tested it on crash at 28.Now, I don't know if this is just a feature of having so many images (if so, is there any way I can make a buffer of the next 5 images preloaded, and then delete those that were cached after I've viewed them?)
I'm trying to create a preloaded that reveals an image.example of what i mean is; when 10% is loaded 10% of the image is visible when 50% is loaded 50% is visible.
I have a SWF file, and it accesses an XML file. It works just fine when debugged or published into a standalone SWF. HOWEVER, when I add a preloader to it, I get the following error, every single time:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
It works just fine when running on it's own, but when it runs through a preloader, it will not work.
I need to preload 12 images and 12 mp3 files, and the xml file for my text, at the beginning of my swf file.
Is there any fairly easy way to do this? I've searches for tutorials/examples, but can't find anything helpful. Is there a way to preload a folder, where I can keep these files? Or some way to get all files preloaded in the same preload progress?
written a small class for a image galery with preloader. but how to check if a image allready is loaded to hide preloader bar?i tried to discover with httpStatus, but unfortunetly this event is dispatched after the open/progress event hintthe code comes heremain class:
is finished but as it's quite a large SWF the preloader and logo doesn't appear on screen untill it's load about 40% loaded. Is there any way to get the logo on screen before anything else comes up rather than just having a black screen? (without breaking the main movie into smaller ones).
I'm trying to preload an external swf, but when I try to access the stage in the external swf, I get a 1009 error. When I remove the stage.scaleMode, stage.align and stage.stageWidth, it works fine. The content.swf also works fine when i run it seperately from the preloader.
I've added text to the stage and if I test it out using ctrl+enter, it does not show up. If the swf "loads"/"simulate load" then the text shows up, but not in the correct font.This is the error when the swf is not preloaded:VerifyError: Error #1014: Class flashx.textLayoutcontainer::Container Controller could not be found.at flash.display::MovieClip/nextFrame()at spot_fla::MainTimeline/l()I've also recently added an AS3(CS5) preloader which is when this started. The library mc items have been set to export in frame 2 but the font doesn't show up. The font has been embedded as well but linking/unlinking it does nothing. The AS3 preloader is a simple script that a lot of tutorials online use.The textfield is located in frame 2 of the timeline and is not referenced in AS. However it is inside of a mc that has a mouse listener on it(mc).
The issue i'm having is that I want to use the Preloaded Thumbnail gallery as described in this thread [URL]
The catch is that I have 600 photos to do this with, so I'd like to create the scrollPane which will be capable of scrolling through them.
What I've gotten so far. I created the scrollPane, and then I've followed the tutorial's on how to get that working, I've also gotten the mc working for the photo gallery. I can't seem to get the two to work together. I've stripped this down to just the working thumbnail gallery with the settings I need. intergration of the scroll pane and mc thumb?
I got some Images in my scroller component. while scrolling the scroller sometimes hang for a second... i think the image is loading. is it possible to load the image before the scroller is on the position?!.
My issue is it does not seem to track the progress. The trace statement in the onProgress function only displays after it is fully loaded. I thought this was suppose to loop.