ActionScript 2.0 :: ExternalInterface.available Returns False On A Mac?

Sep 20, 2006

I'm triyng to get the browsers back-button to work with my flash site. The general principle is this:There is an index.html page containing an (not yet) hidden Iframe and the flash movie.The Iframe contains page A, which starts with JavaScript calling a BACK-function on the index-page.The BACK-function triggers an AS-function in the flash-movie that activates its own back-button, and then changes the URL of the Iframe to Page B. This causes a new History to be added to the browser.The flash movie now contains 5 frames (labeled in the middle of the stage) and two navigation buttons: back (Terug) and forward (Verder). Those buttons do exactly what you'd expect them to do (prevFrame and nextFrame).On a PC (IE) this seems to work pretty well. But on a mac nothing seems to work propperly.Here's the code I have on the first frame.

stop();
_root.terug.onRelease = function(){
prevFrame();

[code].....

View 2 Replies


Similar Posts:


ActionScript 3.0 :: How Ever Load Always Returns True And Write Always Returns False

Nov 4, 2011

I have a load file and a write to file method. We all know what they do. How ever load always returns true and write always returns false....Right there you know somethings wrong. Because The forums have an issue with me posting code...I posted it here: [URL] Based on this code what is the issue here? why is write always returning false and why is load always returning true? (even for files that do not exist). My understanding is that if flash cannot find the file it should write to it will create it and if it cant load said file, then that method should return false.

View 6 Replies

Actionscript 3 :: HitTestPoint Always Returns False For One Function

Sep 18, 2011

I have a movieclip I drawn, called Map. It has a child with the name Wall. I'm trying to make a function that returns a 2d tile array of if there is something in that tile or not, for pathfinding. The problem is, levelGrid is entirely false. I'm not sure what I am doing wrong. I have filled the whole movieclip (Wall) with bright red, and yes it still returns false. The x and y of both Map and Wall is 0, so I don't think there should be issues with hitTestPoint accepting global x / y.

[Code]...

View 1 Replies

ActionScript 3.0 :: FileReference Upload() Returns False?

Aug 30, 2009

I am currently making a program to upload certain files onto a web server and I have come accross a problem.In my code I've got:

ActionScript Code:
if(fileRef.upload(new URLRequest("http://www.mackaygymnastics.org.au/administrator/upload.php"))) {

[code]...

Now I understand that this is returned because the upload function returned a false, but why is it returning this false. Is this because the URLRequest is wrong or the uplaod file is wrong or something else? I've tried looking all over the web for another case and it doesn't give me one.

View 5 Replies

ActionScript 3.0 :: ExternalInterface.available Returns True In Stand Alone?

May 12, 2011

Title explains teh problem - anyone ever encountered this issue or have a solution. have tried everything - tearing my brains out

View 7 Replies

Professional :: ExternalInterface.available Returns True In Standalone?

May 12, 2011

I try, in standalone test environment it always returns true - it should return false -

View 3 Replies

Flex - ExternalInterface.Call Always Returns Undefined

Feb 10, 2012

I am trying to get the value of a global variable from JS. The variable is defined in the HEAD section of my HTML document.
if(ExternalInterface.available){
return ExternalInterface.call("window.myVar.toString()");
}
As I debug my application this call keeps returning "undefined" but if I make the same call in firebug's console it returns a string as expected.

View 3 Replies

ActionScript 3.0 :: Go To "else" Condition As Soon As Either One Of Those Initial 4 Values Returns False?

Nov 23, 2010

I am trying to write my code as efficient as possible and I have a scenario

[code]...

Now this piece of code never reaches the else condition. I want it to go to "else" condition as soon as either one of those initial 4 values returns false.

Which operator would do the job or am I missing something else entirely?

View 2 Replies

ActionScript 2.0 :: Menu Navigation System - Dropdown Appears And Returns When The Dropdown Returns

Jul 15, 2004

I'm having with a menu navigation system. I'm using Flash MX. I have created a menu system for the site I'm building ([URL]) where one of the buttons "Choose photographer" drops down a list of names. All the other buttons just jump to another page. The drop down is currently using tweens also the logo moves to the left as the dropdown appears and returns when the dropdown returns. All working fine apart from its a bit jerky.

It's I just wanted to get away from tweening and use action scripts instead, as I'm a newbie to all things Flash I trawled the net for tutorials and examples so that I could cobble together the exact same effect. I have managed to get the drop down work and return using the action script and it does seem smoother and works slightly better. But can I get the logo to move to the left and back in time with the drop down...no.

View 1 Replies

Flex :: [IOErrorEvent Type="ioError" Bubbles=false Cancelable=false EventPhase=2 Text="Error #2032"]

Aug 25, 2011

I am trying to display database details in a Flex datagrid and connected using HTTP Service. It was able to display details without any issue when I was working in the FlashBuilder 4.5, however, I deployed the bin-debug part in the Tomcat webserver to access it globally.

I am experiencing this error message when I am trying to access the swf file "HTTP request error Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: http://localhost:8084/UA/details.jsp"

I tried to create the crossdomain.xml file and deployed in the root directory but still experiencing the same error.Here is my crossdomain.xml :

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>[code].....

View 1 Replies

ActionScript 3.0 :: Selectedcolor, True To The Text True Or False In The False Print Text?

Aug 28, 2010

Selectedcolor, true to the text true or false is false text into print.colorPicker component in, I select Export to a selected color, the color value myMC texte into summer, but accuracy can not control.

var myColorPicker:ColorPicker = new ColorPicker();myColorPicker.editable = false;myColorPicker.visible = false;myMC.visible= false;myColorPicker.addEventListener(MouseEvent.CLICK, clickHandler);myColorPicker.addEventListener(ColorPickerEvent.CHANGE, changeHandler);[code].........

View 1 Replies

ActionScript 2.0 :: Use .getDepth() But It Returns Nothing

Apr 6, 2005

I'm trying to use .getDepth() but it returns nothing. :S

Code:
if (this.getDepth() < _root.blocks.getDepth()) {

View 10 Replies

ActionScript 2.0 :: _currentframe Always Returns 1?

Feb 5, 2007

I have a flash file, and in it is a movieclipbutton. When you roll over the button, the button has to grow in size and change color. This animation is 10 frames long. When you roll out, the button goes back to it's original size and color, this animation is also 10 frames. But when you roll out of the button before the 10 frames of roll over animation are finished, the movie jumps to the rollout animation, which starts with the button in grown size; so you see a little jump in size. To fix this, I did the following for the onRollOut:

Code:
this.btn_1.onRollOut = function() {
this.gotoAndPlay(45 - this._currentframe);
}

This however, doesn't work. When I put a trace(this._currentframe) inside, it returns 1. But this isn't right, it should return something between 10 and 20! I have the .fla file on the internet:[URL]

View 3 Replies

Flex :: How To Set Variables To False

Apr 4, 2010

I am working in flex and I am just setting a variable to false. It doesnt do anything in the program but everything breaks when I put this line of code in:
somevar = false;

View 1 Replies

ActionScript 2.0 :: Set Value Of Variable To False

May 28, 2007

how to describe this without confusing everyone but basically, i have:

prevslot = "jslot"+historynum+"full";

historynum is a dynamically gathered number from another part of my code. it will be like 1 or 2 or 3 etc.

The problem is that i want to like set the value of that variable to false, so for example if historynum was equal to 1, the value of prevslot would be jslot1full. I need to set the value of prevslot to false, i tried prevslot = false; but obviously that just sets prevslot to false, not the value of prevslot. Is there any way to set the value of prevslot to false?

View 4 Replies

ActionScript 3.0 :: Carriage Returns In XML Attributes?

Feb 19, 2009

My XML looks like this...

<feature title="This is my /n features title"/>

I don't have access to change the schema.

In Flash I load the text content of the title attribute into a text field, problem is -- the prints instead of operating as a carriage return (new line).

Again, no access to the XML so changing the TextField to htmlText and adding a <br/> tag wont work.

View 2 Replies

AS3 :: CS3 Function That Returns The Type Of A Variable?

Nov 11, 2010

What is the ActionScript 3 function that returns the type of a variable ?

I remember that there is one but I can't remember it nor can I find any reference of it.

View 1 Replies

Data Integration :: XMLConnector Returns 11 In IE ?

Oct 26, 2006

I have a Flash output file that uses both LoadVars and XMLConnectors. While LoadVars all work on all tested browsers, XMLConnector does something very strange and ONLY on Internet Explorer. When I try to use it, the listeners for the XMLConnector say send (using GET Method), status is correct (StatusChange), but the data that returns is crazy (outputs 11). I am suppose to get a full xml data stream, but all I get is 11. This happens in IE (PC) only. In Netscape on PC or Mac) it is fine, on Firefox (PC or Mac) is it fine, on Safari it is fine. SO, has anyone able to use the XMLConnector properly on IE (FP8)? The parameters for the problem are: Flash Player 8, Internet Explorer 6, PC.

View 3 Replies

ActionScript 1/2 :: Can't Strip Whitespace Or Returns

Mar 15, 2010

I have few ActionScript skills. But I have built a multimedia career by stealing chunks of AS2 code and reworking them to suit my purpose. I have searched long and hard here for a solution to my current problem. I have found code here that seems to address it, but I cannot make it work. I simply have some textAreas that I wish to validate. The user may input text that could include extra spaces, returns, and odd capitalization. It would be easiest for me to simply strip out the capitals, spaces and returns. I found some simple code that changed the caps to lowercase:[code]

View 5 Replies

Professional :: GetCharBoundaries Returns Null?

Mar 2, 2011

trying to cut text field to single letters and then do some animations on each letter. But, how do I know where to place (position) the letters? I tried using getCharBoundaries but once it reaches 3rd line, it keeps returning null values. Anybody knows why that happens

View 3 Replies

ActionScript 2.0 :: Input Text Returns NaN?

Aug 26, 2010

we are told to make a sort of calculator, You should be able to input a number, press a button and then it should do several mathematical steps and it would end up with the number 1

Here is what I've got so far:

ActionScript Code:
var input:Number = 0;
var summa:Number = 0;
var output:Number = 0;

[Code].....

The script works fine when not entering a number in the text box, it calculates just as it should.

But if i enter any number, it shows up as NaN in the trace. I've asked my teacher and he doesn't see anything wrong with my code, and neither can i..

I'm using Adobe Flash cs5, actionscript 2.0

View 2 Replies

ActionScript 3.0 :: Flash Returns That Result?

Oct 19, 2010

I really don't understand how the results I get are possible.Here's my code:

ActionScript Code:
patch = 0;
//Assign the correct percentages using the data recovered from the database[code]..........

And, here are the traces I get:

Quote:
int_tmp: 66.6
int_tmp: 66.6
int_tmp after: 66.6[code]....

my code somehow manages to say that the result of 66.6 + 33.3 = 99.89999999999999

It might be possible in some alternate universe, but here on earth, I should get a result of 99.9... I'm really hoping one of you can explain to me why Flash returns that result, cause really, I'm at a loss here... this line:

ActionScript Code:
var int_tmp:Number = int((nbUserArray[t]/nbUserTotal)*100*10)/10;

I made sure the values are the correct ones, plus the traces confirm that the first time, it equals 66.6 and the second time it equals 33.3. So really, I don't understand how it can return this... monster of a result .

View 5 Replies

ActionScript 3.0 :: ShaderJob Returns Different Results?

Apr 15, 2010

When I use it with either byteArray or Vector as the input and either as the output, it returns the first few results correctly, then gives me either nonsense values or zeroes. The following shader takes values, returns the second number plus the third for the first value, a zero for the next, and the output coordinates for the last two numbers. The channel size is therefore 4. The length of data is 56 (divisible by 4).here is what I have in the evaluatePixel function:

Code:

dst = sampleNearest(src, outCoord());
dst.r = dst.g + dst.b;
dst.g = 0.0;

[code]....

and then, as you can see, fine again after 47. Changing the length of data to 80 is the same, only after 31, the values remain nonsense instead of eventually correcting themselves.That list is just a trace of input and output.

View 8 Replies

ActionScript 3.0 :: 'this' Returns Class Not Instance?

Jun 30, 2010

I have written a ToggleButton class - a button that toggles an object implementing an Itoggleable interface - a reference to which is stored in the ToggleButtons 'target' property. Toggleable contains a reference to an instance of whichever ToggleButton it is a target of.Now, I can easily create this relationship like so:

PHP Code:

myToggleButton.target = myToggleableObject;
myToggleableObject.toggleButton = myToggleButton; 

But what I would like to do is this:

PHP Code:

myToggleButton.target = myToggleableObject; 

[code]....

1118: Implicit coercion of a value with static type org.ngfl.template.ui:ToggleButton to a possibly unrelated type ToggleButton.this seems to be saying that the 'this' reference is not returning the instance of the class but the class itself, am I right? Is it not possible to do what I want? It's only one extra line but I'd prefer it that way.

View 2 Replies

ActionScript 3.0 :: XML Returns Undefined Entries?

Aug 12, 2010

My AS3 class has some quirks. It's sort of a guestbook, so someone can add a 'question'under a certain category. When I publish the results in a dynamic textfield or when I trace the results I get the existing XML values and some undefined ones.This is my AS3 script:

Code:
//Class name is AddQuestionMenu
public function AddQuestionMenu()

[code].....

View 6 Replies

ActionScript 3.0 :: Function Always Returns Null?

Apr 25, 2011

I've got an object inside an object. The child object basically loads a variable from SQL into one of it's own public variables. The SQL works 100%, because it traces out correctly.Now I've wrote a function from the child.as

Code:
public get_var() : String
{
return var_yes_friggin_work;[code].....;

Of course the files arn't called Parent.as and Child.as I've just had to rename them because our work is monitored though checking the internet and I can't delete this form.The FilePathOriginal doesn't output anything unless the string is manually set from the child, does anyone know where I'm going wrong here? (I can't upload all my code because of the monoriting process)

View 10 Replies

ActionScript 3.0 :: Stage.showMenu=false??

Nov 24, 2007

How would i do stage.showMenu=false in as3 iv looked on google found nothing just some fullscreen flash stuff im not interested with at the moment and iv searched this site but got nothing.so as2 code:

stage.showMenu=false;
As3 code:

View 9 Replies

FLV File Downloads Despite Autoplay=false

Nov 3, 2009

I have a webpage with a video component (swf file) with a separate .flv file and skin.  The .flv file is intended to progressively load from the webserver.
 
In the swf file I have set autoplay=false to stop the move playing when the page is loaded.  This works fine.
 
However, the problem is that the movie still downloads in the background.  i.e. Each time the page is loaded, the .flv file is being loaded.
 
Is there a way to stop the .flv file being loaded until the Play button is pressed in the player?

View 6 Replies

Button Pressed True Or False?

Nov 4, 2009

Basically what i have is three buttons which can be pressed in a maximum of 7 different combinations. Each of these buttons has a movieclip underneath that advances to the next frame when the button is pressed. Each clip has two frames with actions,  frame 1 has:
 
stop();
var option1:Boolean = false;
and then frame 2 has:
stop();
var option1:Boolean = true;
 
So when you press a button you have true, and false when the button is pushed again.
 
i already have a constant loop between frames 2 and 4. At frame 4 i think i need to have some code that detects which state the 3 boolean statements are in and then load a movie depending on which statements are true and which are false.

View 6 Replies

ActionScript 3.0 :: Error: A URL Must Be Specified With UseProxy Set To False?

Oct 5, 2010

So, I'm getting this error when trying to load a URL with HTTPService.

[FaultEvent fault=[RPC Fault faultString="A URL must be specified with useProxy set to false." faultCode="Client.URLRequired" faultDetail="null"] messageId=null type="fault" bubbles=false cancelable=true eventPhase=2]

[code].....

View 1 Replies







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