Preloader and AmfPHP
I knew there was something wrong and i found it now i need to
fix it.
What it is, is when after my preloader finishes loading large
images and the messageboard, i get the images no problem (shgows
the preloader works) but the messageboraddoes not work. In flash 8
works fine but on the server it doesn't. I have used amfphp a lot
and i know all the files are alright so that cannot be it. The only
difference is the length of time. It takes longer on the server and
the data is not loaded. I wonder why/
Info:
I have exported all my AS2 classes to the second frame so my
preloader will work and my messageboard is on the third frame.
If you want anymore info please just ask. I have been trying
to sort this out for a long time. (and I'm mean a long time)
Link to messageborad
in action
It works fine on the flash ide but not when you simulate a
download. I have changed something since my last post. I have now
put all the amfphp code into a class. Also is there away to put an
something like
var messageTXT = _root.amessage_mc.mesaage_txt
that into a class? Just that it would make the class a whole
lot easier unless there is an arror in the flash side to accessing
php then i might just put it back into the main swf.
AS2 class export on 2 frame (scene1, frame2)
Similar Messages
-
Help with Flex preloading and transitions please
I downloaded and installed Flex Builder 3, and I think I have
my slideshow project about 75% finished. It's the last 25% that I
can't figure out, regarding preloading and transitions. Can someone
take a look at the code below and see if you can help me? I tried
to write the code in such a way that you can debug it from any
computer as it's calling an PHP/XML file and images that are on a
server.
Here's what's finished...
1. PHP file looks at image files on server and builds XML
file.
2. Flex app calls PHP file and traverses the XML in the
response.
3. Flex app figures out how many "slides" there and displays
the slides one at a time, each slide with 3 images, with a 5 second
delay between "slides."
Here's what's not finished...
1. I would like a fade-out to white at the end of each slide,
and a fade-in from white at the beginning of each slide.
2. I need each slide to stay put intil the next slide is
pre-loaded. That is, during the 5 seconds that a slide is
displayed, the next 3 images need to be preloaded, and then the
slide should not progress to the next until slide is completely
loaded.
3. The very first slide should not appear until it is
completely loaded, and when it does appear, it should fade in from
white.
How do I do this?!? Please help! Here's the code...
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" width="472" height="195"
backgroundGradientAlphas="[1.0, 1.0]"
backgroundGradientColors="[#FFFFFF, #FFFFFF]"
creationComplete="StartFunction();" >
<mx:Fade id="fadeOut" duration="2000" alphaFrom="1.0"
alphaTo="0.0"/>
<mx:Fade id="fadeIn" duration="2000" alphaFrom="0.0"
alphaTo="1.0"/>
<mx:Image id="PhotoA" x="0" y="0" width="154"
height="195" />
<mx:Image id="PhotoC" x="318" y="0" width="154"
height="195" />
<mx:Image id="PhotoB" x="159" y="0" width="154"
height="195" />
<mx:Script>
<![CDATA[
private function StartFunction():void {
var oXML:XML = new XML();
var sXmlUrl:String = "
http://www.smis.org/templates/smis/slideshowxml.php";
var oUrlReq:URLRequest = new URLRequest(sXmlUrl);
var oUrlLoader:URLLoader = new URLLoader(oUrlReq);
oUrlLoader.addEventListener("complete", xmlLoaded);
function xmlLoaded(event:Event):void {
oXML = XML(oUrlLoader.data);
var iSlide:int = 0;
function ChangeImages():void {
PhotoA.load("
http://www.smis.org/" +
oXML.slide[iSlide].photo[0]["@filepath"]);
PhotoB.load("
http://www.smis.org/" +
oXML.slide[iSlide].photo[1]["@filepath"]);
PhotoC.load("
http://www.smis.org/" +
oXML.slide[iSlide].photo[2]["@filepath"]);
iSlide++;
if (iSlide >= oXML.children().length())
iSlide = 0;
PhotoA.load("
http://www.smis.org/" +
oXML.slide[iSlide].photo[0]["@filepath"]);
PhotoB.load("
http://www.smis.org/" +
oXML.slide[iSlide].photo[1]["@filepath"]);
PhotoC.load("
http://www.smis.org/" +
oXML.slide[iSlide].photo[2]["@filepath"]);
iSlide++;
if (iSlide >= oXML.children().length())
iSlide = 0;
setInterval(ChangeImages,5000);
]]>
</mx:Script>
</mx:Application>What you've done is beyond my capabilities, as of now. But, I
ran into the same problem with the fading in and out of the photos.
Here's my solution.
I defined my fade with only the id and the duration
parameters. No 'from' and 'to'.
Then I used the 'showEffect' and 'hideEffect' parameters.
showEffect="{bannerFade}" hideEffect="{bannerFade}"
Works like a charm for my project.
I hope this helps.
Randy -
Flex 4 - is it possible to load xml data into the preloader and pass it to the application?
or is there a similar method to load XML data while the preloader is active, so the XML data will be ready when the main application loads?
i'm having great difficulty finding any relevant info from the forum and the web about accessing preloader variables from the application.
is there a way to access the preloader itself from the application?
It seems logical that the systemManager garbage collects it. If that's the case, how can i access the systemManager from the preloader and possible pass variables to it, then later access them from the application? this seems to be the best direction to tackle this problem. but maybe i'm overlooking another way? -
My Flash site has a media player which uses the attachSound
method to play and skip through 3 mp3s. As a result the preloader
shows up after the movie has loaded 60%. To rectify this, i changed
the Publish Settings under the Flash Tab so that the classes for AS
2.0 load in the 2nd frame of the Preloader Scene(I have separated
the preloader and the main movie to diffrerent scenes..)
I read it somewhere that to correct a similar problem with
MCs, you need to place them somewhere in the timeline (say,Off
Stage), But how can same be done for Sound Objects.???if i do that then the preloader works fine,however the player
doesnt work...since the audio files dont get loaded.. -
Adding dynamic preloader and percentage to flash content
I am trying to add a dynamic preloader and I am also trying to show users the loading percentage of flash content.
I searched Google and mostly creating preloader with Adobe Flash came up.
What I am trying to do is adding this programatically.
For example if Angry birds is loading, first it should say that the flash game is loading, please be patient.
Here is the homepage: Full Screen Game
I am using PHP/Jquery. It would be really great if it is possible to do that with Jquery.
Thanks for your time,it would be easier to debug an xml file that's formatted nicely rather than a string that you'll cast into an xml object. so, pass the xml path and use a formatted xml file.
-
Preloader and moviecliploader class
Hello
Firstly thanks to kglad for some advice yesterday. More needed
I am using FlashMX 2004 Professional.
I have been having problems with my preloader which i have placed as a movieclip at the start of the pertinent scenes where it is needed. The problem has been one of file size in frame one - a common problem I beieve. This causes the preloader script to malfunction and come in late and show just 100% loaded of the preloader animation - again a common problem I am reading. SO it seems clear having designed the whole website using LoadMovie Number that the movieClipLoaderClass would be the solution to getting my Preloader to work. Hmm..
So can people tell me that if I now create a seperate scene for the preloader and have it listen for any downloading swf to activate using the moviecliploader class will this work ok in tandem with how I have connected all the other scenes using the loadmovienumber? Just need to now before I start trying that out. My hope is that the Preloader will then overcome the file size issue of the first frame because and it will not have to load itself every time afresh.
Hope this makes sense, I am fairly inexperienced here...
Cheers
PeteI know everything about the file, I know that the sound starts on the first frame and also I know it ends on the last frame. If the sound data are on the main timeline, the sound could be streamed and you don't have to load it fully to start playback. The question is the same, how much I need to load to start the sound.
I think it's not very clear why I need this. Imagine:
- you need to play the external SWF file
- you start to load it via the MovieClipLoader class
- onLoadInit you stop the movie and wait for the load
- check, if you can run the movie - based on bytes and/or frames you can determine, you preloaded enough, so the movie won't be stopped and you don't have to load more to continue
- but, when you run the movie, the animation starts, just the sound doesn't, because more of it needs to be loaded.
- then after short time the sound start to play and since it's streamed and on the timeline, it's sync with the animation
So, in this scenario a few seconds of the sound are skipped / missing in playback. Of course, it could happen that the sound runs fine, because the SWF content could be different. I can't say 20% of the file size is audio and the rest is the animation.
I wanted fully flash solution, but it seems I'll have to find it in combination with Java, because it seems there is no way to distinguish between audio and other data in the Flash movie in AS.
Anyway, thank you for your help. -
Quicktime Pro, preload and Director Que Points
Hi All,
I have just discovered that the latest version of quicktime
Pro (7x) does not have the prelaod option when exporting a movie.
If you have markers embedded in your quicktime movie that you want
to use as que points in Director you can no longer do this as you
MUST have the preload setting enabled in Quicktime Pro when
exporting the movie. Director will throw an error when you try to
import the quicktime file warning you that the file is not
preloaded and the que point will be disabled for that file.
Has anyone else upgraded to Quicktime Pro 7?
The only solution that I can find is to install Quicktime 6x
BUT I haven't got the installer and Apple do not have it on their
site, looks that it was money mis-spend when I upgraded to version
7.
Does anyone have any ideas?
Many thanks!
Andrew
See
http://discussions.apple.com/thread.jspa?messageID=5924800
for the apple snag.I faced the same problem one month ago. At the end I decided
to use flash. It has the possibility to work with cue points in a
natural way. One solution I explored with Director was to do my own
cue points controls. Basically, I got a list of my cue points, I
used the old CoolEdit to define and export the list, then I checked
the time of the movie in a loop (exitFrame) and I compared the time
of the movie with the list of CP to trigger the events. But as I
told you, I decided to use Flash
Sorry not to be useful
Good luck -
PreLoad and Execute(Performance)
Hi,
I have been seeing documents which says that we can use the preload and execute in production.
So they really do that.
If so
How does it increase the performance.
ThanksJust for future reference, the command in the previous post is the absolute correct command. Every other command I have found either opens the "Open With" dialog for every instance, or only works for registered types. Using "rundll32.exe shell32.dll, ShellExec_RunDLL "+file_name pops up the open with dialog when necessary but will open the right application if possible.
-Dave -
What is the difference between Preload and Precompile
Hi,
Can anyone tell me the difference in between Preload and Precopile.
Thanks.
Regards,
ThanigaiPrecompile is the generation of the servlet code and the compilation of it before starting up the server.
preload is loading certain servlets (or generated servlets) into the memory so they can be accessed faster. -
Blank screen between preloader and beginning of SWF movie
I'm having a problem with a published SWF. A long lag time is occurring between the end of my AS3 preloader and the beginning of my SWF movie. Once the preloader disappears, the SWF screen goes blank for up to 10 seconds before the movie begins. I've monitored the SWF's download progress using Firebug, and the preloader disappears once 45% of the SWF has been downloaded, as is to be expected. But the movie does not begin until most of the SWF has been downloaded, which causes the 10 seconds of blank screen. After reading some blog posts, I suspected that the audio embedded in the Captivate presentation was causing the SWF to download all of the audio before starting the movie. I followed recommendations to add a tiny amount of silence the beginning of each slide, but it hasn't resolved the problem.
Does anyone know how to fix a long lag time between a preloader and movie? My SWF settings and other details are below. Thanks in advance.
- Using Captivate 5
- The presentation has 18 slides. Each slide has one JPG and one audio clip. (The audio clips were imported one at a time, instead of importing one large audio file and having Captivate spread it across multiple slides.)
- Each slide is .4 seconds longer than its audio clip, leaving .2 seconds of silence before and after the audio clip.
- SWF Size and Quality are set to Low
- Audio Quality is set to MP3, 64Kbps, 44.100 KHz
- Using AS3 preloader set to 45%
- The SWF is hosted on a web server and is viewed via the htm file that is generated when the SWF is published.
KimHi Vikranth,
Thanks for your help. The online SWF is here:
http://leo.lincolninst.edu/eTeach/captivate-tests/inside-focus-area/new-opt-img-mp3-chunks -full-2/inside-focus-area-new-opt-img.htm
I've also posted the same SWF with a 15% preloader here (the smaller the preloader percentage, the longer the blank screen):
http://leo.lincolninst.edu/eTeach/captivate-tests/inside-focus-area/new-opt-img-mp3-chunks -full-2-15/inside-focus-area-new-opt-img.htm
I've sent the cptx file to your email address.
Kim -
Deleting/hiding a preloader and a button
Pls help - i have to figure this out before 2pm ESP today. I
purchased a flash intro template and switched out the text, images,
etc. for a colleague for an internal presentation. Here's the
problem: he wanted the intro to run twice - seemlessly - so at the
end of the first .fla file I changed the 'stop" action to a
loadMovie action. The problem is the preloader and button that is
OK when the first .swf file runs is fine but I can't figure out how
to delete it from the 2nd .swf file. (The company i bought the
template from said this modification is out of their realm...) I'm
desparate now... The .fla files are huge - but I can send a link to
show what I mean. Thanks,
LisaI solved it in this way:
package untitled24;
import javax.swing.UIManager;
import java.awt.*;
import java.io.*;
import java.awt.event.*;
public class Application1 extends Frame
private TextArea tekstgebied;
private MenuItem ok;
public Application1()
MenuBar menubalk = new MenuBar();
setMenuBar(menubalk);
Menu hoogste = new Menu("ok");
menubalk.add(hoogste);
ok = new MenuItem("test");
ok.addActionListener(new MenuHandler());
hoogste.add(ok);
tekstgebied = new TextArea();
add(tekstgebied);
addWindowListener(new WindowAdapter()
public void windowClosing(WindowEvent e)
dispose();
System.exit(0);
setSize(300,200);
setTitle("oef 1");
setVisible(true);
public static void main(String[] args )
new Application1();
public class MenuHandler implements ActionListener
public void actionPerformed(ActionEvent f)
FileWriter uit;
String inhoud;
inhoud = tekstgebied.getText();
try
uit = new FileWriter("bestand.txt");
uit.write(inhoud);
uit.close();
catch (IOException e)
System.out.println("Fout bij het openen, maken of sluiten bestand");
e.printStackTrace();
} -
Problem with preloader and sounds
Hello everyone,
I am making a movie that has 12 sound files in it. I am
having trouble getting this to work with a preloader. I was using a
seperate flash movie and using the movieClipLoader to load in the
movie that has the sounds in it. However my employer wishes to have
everything in a single swf file. I know the concept, that the
sounds in the movie using attachSound need to be loaded before
first frame... but I need the preloader to take them into
account... how do I do that? I tried putting my preloader on frame
one, then had 12 keyframes in a row and just dragged the sounds
onto the stage (one for each keyframe there), and then the main
movie starts on frame 14... but that stil doesnt work... how can i
do this?Just to let anyone know... I did figure this out on my own...
it makes it messy though and I dont like it... buuuuut what are you
going to do... I had to set the linkage in each sound in the
library to export and then uncheck the export in first frame...
then i had to create keyframes for each sound and put it on the
stage in frames 2-13. Preloader on frame 1 and main movie on frame
14... it works now. -
When we traverse from one page to the other and this is not different php pages, its the same html page only dom manipulation. to show different gui one after the other. Now on these screens there are some images that are preloaded like loaded upfront and some are pulled at run time when user visits that screen. All images that are pulled on run time show a curtain effect. This is problem number 1, we cannot preload these images since the systems are having only 250mb ram.
Now the other problem is that when the user goes from one screen to the other the entire screen builds up in one shot on ff 1.0.8 but on ff 3.5 or 3.6 it builds up in parts
Do we need to change some configuration in firefox so that the curtain effect is eliminated, Is there a setting in firefox 3.5 that can make the rendering more like ff 1.0.8 or ff 2.
Is there any different that you suggest we do our dom manipulations or some ways that we should not do if that is the cause of the issue. This is very urgent since we are loosing users due to performance problemsA good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
The helpers at that forum are more knowledgeable about web development issues.<br />
You need to register at the mozillaZine forum site in order to post at that forum.<br />
See http://forums.mozillazine.org/viewforum.php?f=25 -
Any hints for preloading and classes?
Hi all on forum.
I have made a class that loads a website (pretty ordinary..)
but since all of the site is generated as Childobjects and
class-code, I was trying to make a preloader, but it wont
work.Seems that the class loads first and then generates the whole
site before the first frame is loaded (where my loader is)..
so any hints?use a preloader swf that loads your main swf.
-
Preloader and Loading External Flash issue
Source File:
http://cratle7.googlepages.com/loader.fla
View Swf File:
http://cratle7.googlepages.com/loader.html
I need to start an ad from Mochiads in the first frame and
then load a game in the second frame.
The current issues are:
1. After loading the ads, the movie runs into infinite loop,
not going to the second frame even if I use the following for the
first keyFrame:
MochiAd.showPreGameAd({id:"a87e30e0c9917e13",
res:"314x224"});
gotoAndPlay("load");
"load" is the label for second frame.
2. The game loaded into the swf file has problem with its
preloader. Basically it runs forever without an ending.It is
running in infinite loop while the original swf being loaded is
working properly if I access its url alone.
The problem can be seen at
http://cratle7.googlepages.com/loader2.swfHow are you setting your button events? On the main timeline
of your main movie? Can you show us your code for that?
Maybe you are looking for
-
Flashing Question mark on start up?
So when I try to start up my PPC G5, I hear the start up tone, and then it goes straight to a grey screen with a flashing question mark. I followed all the steps on Apple's website to resolve this, I held option and started up, and all that came up w
-
Tips for procesess controlled workflow
Hi everyone, We need your help. We are in SRM 7. We have to create a WF for SC. The approver of the item depend of the account assignment category (AAC). For example, we have a SC with 2 items. The first item has the AAC "Cost center" and the second
-
Create Transfer Order inbound using an Idoc
Hi all, I need some help on solving the error message- In our senario we want to send an Idoc (Create Transfer order ) from external system to SAP. Hence i have done mapping for the idoc but everytime i process the idoc- it comes with an error the s
-
Stripping Off Contacts from iPod
My boyfriend has a zillion contacts on his iPod and I'd like to get them quickly into my Address Book. The iPod is available but HIS address book is not... does anyone have a thought on how to pull his contacts off... maybe this involves third-party
-
Just became proud new owner of a Video iPod and would like to purchase a cmera connector so I can download pictures from my camera. Does anyone know if it's compatible with an Olympus e-500?