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.swf
How are you setting your button events? On the main timeline
of your main movie? Can you show us your code for that?
Similar Messages
-
FAQ: SWF's and loading external files in Flash Catalyst
How do I make the images in my Flash Catalyst project external to the published SWF?
You can choose whether images are embedded in your Flash Catalyst SWF, or loaded dynamically; this can help to keep your SWF's small. Simply right-click an image and chose "Externalize Image".
Answered by: Adam Cath.
See entire discussion.
How do I make the SWF I imported to Flash Catalyst load external files?
When importing a SWF, Flash Catalyst only pulls the SWF asset into your project. Many SWF's, such as slideshows and media players, rely on external data files, such as configuration files or media assets. If you would like to use such a SWF in Catalyst, then you will have to place these external resources into your Catalyst project as well as importing the SWF.
Let's assume you have a SWF source folder that contains your SWF file and all of the external files it needs. You can open the SWF file from this folder and it works fine. But, if you import the SWF into Catalyst, the Catalyst project doesn't display it correctly because it can't load the external files. Here's what you do:
1. Open your swf source folder, and copy all of the files/folders there except the SWF you imported.
2. In Catalyst, Run/Preview your project (Ctl/Cmd-Enter)
2. Note the file path to Main.html in your browser
3. In your OS, open the folder that contains /bin-debug/Main.html from above
4. Open the "src" folder
5. Paste all of the files from step 1 into the src folder.
6. Catalyst won't pick up that your project changed, so tweak it a bit (add a Rectangle), and save it.
7. Run your project. If it doesn't work, try closing and reopening your project and running again.
For an example, check out: Using an XML-driven SWF in Catalyst to create a slideshow.
See entire discussion.
Answered by: Bear TravisYou can make you swf a custom component with 2 states.
The first state will be empty and rename it "OFF" the second state will have your swf file and name it ON.
Then go back to your artboard/project, add your 2 buttons ON & OFF.
For the ON button add interaction "play transition to custom component ON"
For the OFF button add interaction "play transition to custom component OFF"
Here is an example swf_control -
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.
-
Mavericks and unmounting external drive issues upon sleep
Greetings fellow Mavericks users,
I'm hoping someone here can provide some insight as to how to correct the issue I'm experiencing.
Little background:
I was using 10.6.8 for years on a 2008 Mac Pro. I saw no reason to update the OS until I recently acquired a USB 3.0 PCI card and an external drive. In order to use my new hardware, I had no choice but to upgrade to a new version of OSX. Rather than spend money, I took advantage of the free 10.9.2 upgrade available for my machine. The upgrade went surprisingly well with no major hiccups or problems encountered. Yes, a few apps and programs I had running prior to the upgrade were no longer compatible but in the grand scheme of things, my Mac Pro was still alive and kicking along with my most important programs and data. In fact, the upgrade to 10.9.2 fixed a sleep issue I had with 10.6.8 which required the use of an app called PleaseSleep. I don't need that app anymore as the machine goes to sleep and wakes up fine.
Now, on to my dilemma. Prior to the upgrade, I was using an external USB 2.0 drive to house media that I'd share between multiple network devices around the house via SMB (AFP stinks in this regard, hence my refusal to use it); i.e. BoxeeBox. I had run out of space on the USB2 drive hence the need to move everything to my new external USB3 drive that's connected to an internal USB3 PCI controller. The first problem I ran into was that Mavericks now uses Apple's own iteration of Samba (SMB2). After a bit of head scratching and research, I used an application called SMBUp as a replacement to Apple's SMB implementation. That's one problem solved. The next thing that I kept running into was that whenever the machine would sleep then wake up again, I'd get an annoying "Disk was not properly ejected" error message. After more head scratching and research, I've discovered that this appears to be a bug in OSX and how the OS interfaces with 3rd party USB controllers. Fine. I purchased a small app called Jettison which for all intents and purposes unmounts any external drives automatically before allowing the system to sleep. This is where my long-winded (apologies) description above starts to come into play. Now that I have the SMB issue figured out and am using Jettison to eject this USB3 drive when the machine sleeps, I've discovered that I'll still get the "Disk did not properly eject" error message despite Jettison IF there are users connected to the USB3 media drive. Is there a work around this where I can either get Jettison or Mavericks to kill the network connection to the share drive before it's unmounted prior to the machine sleeping?
TL:DR?
Using Jettison with Mavericks, I'm still getting "Disk did not eject properly" when waking the machine from sleep mode. Any way to fix this?
Thanks in advance for any help/suggestions provided.I had the same problem with Time Machine and solved it by enabling "Enable Power Nap" in Energy Saver:
System Preferences...
Energy Saver
Restore Defaults
Check "Enable Power Nap: While sleeping, your Mac can back up using Time Machine and periodically check for new email, calendar, and other iCloud updates."
2013 21.5 iMac
OSX Mavericks
Seagate 1 TB slim USB 3.0 (power is drawn from USB port), formatted to Mac Journaling File System -
Preloader whilst loading external .jpg
This is the script I use to load external .jpgs into a site
btn1.onRelease = function (){
loadMovie("Bike.jpg", _root.photo.empty);
_root.stick.gotoAndStop(80);
How would I create script so that it creates a sepaprate
preloader whilst each image is loading.for something like this it's best to use the MovieClipLoader
class, rather than loadMovie() - doing so will allow you to use the
onLoadPrgress handler to update the preloader while it's being
loaded. it would go something like this: -
I'm getting this error from my files while testing movie:
Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load
Never Completed.
there are two swf: container.swf is the loading controller
that loads an external swf called "page1.swf".
Please forwards any related topics or if you have similar
issues.... thanks,
my code:Got this one figure out. Really very simple when it comes
down to it. Hope the solution applies to everyone.
This problem (Error 2036: Load not completed) arises for me
when I'm testing my clips at download speed. What I do is hit
ctrl-enter twice to simulate that, and the error(s) pop up.
The program sees things this way: ctrl-enter detected (run
video, commence loaders, run code, etc), ctrl-enter detected while
running video (stop running video, reload from start at DL speed).
When the video is stopped, any currently loading files are cut off,
and the clip is started at simulation speed. As there does not seem
to be any built in 'cutting off work in progress error' ignoring
for the simulation function, I get an error that our old loaders
were cut off mid-load to start up the simulation.
So, it doesn't seem to be a problem. Similarly, if I let my
video finish loading completely before I start my simulation, I
don't the this (these) errors.
Hope this works,
Mike -
Chose and load external sound in ios app
i want to make a sound player app that user can chose music in their phone and play it with this app. so now i want to know which class can do it?
I had the same issue, and modified my domain policy file as specified in http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html#_Configuring_URL_M eta-Policies but the loader is not loading the file. Any ideas on how to fix this issue?
-
Preloader and loading MovieClips Question
I've been making seperate files for each of my pages which are around a megabyte in size for my webpage, and I was wondering is there a way to make a preloader all in one file, and when it loads the page it goes straight to the preloader instead of the screen going white for a few seconds while it loads? If so I played around with it and lemme know what's wrong with the code:
I added this section of the code before all the vars for the actual site, but it still didn't work the way I wanted it to
import com.greensock.TweenLite;
import com.greensock.easing.*;
var scrollTimer:Timer = new Timer(2000,1);
scrollTimer.addEventListener("timer",scrollShow);
this.addEventListener(Event.ENTER_FRAME,myProgress);
scrollGallery_mc.alpha = 0;
function scrollShow(e:TimerEvent):void {
TweenLite.to(scrollGallery_mc,2,{alpha:1});
function myProgress(e:Event):void {
var loaded:Number = this.stage.loaderInfo.bytesLoaded;
var total:Number = this.stage.loaderInfo.bytesTotal;
var pct:Number = loaded/total;
load_mc.loader_mc.scaleX = pct;
preload_txt.text = "Loading: " + (Math.round(pct*100)) + "%";
if (pct == 1) {
myComplete();
function myComplete():void {
startPage();
this.removeEventListener(ProgressEvent.PROGRESS,myProgress);
this.removeEventListener(Event.COMPLETE,myComplete);
load_mc.visible = false;
preload_txt.visible = false;
scrollTimer.start();
play();
stop();
Second question is there a way to load a movie clip object using as3 as an a separate interactive object without directly adding it to the stage in the fla file?It's a stupid simple intro clip with no depencies to the application. The crazy thing about is, that it's loads the most time... So i think i make something wrong? I start loading after the preloader was added to stage.
-
Hi,
On my website i have a loade.swf and then a main flsh file
containing the site. THe loader loads the main.swf in using
moviecliploader and events, to load it into a movieclip on the ame
frame.
The main.swf loads fine but i use actionscript to give my
buttons functions which seems to be ignored.
If i view the main.swf on it's own:
www.ccut-designs.co.uk/main.swf
All works fine as planned.
If i view as it's meant to work
www.ccut-designs.co.uk
The buttons don't work and other bits of actionscript fail to
work too.
Any help here would be great as im stumped
Thanks
harryHow are you setting your button events? On the main timeline
of your main movie? Can you show us your code for that? -
Error trying to use load-externs in a module project
Hi:
I am trying to implement modules in my application. I have
read the documentation and learned that if i want to reduce the
size of my modules i have to use the link-report and load-externs
compiler options (the first in the main project and the second in
the modules)
This is the line that i use in the "Additional compiler
arguments" section of the the main project:
-locale en_US -use-network=true -optimize=true
-link-report=C:\report.xml
The file is created in the specified location but......
when i try to use report.xml in the load-externs argument of
the module project i get the next error:
"could not open 'C:\report.xml' while processing
configuration variable 'load-externs'
The line tha i use is this:
-locale en_US -use-network=true -optimize=true
-load-externs=C:\report.xml
I am using Flex Builder 2.01
I'll appreciate your help
Thanks
GBYHi
This answer is 3 1/2 years too late, but someone else might find it helpful.
Saw your question and was looking for the same answer. Eventually translated this spanish site to english.
Solution: you need to copy the linkReport.xml to the root folder of your module project i.e. the same directory as
your [ModuleName].mxml file.
Good luck
Brian -
Any examples for loading a Flash video player into a JavaScript layer?
I want to build a web page with a button that when clicked opens up a javascript layer and loads a flash player inside that layer. And that layer would need a close button. Does anyone know of any tutorials to help me do this?
Thanks!Similar subject discussed here:
http://board.flashkit.com/board/showthread.php?t=819704
follow thread down to responses by Video Man (aka Adninjastrator) for simple javascript hide/show solution.
That example needed to be launched from Flash.. so you see the big blue button.
but just as well could be launched from HTML. sample page here:
http://www.hiesequim.com/education_center_test.html
view the source code to see how the overlay and video player are positioned using CSS (#mediaspace2).
There are a number of ways to implement show/hide, so Google more more info.
Best of luck,
Adninjastrator -
I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?
This is the error message(s) I am receiving: "TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/removeChild()
at index_fla::MainTimeline/Down3()"
import nl.demonsters.debugger.MonsterDebugger;
var d:MonsterDebugger=new MonsterDebugger(this);
stage.scaleMode=StageScaleMode.NO_SCALE;
stage.align=StageAlign.TOP_LEFT;
stage.addEventListener(Event.RESIZE, resizeHandler);
// loader is the loader for portfolio page swf
var loader:Loader;
var loader2:Loader;
var loader3:Loader;
var loader1:Loader;
// resize content
function resizeHandler(event:Event):void {
// resizes portfolio page to center
loader.x = (stage.stageWidth - loader.width) * .5;
loader.y = (stage.stageHeight - loader.height) * .5;
// resizes about page to center
loader3.x = (stage.stageWidth - 482) * .5 - 260;
loader3.y = (stage.stageHeight - 492) * .5 - 140;
/*loader2.x = (stage.stageWidth - 658.65) * .5;
loader2.y = (stage.stageHeight - 551.45) * .5;*/
addEventListener(Event.ENTER_FRAME, onEnterFrame,false, 0, true);
function onEnterFrame(ev:Event):void {
var requesterb:URLRequest=new URLRequest("carouselLoader.swf");
loader = null;
loader = new Loader();
loader.name ="carousel1"
//adds gallery.swf to stage at begining of movie
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader.load(requesterb);
} catch (error:SecurityError) {
trace(error);
addChild(loader);
loader.x = (stage.stageWidth - 739) * .5;
loader.y = (stage.stageHeight - 500) * .5;
// stop gallery.swf from duplication over and over again on enter frame
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
//PORTFOLIO BUTTON
//adds eventlistner so that gallery.swf can be loaded
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
function Down(event:MouseEvent):void {
// re adds listener for contact.swf and about.swf
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
//unloads gallery.swf from enter frame if users presses portfolio button in nav
var requester:URLRequest=new URLRequest("carouselLoader.swf");
loader = null;
loader = new Loader();
loader.name ="carousel"
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader.load(requester);
} catch (error:SecurityError) {
trace(error);
addChild(loader);
loader.x = (stage.stageWidth - 739) * .5;
loader.y = (stage.stageHeight - 500) * .5;
removeChild( getChildByName("about") );
removeChild( getChildByName("carousel1") );
// remove eventlistner and prevents duplication of gallery.swf
MovieClip(root).nav.portfolio.removeEventListener(MouseEvent.MOUSE_DOWN, Down);
//INFORMATION BUTTON
//adds eventlistner so that info.swf can be loaded
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
function Down1(event:MouseEvent):void {
//this re-adds the EventListener for portfolio so that end user can view again if they wish.
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
var requester:URLRequest=new URLRequest("contactLoader.swf");
loader2 = null;
loader2 = new Loader();
loader2.name ="contact"
loader2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader2.load(requester);
} catch (error:SecurityError) {
trace(error);
addChild(loader2);
loader2.x = (stage.stageWidth - 658.65) * .5;
loader2.y = (stage.stageHeight - 551.45) * .5;
// remove eventlistner and prevents duplication of info.swf
MovieClip(root).nav.info.removeEventListener(MouseEvent.MOUSE_DOWN, Down1);
//ABOUT BUTTON
//adds eventlistner so that info.swf can be loaded
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
function Down3(event:MouseEvent):void {
//this re-adds the EventListener for portfolio so that end user can view again if they wish.
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
var requester:URLRequest=new URLRequest("aboutLoader.swf");
loader3 = null;
loader3 = new Loader();
loader3.name ="about"
loader3.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader3.load(requester);
} catch (error:SecurityError) {
trace(error);
addChild(loader3);
loader3.x = (stage.stageWidth - 482) * .5 - 260;
loader3.y = (stage.stageHeight - 492) * .5 - 140;
removeChild( getChildByName("carousel") );
removeChild( getChildByName("carousel1") );
// remove eventlistner and prevents duplication of info.swf
MovieClip(root).nav.about.removeEventListener(MouseEvent.MOUSE_DOWN, Down3);
stop();Andrei1,
Thank you for the helpful advice. I made the changes as you suggested but I am receiving a #1009 error message even though my site is working the way I wan it to work. I would still like to fix the errors so that my site runs and error free. This is the error I am receiving:
"TypeError: Error #1009: Cannot access a property or method of a null object reference."
I'm sure this is not the best method to unload loaders and I am guessing this is why I am receiving the following error message.
loader.unload();
loader2.unload();
loader3.unload();
I also tried creating a function to unload the loader but received the same error message and my portfolio swf was not showing at all.
function killLoad():void{
try { loader.close(); loader2.close; loader3.close;} catch (e:*) {}
loader.unload(); loader2.unload(); loader3.unload();
I have a question regarding suggestion you made to set Mouse Event to "null". What does this do setting the MouseEvent do exactly? Also, since I've set the MouseEvent to null do I also have to set the loader to null? e.g.
---- Here is my updated code ----
// variable for external loaders
var loader:Loader;
var loader1:Loader;
var loader2:Loader;
var loader3:Loader;
// makes borders resize with browser size
function resizeHandler(event:Event):void {
// resizes portfolio page to center
loader.x = (stage.stageWidth - loader.width) * .5;
loader.y = (stage.stageHeight - loader.height) * .5;
// resizes about page to center
loader3.x = (stage.stageWidth - 482) * .5 - 260;
loader3.y = (stage.stageHeight - 492) * .5 - 140;
//adds gallery.swf to stage at begining of moviie
Down();
//PORTFOLIO BUTTON
//adds eventlistner so that gallery.swf can be loaded
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
function Down(event:MouseEvent = null):void {
// re adds listener for contact.swf and about.swf
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
//unloads gallery.swf from enter frame if users presses portfolio button in nav
var requester:URLRequest=new URLRequest("carouselLoader.swf");
loader = new Loader();
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader.load(requester);
} catch (error:SecurityError) {
trace(error);
this.addChild(loader);
loader.x = (stage.stageWidth - 739) * .5;
loader.y = (stage.stageHeight - 500) * .5;
// sure this is not the best way to do this - but it is unload external swfs
loader.unload();
loader2.unload();
loader3.unload();
// remove eventlistner and prevents duplication of gallery.swf
MovieClip(root).nav.portfolio.removeEventListener(MouseEvent.MOUSE_DOWN, Down);
//INFORMATION BUTTON
//adds eventlistner so that info.swf can be loaded
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
function Down1(event:MouseEvent = null):void {
//this re-adds the EventListener for portfolio so that end user can view again if they wish.
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
var requester:URLRequest=new URLRequest("contactLoader.swf");
loader2 = null;
loader2 = new Loader();
loader2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader2.load(requester);
} catch (error:SecurityError) {
trace(error);
addChild(loader2);
loader2.x = (stage.stageWidth - 658.65) * .5;
loader2.y = (stage.stageHeight - 551.45) * .5;
loader.unload();
loader2.unload();
loader3.unload();
// remove eventlistner and prevents duplication of info.swf
MovieClip(root).nav.info.removeEventListener(MouseEvent.MOUSE_DOWN, Down1);
//ABOUT BUTTON
//adds eventlistner so that info.swf can be loaded
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
function Down3(event:MouseEvent = null):void {
//this re-adds the EventListener for portfolio so that end user can view again if they wish.
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
var requester:URLRequest=new URLRequest("aboutLoader.swf");
loader3 = null;
loader3 = new Loader();
loader3.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader3.load(requester);
} catch (error:SecurityError) {
trace(error);
addChild(loader3);
loader3.x = (stage.stageWidth - 482) * .5 - 260;
loader3.y = (stage.stageHeight - 492) * .5 - 140;
loader.unload();
loader2.unload();
loader3.unload();
// remove eventlistner and prevents duplication of info.swf
MovieClip(root).nav.about.removeEventListener(MouseEvent.MOUSE_DOWN, Down3);
stop(); -
Loading External SWF and setting variables
Hello Everyone.
I'm sure you are all a where of the FlashVars attribute for
Flash embeds which holds variables for SWF's when they are
rendered. I'm attempting to load an External SWF dynamically
from within my own SWF and need to provide it with the values
normally stored in the FlashVars. For the example below I
wait until the External SWF is completely loaded using the
onLoadInit event from moviecliploader and then i attempt to
set the required variables that the loaded SWF needs. This works
great in test and debug mode (ie. Test Movie and Debug Movie
from the Control menu), but when i publish my FLA to SWF and run
the SWF the variables will NOT get set in the loaded External SWF.
From my readings ive people have mentioned that the player is only
able to access Methods of an External SWF. If this is the case then
how do they expect people to set the FlashVars of dynamically
loaded SWFs? I investigated the loadVariables procedure as well and
had the same results in test mode and was wasn't reliable because
of timing issues.
The sample source is below... if anyone has any ideas or has
come across this issue before, I would really appreciate some
insight.
Thank you in advance for your time.
var loader_mc:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();
loader_mc.addListener(mclListener);
mclListener.onLoadProgress = function(target_mc:MovieClip,
numBytesLoaded:Number, numBytesTotal:Number) {
// DO NOTHING
mclListener.onLoadComplete = function(target_mc:MovieClip) {
// DO NOTHING
mclListener.onLoadInit = function(target_mc:MovieClip) {
// WORKS IN TEST MODE NOT IN PUBLISH/SWF MODE
target_mc._root.param1 = "value1";
// WORKS IN TEST MODE NOT IN PUBLISH/SWF MODE
_level0.container_mc.param1 = "value1";
this.createEmptyMovieClip("container_mc",
this.getNextHighestDepth());
container_mc._lockroot = true;
loader_mc.loadClip("somecoolflash.swf", container_mc);I've tried that as well and it behaves the same as onLoadInit
... Works when i test but doesnt when i publish to a swf. I think
this is security related and the flash player just cant write to a
loaded swf and set variables. -
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 -
Hello.
I am having a weird problem when trying to test a movie or publish preview -> flash on mac with Leopard os.
The result is a blank movie with the usuall "movie not loaded" if u right click on it and the output returns the "Error opening URL 'the path of the swf here'.
This has nothing to do with loading external files or something like that. It happens even in blank movies and it gives the same error if I try to open a swf from flash ide.
I can publish the project or export the movie with no problem at all.
I can preview the movie in html. I can run all the swf files in my hard disk, network, usb stick, dvd etc., but when I try to open any of these files from flash ide I got that stupid error.
Its not something that stops me from working in flash ide but its slow to export movie any time I want to test it.
Things that I've tried so far but nothing worked:
Update the flash cs4 to the latest version
Update the flash players
Restored the release flash player as default player (I am using as default the debug player)
Cleared the preferences
Move the flash cs4 folder to another location in hd
Saved the fla document first before testing the movie (in different places with or without spaces in document name or folder)
Give read & write permissions for everyone for flash.app, players and for fla files when saved first before test movie
Unistall and install the application 3-4 times.
Test every as version just in case.
Also I've checked the folders when testing movie and I can see that it creates an swf file, which I can run it outside flash ide (the one that the flash ide player cannot load) with no problem.
The mac os has the default set up as it came. Nothing chnaged in permissions or security settings.
Thanx in advance.In this particular example I am using this code to start the
xml file load:
// now load the XML file that contains the content strings
var sXMLFile:String = "xml/home.xml";
var xmlContent:XML = new XML();
xmlContent.ignoreWhite = true;
xmlContent.onLoad = onXMLLoadComplete;
xmlContent.load( sXMLFile );
But I don’t think the code is the problem here . This
happens on every file I load when I am using a relative path to the
content, regardless of how I load the content (XML object,
loadMovie, MovieClipLoader, etc…) and the same code executes
perfectly on every other machine in the office(Mac and PC).
I’m more concerned with the semi-colons and .swf filename
that Flash is putting into my relative path on the error message.
Is that normal?
Maybe you are looking for
-
How do I correct error messages MSVCR80.dll and windows error 7 126?
After installing the latest itunes update, I received two error messages: MSVCR80.dii and windows error 7 126? I cannot access itunes at all and am eager ti fux these errors. If Apple itunes is at fault I sure wish they would fix the problem. At
-
My iMac doesn't want to stop automatically
hi! since a month my iMac doesn't stop automatically, I have to use the botton on the back.... Is there anyone can help me?
-
External Procurement Scenario - External Range for GOA in Sourcing Cockpit
Hi all, I'm a question for you about Sorcing Cockpit. I have the following scenario (SRM 5.0 - ECC 6.0): 1) PR created on ECC and trasnferred to SRM in SOCO 2) SC converted into a GOA and distributed to back end system I want to allow Buyer, that use
-
We have cracked our skulls because of this one, and now we are afraid that this is just a really dumb question. Simple scenario (and this also happens with other scenarios of course): In RoboHelp 7 HTML: 1) create a new Microsoft HTML Help project 2)
-
Filter subtypes in distribution model
Hi, we are using change pointers and the report RBDMIDOC to create Idoc HRMD_A from those change pointers, in order to send that data to an external payroll. We already filter some infotypes in the distribution model, but we want to filter some subty