ActionScript 2.0 :: Loader ScaleContent And Preloader Does NOT Work Online?

Mar 16, 2008

i am truly a newbie in as2, i have test the script in local flash "Test Movie" everything was perfect, however when i try to put the files into my remote server, the getBytesLoaded()return to "0" and getBytesTotal() return to "-1" and the loader componentscaleContent=true function was not working also,until i press "F5" refresh button, then everything back to normal, i dont know what is going wrong with my scripti am using Flash CS3, as2.0 and ie7 and the dimension of my loader is 100x100 px

Code:
import mx.controls.Loader;
my_ldr.scaleContent = true;

[code]......

View 1 Replies


Similar Posts:


Actionscript 3.0 :: Preloader Not Working Online?

Aug 30, 2009

I have been on a hunt for weeks, on and off, but I can't seem to find a solution, or even a direction to look in. Long story short, I am using CS4, AS3, and I can not get any type of preloader to work when accessing it online. I have made my own, tried every example file I could find, but not one of them or the possible solutions I found for them will work.

The example files I have used all work from my computer, both by accessing the swf in a browser, or testing within Flash itself, but once I upload them they have all hit one problem or another. I have had the preloader not show up at all, and show immediately but not count down, depending on the type of preloader it is. The only amount of narrowing down I have been able to do is that I can make a preloading frame, but as soon as that frame tries to find out the % loaded of the overall movie, it stops working properly.At the moment I am simply using:

Code: Select alladdEventListener('enterFrame', preloader);
function preloader (e:Event){
if (framesLoaded == totalFrames){[code]...

I put a movieclip on the frame to show that something is happening, but I have not been able to successfully use code to allow for a loading bar, text %, etc.

View 5 Replies

ActionScript 3.0 :: Cannot Acces Loader.content On Online Swf, Works Fine Locally?

Jul 1, 2010

I have an image gallery with a thumbnail class which needs information about the content being loaded to be able to resize it appropiatly. Using.content.height and .content.width I can acces this information, however the swf (online) stops working when this code is encountered. No errors are thrown.piece of code from where it stops working

Code:
if (targetThumb.content.width > targetThumb.content.height) {
//scale the width

[code]......

View 1 Replies

ActionScript 2.0 :: Preloader Works In Flash But Not Online?

Jul 10, 2007

I just discovered a strange thing : I have a preloader in all my swfs. All work great online and when I test the swf or the preview in html exepted 1 : the first swf to be loaded called homepage.Here is the schema of the site : HTML page is linked ( with a enter btn)to the 1st swf called Homepage. No preloader gets visible and so, the swf takes a long time to load after clicking the enter button of the html page.Note : the html page is visible until the swf is totally loaded....

View 2 Replies

ActionScript 3.0 :: Preloader With Swf In Different Domains, Not Working Online?

Oct 1, 2009

I've an swf (loader.swf) hosted inthat justs loads a swf (movie.swf) hostedloader.swf has a preloader. When I execute the movie in flash, it works perfect, but when I upload the swf, the preloader doesn't works. I see 0% and after starts movie.swf normally.Here is the code of loader.swf

Security.allowDomain("www.dominioB.com");Security.allowDomain("www.dominioA.com");var contexto:LoaderContext = new LoaderContext();contexto.applicationDomain = ApplicationDomain.currentDomain;var

[code].....

View 2 Replies

ActionScript 2.0 :: Preloader Doesnt Work / How To Create A Preloader

May 23, 2002

i tried the tutorial that teaches you how to create a preloader....i followed the instructions and it still doesnt work! what's wrg?[code]on my first frame actions....i put the "gotoAndPlay (36)" cause i tried a previous preloader that took more than 1 frame and didnt want to change my button's "goTo" frames...but i figured it wont change anything..anyways, i put that line of code as my first frame action....by double clicking the timeline..then i create a symbol for that frame 1 and created an animation.

View 1 Replies

ActionScript 2.0 :: Won't Work When Online?

Sep 15, 2009

I've made a flash site and everything seems fine when I test it in flash and publish and run from my computer.However, when I upload it to my domain the external loader won't load my homepage initially. And I believe I've got a piece of script to tell it to do so.If you open up another page and return to the homepage it works fine.P.S I do have a preloader page prior to my homepageThe external loader script is:

ActionScript Code:
//------------Initialisation-----------\
var currentPage = ("home_btn")

[code].....

View 0 Replies

ActionScript 3.0 :: SetSize And ScaleContent Error

Nov 15, 2009

Having another problem I dont understand. What am I doing wrong? How am I suppose to define theses properties?
 
1119: Access of possibly undefined property scaleContent through a reference with static type flash.display:Loader.1119: Access of possibly undefined property maintainAspectRatio through a reference with static type flash.display:Loader.

View 1 Replies

ActionScript 3.0 :: UILoader.scaleContent Not Correct?

Aug 13, 2008

I'm new to Flash, but through some research I've found that I can use the UILoader component to load images from a URL. This works fine.I am having problems, though, with the scaleContent property. I have a UILoader component on the satge with an instance name of MainImage. Then I have a code similar to this in AS3:

Code:
MainImage.load(new URLRequest("IMAGE_URL_HERE"));
MainImage.width=800;

[code]......

View 2 Replies

Buttons Work In Test But Not Online?

Jun 25, 2009

When i test my movie the buttons work fine they get the URL that i want but then when i upload it to my page it does not get the URL. Am i uploading it wrong??? I Uploaded the SWF to the Server and posted it that way is there more involved or did i do something wrong in the actual movie. [URL]

View 5 Replies

Flash :: ScaleContent The Image Inside A TileList?

Oct 13, 2011

I have a TileList that loads its images from an XML, not all the images are the same size so they do not llook consistent wiyh the TileList.So i want the TileList to Scale the images it gets from the XML.

View 1 Replies

ActionScript 1/2 :: Loadvars Doesn't Work Online?

Jul 13, 2010

I've got a simple text file with a variable in it: &tekst=This is a test&
 
I'm loading it with LoadVars and let the text of one dynamic textfield be replaced by the 'tekst' variable.
 
stop();
var my_lv:LoadVars = new LoadVars();
my_lv.onLoad = function(success:Boolean) {
if (success) {

[Code]....
 
This works offline, but online the text isn't replaced? This should work right?
 
The code and the dynamic textfield are both on frame 1. The swf only has this one frame. The txt, swf and html file are at the same location.

View 2 Replies

Professional :: Links Work In Dreamweaver But Not Online?

Aug 12, 2011

I am trying to figure out why my flash files work correctly locally but don't after I upload them. I am using Mac Flash CS4 and AS2. (They were CS3 files originally)
 
When I use Safari to view the uploaded files and check the Activity window it shows the files load but they don't show up. I have a main swf and others are loaded into it using:

[Code]...

View 4 Replies

ActionScript 2.0 :: Loadvars Doesn't Work Online

Jul 13, 2010

I've got a simple text file which I want to read with LoadVars:

Code:
&tekst=This is a test&

I'm loading it with LoadVars and let the text of one dynamic textfield be replaced by the 'tekst' variable.

ActionScript Code:
stop();
var my_lv:LoadVars = new LoadVars();
my_lv.onLoad = function(success:Boolean) {

[code]....

This works offline, but online the text isn't replaced? This should work right? So what's wrong? All I've got is this one frame with code and a dynamic textfield.See attached files. The published files .html .txt and .swf are all in the same location.

View 8 Replies

Professional :: SWF File Do Not Work Accordingly When Uploaded To The Browser/online

Sep 2, 2010

iv been having this problem  with swf file iv created, it consist of images somewhat like a gallery.  when played offline it works smoothly, navigating frame to frame / image  by image. iv used AS3 to compose the animations in my flash file. now  my problem is when its uploaded online, the swf is shown but once iv  clicked on a link to proceed on showing the gallery it lags and  continously loop when it should actualy stop on a frame and wait till  the next button is clicked to procced to the next image. plus the  animation iv added in doesn't seem to working at all.

View 1 Replies

ActionScript 3.0 :: Loading Images Doesn't Work Online?

Aug 23, 2010

But it works fine locally.

I've created an extremely simple flash website. I need it to display some pictures and to keep the filesize down I want to load these images on demand. The images are hosted on my server in folders in the same directory as the website swf and the html file that initializes the swf.

I use the most rudimentary way of loading an image, it looks like this:

Code:
var loadStart:Loader = new Loader();
loadStart.load(newURLRequest("images/start/screenshotstart.jpg"));
startScreenshot.addChild(loadStart);

When I upload the website to the server it simply does not display the image, it's not loaded, the place where it's supposed to be is blank.

I've searched the site and there have been some threads with similar issues but the answers given just don't seem relevant. Something about cross domain policies, but all my images are on the same domain as the website swf.

View 2 Replies

ActionScript 2.0 :: Script Work Offline (In Browser N .swf) But Not Online?

Oct 1, 2006

I got this script

Code:
on (release) {
var lv:LoadVars = new LoadVars();
lv.onLoad = function(success:Boolean) {
if (success) {

[Code]...

View 1 Replies

ActionScript 2.0 :: When Page Is Online Scroll Sometime Doesnt Work

Apr 11, 2010

I'm editing this template but there is a problem, when the page is online the scroll sometime doesnt work.URL...I don't understand why, in the swf everything is perfect, but when the page is online if we test the scroll sometimes it simply doesn't work.[code]

View 1 Replies

ActionScript 2.0 :: [CS3] Load Data From A .txt File, It Doesn't Work Online

May 11, 2008

I'm using LoadVars to load variable data into flash from a .txt file.Pretty simple - when uploaded onto a server, I can see the data loaded but no one else can, not even other accounts on my computer!Could this be a CHMOD permission problem? Could this a problem with my AS? A problem with directories? A problem with URLs?Anybody have a good method that simply loads vars from a .txt file and can also do it online?

View 2 Replies

ActionScript 3.0 :: Parsing An Xml File Containing Some Namespaces - Online Tutorials Doesn't Work

Sep 20, 2011

I am totally new to actionscript (barely could set up the IDE environment for Linux). I have trouble parsing an xml file containing some namespaces. All the tutorials and samples i found online are not working for me. the file looks like this:

[Code]...

View 3 Replies

ActionScript 2.0 :: Buttons Disappear After Loading From Xml Online But Work Fine On Machine?

Aug 9, 2007

i am using flash 8 professional and making my portfolio site using xml with flash. when you click the red buttons on the right, thumbnails appear on the left (and when you click those, more thumbnails appear, and then you click those and the image appears.) on my machine it works properly, BUT when i upload it, the thumbnails appear and then erase themselves (all except the first two). it's inconsistent and totally weird. i changed some of the code, tried messing with the publishing settings, and re-uploaded and nothing changed. a friend who works at an actionscript company said it doenst make sense that it works differently on my machine than online. she also confirmed that the way i embedded the swf in the html is correct

View 3 Replies

Preloader With Random Image Loader?

Jul 9, 2009

I would like for the website preloader to recognize the random image loader that I have on frame 8 of my siteI have a basic preloader on frames 1 and 2(frame 1)

amountLoaded:Number=_root.getBytesLoaded()/root.getBytesTotal;
(frame 2)
if(_root.getBytesLoaded()==_root.getBytesTotal()}

[code]......

View 9 Replies

ActionScript 3.0 :: Loader Class - How To Add Custom Preloader

Feb 11, 2011

I have a loader which loads on a MouseEvent.Click. It uses this for multiple swfs
Actionscript Code:
myLoader.load(new URLRequest(event.target.name + ".swf"));
How can I add a custom preloader to this?

View 5 Replies

ActionScript 3.0 :: Passing A Variable To A Loader From The Preloader Swf

Feb 9, 2009

I have a preloader.swf which loads in media_player.swf which is fine. thats all working I also have the preloader loading in a variable from the webpage using flashvars and thats also fine i have that outputting onto a text box so i can see it but what im trying to do is set the source of a uiloader inside the media_player.swf to the variable that im loading into the preloader.swf.

View 1 Replies

ActionScript 3.0 :: Put A Basic Preloader And XML Loader Together In Same Frame?

Aug 11, 2009

What's the most efficient way of putting a basic preloader and XML loader together in the same frame?

Like, what works the best in terms of order of operation? Or if used at the same time should the XML loader have the preloader in the Progress portion or at the on complete portion?

View 0 Replies

ActionScript 3.0 :: Getting Preloader Working Using The Loader Class

Feb 4, 2008

I'm having trouble getting my preloader working using the Loader class, here's the code so far...

[Code]...

View 5 Replies

ActionScript 2.0 :: Creating A Preloader For The LOADER Component

Nov 19, 2008

I am creating a photo gallery using the loader component, however some of the jpgs are around 240k so I want to add a custom preloader. The issue I am having trouble with is... how do I set up a preloader that I have made to activate when the loader component loads a new jpg via the myLoader.contentPath = "sample.jpg"???

I am using a sliding thumbnail gallery w/ a static main image behind.

Anyone have a tip for settingup a preloader for the loader? Never had much luck making preloader.

View 1 Replies

ActionScript 3.0 :: Preloader For External SWF Loaded Via Loader Class

Oct 15, 2010

I'm hoping to implement a preloader on a main.swf that measures the bytes etc loaded in an external.swf. My two concerns are that 1) this just isn't possible? 2) I can't have multiple preloaders on the main.swf, which I would if I used one for the external .swf. I intend to try and explain this in the best way I can what I have done so far, as I personally feel this is quite a complex task.

Here's the basics:
I have an external .swf file, being loaded, using the following Action Script (3), in what I shall call, main.swf:

//---loader---
var swfLoader:Loader = new Loader();
addChild(swfLoader);
var swfURL:URLRequest = new URLRequest("nameofswftobeloaded.swf");
swfLoader.load(swfURL);
function loadHandler (event:Event){
var thumbsPanel:MovieClip = event.target.content;
addChild(thumbsPanel);

This works fine. The Action Script I use after this simply allows me to control the external .swf from the main .swf so isn't necessary.. I finish the loader, with this:
"swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadHandler);"
So, this all works fine. However, as the external .swf contains images, it doesn't load instantly. I therefore need some kind of preloader to show how much of the external .swf is loaded. However, I tried placing this in the external .swf itself and it failed miserably - for some reason it basically didn't preload and the completed phase of the preloader just appeared.

View 1 Replies

Actionscript 3 :: Adding An External .swf Preloader When Using Null Loader?

Mar 24, 2012

I'm trying to make a navigation system for my website where each nav item is loaded as an external .swf. I was able to get that functionality in place. The problem is I want to add a preloader for these external swfs as well.

The code I'm working with is this:

var loadedSWF:Loader = null;
/**
* Loads an SWF and adds it to container once complete
* @param file The URL to the SWF to load

[Code].....

View 1 Replies

ActionScript 3.0 :: Cannot Get The Preloader Assets To Update With The Loader Data?

Jan 15, 2009

I'm building a simple flash webpage using as3 in order to get accustomed to it. I've got some code for a preloader which, the end result works fine,but I cannot get the preloader assets to update with the loader data.To put it simply, I cannot get the code to update my text field that would display the percent done text.It only shows at 100 when it should go 1, 2, 3, 4...etc.Also I cannot get the bar_mc (just a simple bar graphic) to scale along with the percent loaded.

Code:
function handleLoadProgress(e:ProgressEvent):void {
while (percentDone < 100) {
totalBytes = loaderInfo.bytesTotal;[code]....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved