ActionScript 3.0 :: Error - Swf File Plays Differently Depending On Location?

Sep 16, 2010

I've run into a strange error and I was wondering if anyone had experience with this.I'm working on a flash platforming game and I recently released a demo. I was having a problem with the getting the file to play correctly when I noticed an error:The file plays differently depending on where the file is saved. For example:Platform Explorer (http://jrjellybeans.net/platformExplorer.swf).This file runs fine. Platform Explorer (http://jrjellybeans.net/flashGames/platformExplorer.swf).This file opens up the level editor. Yet, I make no call to the level editor anywhere in this particular file.The thing is that the files are EXACTLY the same. Just saved in different locations.

View 2 Replies


Similar Posts:


Flex :: Layout Out A Component Differently Depending On The Amount Of Space Available?

Jul 8, 2010

I am trying to build a sort of button bar in Flex - something like the horizontally laid-out bookmark bar you'd see in most modern web browsers, where when you run out of horizontal space, you can click on the arrows button(>>) to get a drop-down to see the rest of the items which did not fit into the horizontal space. Problem is, how can I know how much horizontal space is available for me to tell how many buttons to render into the button bar? This need doesn't appear to be support by the general layout manager framework.

View 1 Replies

ActionScript 3.0 :: URLLoader Generates Error #2048 Depending On File Contents

Jun 7, 2010

I've developed a preloader for an ActionScript 3 application that uses URLLoader to load an encrypted swf. This has been tested on different OSs, Flash Players and browsers and everything works as expected except for a series of PCs being used by a colleague on a corporate network. The PCs at fault use Flash Player 10.0.22.87 with IE6 on WinXP and get security sandbox error #2048 depending on the contents of the file being loaded! Some of the tests and results include:removing 99% of the contents but keeping first 6k (works)replacing contents with 4 bytes 00 (works)inserting 16 bytes: EF BB BF <html></html> at beginning of file (works)inserting 16 0s at the beginning of the file (fails)xor FF all bytes (fails)I've tried other tests such as different file extensions, Security.allowDomain(¯), crossdomain.xml, Security.loadPolicyFile(¦), dataFormat = URLLoaderData Format.BINARY etc but I think these are all irrelevant due to the fact that the app sometimes works.The code is just the standard new URLLoader(), adding event listeners, then calling load(new URLRequest(¦)). The test app doesn't include the loadBytes() so this isn't the issue either.

The PC at fault could be behind a firewall or using a proxy. At this stage my only theory is that their antivirus, firewall or proxy is examining the contents and sometimes decides to intervene, perhaps with a redirect. This would also explain why (according to the web server logs) the files are being requested even though the security sandbox error is generated. However, this does not explain why Flash generates the error in the first place, depending on the contents.It's not possible for me to visit on site or get them to modify their settings or configuration, but I can ask them to run various Flash Apps for testing.URL...I can come up with a workaround (such as ensuring the file always starts with dummy <html> tags and then strip them before decrypting), but I'd prefer to get to the bottom of this issue if possible to be confident it won't occur again; this is for a Facebook application so it's possible it will be used in a large variety of environment

View 11 Replies

ActionScript 2.0 :: Fade In/ Out Depending On Location?

Mar 2, 2010

I am looking for a way to fade in and out a movieclip when you are at the location of the container (where the external swf is loaded) or around the container (margin) but i cant get it to work as i would like to.example of my goal is:if location _x = 1600 (with a marging of 200px) and location_y = 0 (with margin of 200px) container.about is tween alpha 20 to alpha 100else container.about = alpha 20i have a simple script that i can put in every container mc but this worksonly within the size of the movieclip and works on de position of the mouse on the screen, so actually not what i want. Here it is:

Code:
onClipEvent(enterFrame){
if ( this.hitTest(_root._xmouse,_root._ymouse,false)){

[code].....

View 3 Replies

ActionScript 2.0 :: Set The _alpha Property Of MC1 And MC2 Depending On The Location Of The Button On The Slider

Mar 27, 2004

In the library, I have a movie clip - DraggableButton that has OnPress with StartDrag with parameters and OnRelase with StopDrag. I have a slider with this Draggable button and a bar to slide the button on. I also have two movie clips Clip1 and Clip2. In my main movie I have two instances MC1 and MC2 of Clip1 an Clip2. I have an instance of the Slider. I want to set the _alpha property of MC1 and MC2 depending on the location of the button on the slider.

I think I need to save the location (_x) of the button on the slider in a variable in the OnRelease even of DraggableButton and use this variable in the SetProperty method. I need to know in which event and which object's event should I use the SetProperty method. Or if what I am thinking is not correct what do I need to do?

View 4 Replies

Actionscript 3 :: Compilation Error: The Name Of Definition 'Main' Does Not Reflect The Location Of This File

Apr 25, 2011

I have a movie clip called turret that is on the screen and is instanced as Turret, I have a movie clip called bullet and that is in the library exported for AS "bullet" no quotes. Here is the website [URL] My frame (main) class is called du34

[Code]....

View 3 Replies

ActionScript 3.0 :: Compiler Error 5008 : The Name Of Definition 'Menu' Does Not Reflect The Location Of This File

Feb 26, 2010

error 5008:It says the name of definition 'Menu' does not reflect the location of this file.But I have 3x checked it and it is in the correct place.

View 1 Replies

ActionScript 3.0 :: Flash File Plays One And Stops In End And Only Plays Again

Dec 11, 2011

I want my flash file plays one and stops in the end and only plays again if  play again button is pressed.How do i do it?

View 1 Replies

Professional :: Button File Opens In Saved Location / But Won't Open In New Location

Aug 21, 2011

I created a simple button that displays an error messeage: "error opening 'url" when I test the movie, but does play and opens in browser after publishing. However, it won't open in the browser in a different location. I pasted the html code in a web page but it doesn't work there nor opens in the browser in a differnet location from where it was originally published and saved. Why is that?

View 13 Replies

ActionScript 2.0 :: Swf File Behaving Differently On Web?

Sep 22, 2007

this code for a thumbnail gallery, the data is loaded from an XML file, [URL].. All the thumbnails are loading on the stage correctly and in the correct order when playing movie locally, but as soon as I try Simulate Download or view the movie from the web page the thumbnails lose there order.

[Code]..

View 1 Replies

ActionScript 3.0 :: 5001 Error " The Name Of Package 'flashdev' Does Not Reflect The Location Of This File" ?

Dec 22, 2009

5001: The name of package 'flashdev' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file.this is the error i get.Ill tell you what ive done.first i created a .as file.i have created a package like:

package flashdev{

//code here
public class ooclass{}

}

then i create a .fla file and sai

import flashdev.ooclass

defined a new() class here

.... and then i get this error. I thwen tried to set folder locations within flash cs3 and still couldnt get it to work.What can i be doing wrong

View 2 Replies

ActionScript 3.0 :: Output Error:the Name Of The Package "greet" Does Not Reflect The Location Of This File?

May 23, 2010

output error: The name of package 'greet' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:Documents and SettingsIgalMy DocumentsmeirangreetGreeter.as
 
I keep on recieving this output error although my source path is set to C:Documents and SettingsIgalMy Documentsmeirangreet.
 

View 1 Replies

ActionScript 3.0 :: Stage Accessed Differently With The GetBounds Method In An External File Than In The Timeline?

Aug 2, 2011

The following piece of code works in the timeline:

var ball:Sprite = new Sprite;
addChild(ball);
ball.graphics.beginFill(Math.random()*0xff0000);[code].....

Is the stage accessed differently with the getBounds method in an external file than in the timeline?

View 3 Replies

ActionScript 2.0 :: Replace The Xml File With Another Xml File Depending On Button Pressed?

May 1, 2008

I'm doing my final year uni project (1 week left) and having trouble with some actionscripting and xml.Basically I have all the usual AS coding sorted out for my XML data and it's working fine but what I want to do is replace the xml file with another xml file depending on what button (I have 25 different files/buttons to do) is pressed.

So button 1 will put in: xmlFile.load("button1.xml")Button 2 will replace the above scripting with: xmlFile.load("button2.xml")

Is this possible? I don't want to create 25 instances/frames of the full xml text as the xml datat is displayed on an animation and it would significantly increase the file size.

View 2 Replies

ActionScript 2.0 :: LOADING FILE. File Plays Before Loding Is Complete?

Sep 5, 2009

I have a "loader.swf" after which my "main.swf" loades. I have used a loaderPro v3 (AS2) component. Doing that was easy but then when it starts loading, even before the loading completes the main.swf starts playing in the background. And i have no coding in my actions panel.

View 2 Replies

ActionScript 2.0 :: CS3 FileReference - Know The 'file Path' When An User Selects A File From 'any Location' On His Hard Disk

Mar 7, 2009

I want to know the 'file path' when an user selects a file from 'any location' on his hard disk. I like to know is it possible to fetch the entire file URL instead of the file name alone?

Code:
var fileRef= new FileReference();
fileRef.addListener(mylistener);
mylistener.onOpen = function(file){
[Code]....

View 7 Replies

ActionScript 1/2 :: Load An External .swf File Into A Precise Location On The Stage Of Existing Flash File

Nov 20, 2009

All I'm trying to do is load an external .swf file into a precise location on the stage of my existing Flash file. I've spent an hour and a half on this site search and found nothing. What do I add to my loadMovie command to place the file at specific x,y coordinates?

View 3 Replies

ActionScript 3.0 :: No Location In Type Not Found Error?

Nov 11, 2011

I'm trying to compile some code and I keep getting a "Type was not found or was not a compile time constant" error, but it doesn't give me a location. When I right-click the error and select "Go to source" nothing happens. Anyone know what could be causing something like this? Or where I should look if there is nothing in the location field of the error report? It's really perplexing.

View 4 Replies

Flash Error 5001n: Name Of Package Does Not Reflect Location?

Aug 29, 2010

I'm getting an error on Flash that I've never run in to before.

5001: The name of package 'Document'does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:Work2009-2010FlashTestsDocument.as

The fla is called TestEvents1... and that's all the info I think is related.What's happening here?

View 1 Replies

ActionScript 3.0 :: Error 5001 Does Not Reflect Location Of Package

Feb 29, 2012

So I have a shell.fla file, on the same level as that there is a core_classes folder. Inside of the core classes folder is a core_initialize.as and a xml, buttons, and loaders folders. Inside of the loaders folder is swf_loaders.as
Inside of the buttons folder is menu_buttons.as

The package name for menu_buttons.as is core_classes.buttons The package name for swf_loaders.as is core_classes.loaders

When I run my Shell.fla I get the 5001 error Package name 'core_classes.loaders' does not reflect the location of this package. Please move this to the file. 'core_classes/loaders/swf_loaders.as'.

But where it lists the location of the error in the compile errors box it lists 'core_classes/loaders/swf_loaders.as'

I've checked the spelling everything is spelled right, I made sure I didn't mix up the two package names..

View 1 Replies

ActionScript 3.0 :: Loading Txt File Depending On Which Country?

Feb 21, 2010

Question: Is it possible to let flash load different files with an if-statement depending on from where the file is entered?My plan is to publish the swf with an html file. So theoretical as there are many different locations for IP adresses it should be possible to have the if-statement check, from where my file is opened

View 3 Replies

Resize Swf File Depending On Screen Size?

Jun 26, 2010

I have a website with a large .swf file. However when people with smaller screens view the website, I would like the .swf (which takes up the entire screen) to resize to fit on exactly. Just like how on most flash sites when viewed they fit the screen perfectly, however also then when viewed on computers with smaller screens they resize and still fit perfectly again.

View 2 Replies

ActionScript 3.0 :: Getting Error 5001: The Name Of Package 'VectorModelStudy12511' Does Not Reflect The Location?

Jan 26, 2011

i'm trying to start organizing projects i have this folder structure: working>flash>as3Study>VectorModelStudy12511>src

my document is in VectorModelStudy12511 i have class paths to VectorModelStudy12511 and src the top of my document looks like:

[code]...

and i'm getting this error:

5001: The name of package 'VectorModelStudy12511' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:Users obDesktopProjectsWorkingFlashAS3Stu dyVectorModelStudy12511VectorModelStudy12511Docu ment.as

what am i doing wrong????

View 4 Replies

ActionScript 3.0 :: Resize A Swf File Depending On Any Screen Size?

Jun 14, 2010

I have a website made of swf files. The swf files are contained in an HTML body that I created with Dreamweaver CS4. I want the website or each page of this site or each swf file to resize depending on any screen or window size. I am using Flash CS4 and AS3. You can look at my site www.ealba.net and you will see that the size is too big for a 15 inches screen or smaller. I think there is a code for it... a code that adapt the website to any screen size.

[URL]

View 2 Replies

ActionScript 3.0 :: Have A Swf File That Plays Frame 1 Of Another Swf?

Mar 15, 2008

I need an example of how to have a swf file (empty swf, just has code in it) that plays frame 1 of another swf, And once that swf has played for its duration I would like to click on a button, to open another swf and remove the previous one.

View 7 Replies

Published File Plays Very Slow?

Sep 7, 2009

The Flash file that I've attached plays very slow on my other, older computers.  It plays fine on mine, but these older computers play other flash files (i.e adobe.com) fine.  I want to know if I'm missing something here as to how making this play efficiently.  I understand that I am using photographs - rasterized images - but, is it really supposed to take that much power to play it?

View 1 Replies

Importing An AS File That Plays A Spectrum And The Song Have?

Jan 25, 2010

I can't figure out why I am not able to make this work here is an example of what I am doing.I am importing an AS file that plays a spectrum and the song I have. Here is the code.

[code]
zoeyPic_mc.addEventListener(MouseEvent.CLICK, addMC);
function addMC(event:MouseEvent):void

[code]........

View 1 Replies

Professional :: Swf File Plays Slow Over Internet?

Jan 27, 2011

I created a 5 second animation ion Adobe After Effects CS5 - exported to a swf file which is 50mb.I have this inserted on a dreamvweaver cs5 html page. Running locally it is fine, but slow over the internet.Should a 5 sec swf file be this big? - Anything i can do to speed this up on a webpage? - I have asked this on dreamwaever also, as I am using Dreamveaver CS5.
 

View 7 Replies

ActionScript 2.0 :: SWF File Unload Still Plays Audio?

Jan 4, 2010

I have a captivate generated SWF file which has a .FLV inside it.In flash on click of a button I unload the movie(SWF), the video goes away but the .FLV still plays the audio

View 6 Replies

Professional :: SWF File Plays Fine Locally, But Not Online?

May 3, 2010

I have a very rudimentary Flash movie that I have created. Link here to a copy of the SWF file on my company's website:The movie appears to work all right in IE, but not in Firefox or Google Chrome.Here are the details:It's a leaderboard ad, and like I said, it's pretty basic. I have a simple motion tween, and then an incredibly looooooong series of nested movie clips that create the effect of a counter (like a rapidly rising jackpot).I'm not really hip with the intricacies of ActionScript, so I couldn't code something more elegant. The "counter" is supposed to represent an increasing amount of money that not using our services might cost a company.

Ones, tens, hundreds, thousands, and ten thousands use a simple repeating movie clip. hundred thousands use one that is 10x as long, and so on. I had to stop at 1 millions, as the # of frames in between numbers was prohibitively long.i.e. there are 10 frames in between numbers for the hundred thousands place in the movie, 100 frames for millions, and 1,000 frames for millions.but, like I said, I'm a beginner at ActionScript.Thinking the problem might be due to the incredibly long movie clips, I removed the animations from some of the higher numbers from my movie, and this did not appear to affect whether it plays in Firefox or Chrome.

View 10 Replies







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