ActionScript 2.0 :: LoadVariable, GetURL Work Only In Local Movie

Oct 7, 2002

I wanted to achieve some basic functionality

loadVariablesNum("http://www.mydomain.com/cgi-bin/myscript.pl?act=NewArticle","0",'POST")

My script myscript.pl is designed to return an appropriate varibale value to load into this flash movie so te remaining logic will work.

Now my problem is this WORKS in standalone flash movie but when I upload the movie to [URL] for example this does not work. I tried to put a relative path to my script, even that does not work. I want to make the movie Flash 5 compatible.

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Geturl & CS5 - Open A Pdf On Local Drive?

Jun 9, 2010

In all previous versions of flash I have been able to use "geturl" on a button and pull up a pdf in a local directory on my computer. Now with CS5, the same code pulls up a webpage and actually tries to go to a url. Is there a new way in CS5 to open a pdf on my local drive?

View 5 Replies

Professional :: GetURL To Link To A Local Htm File?

Sep 23, 2011

Trying to set up a getURL to link to a local htm file, NOT a page on the internet. All the tutorials I have read tell me how to link to a file on the internet I'm trying to set up an intranet site for my training college where students can access training resources etc on the local network. Therefore my getURL needs to point to a local file, not one on the internet. I'm trying to link to a .htm file that resides on my computer. Does the htm file have to be in the same folder as the .fla file?? How do I do this?? I'm working on a Mac, Os X, MX 2004, if that makes any difference.

View 1 Replies

ActionScript 2.0 :: GetURL And Local Frame Targeting In FP9

May 31, 2007

I have a two frame page - the left frame is a custom flash Tree object that parses a number of IMS-compliant manifests (basically an XML tree menu structure) and the right frame displays the href of the tree object that is clicked. If i run this from a server, it works fine and displays all links in the right frame. But if I run it from a local or network drive it opens all links in _blank.

Adobe have a technote on the new allowScriptAccess and getURL in FP9 [URL] but dont mention anything about this issue (that i can locate). I also cannot see how opening all pages in _blank can fix any "security" issues. Can anyone confirm that targeting html frames locally via getURL under FP9 is now not possible or has been changed? or is this a bug (sorry - undocumented feature)?

View 1 Replies

ActionScript 2.0 :: Changing A GetURL To Access Local Html?

Jan 22, 2011

When I originally made this flash, I created a button to access a web page that I had uploaded to my university server.

Now I'm attempting to compile all my webpages and flash to a CD for portfolio purposes and am having trouble redirecting the button to access the html in an adjacent folder to where the flash is stored.

Here's an example of the original button AS:

on(release){
getURL("TheURL(sorry I can't post links)", "_blank");
}

View 2 Replies

Flash AS2 - Accessing LoadVariable With Number On End

Apr 14, 2012

I have a flash that loads variables from a mysql database. It loads them with their id appending the variable. Example:
Variable Name:itemName
Id:1
var sent to flash:&itemName1=(item name in database)

Now the problem is in flash loading that variable with the added id at the end
Code:
onClipEvent(data){
t = this.totalItems;
for(i = 1;i <= t;i++){
itemNames = this.itemName + i;
_root.itemList.addItemAt(i, itemNames);
}}

But the list returns NaN. I so far have 2 items in my database so these are the values returned.
itemName1
description1
price1
itemName2
description2
price2
So I thought this.itemName + i would return the value itemName1 where i=1 in the for loop. Is there any other way to do this?

View 1 Replies

ActionScript 2.0 :: LoadVariable - Error Opening URL

Nov 13, 2004

I'm doing a loadVariables (http://www..etc....); When I run my movie I get - Error opening URL, I understand the error etc... but what I wanna know is does a variable get set? So I can do a check
if x = Error opening URL gotoAndPlay(etc);

View 3 Replies

ActionScript 2.0 :: Loading A Swf Into A Swf GetURL Doesnt Work?

Feb 8, 2010

Ok so my swf on my homepage is calling in the main.swf which then has movieclips and coded like this on the Actions layer which I made

button1.onRelease = function (){
_root.button1.getURL("http://scholarscanada.com/wordpress/education/programs/reading-readiness/" "_parent");
}

Here is the site so you guys can see, I believe it has to be something with calling the main.swf into the movieclip because I've never encountered this issue before...If you click on the LEARN MORE for the first image it doesnt go to the page which I ask it for

View 1 Replies

ActionScript 2.0 :: GetURL Not Work In Flash Player 8

May 2, 2007

I use getURL to trigger new page, it works in flash player 7 (publish setting -> flash player version 7) but not works in flash player 8 (publish setting -> flash player version 8). Here is the code :

[Code]...

View 2 Replies

ActionScript 2.0 :: GetURL - Email Button Doesn't Work

Oct 3, 2005

I'm having a strange problem with getURL. in my flash file, i have two buttons one for an email link and another one for a site link here is the code

[Code]...

when i test it in flash (Ctr+enter) only the button linking to the site works, but the email button doesn't work. And when i preview it in html, only the the email button works, but the site button doesn't work.

View 3 Replies

ActionScript 2.0 :: GetURL() Doesn't Work Inside Dynamic Mc?

Jan 8, 2004

Still creating the menu I ran into this problem with getURL. I've tried a lot of things, but it still won't go to the URL. Here's my AS code. I marked out where the getURL is.

[AS]
// Create xml-object
menuXml = new XML();
// Ignore tabs, spaces etc.

[Code].....

View 6 Replies

ActionScript 1/2 :: GetURL Mailto E-mail Address Won't Work Across Domains?

Jul 27, 2009

It works fine on a testing domain where the flash and the html file are located in the same folder, however, this flash banner is going to be stores on a subdomain callAs soon as it's put on the live site with the flash located in the images subdomain the link stops working. I don't even get an error message; it just doesn't do anything.We tried changing the code to:

on (release){
System.security.allowDomain("*");
System.security.allowInsecureDomain("*");

[code]......

View 1 Replies

Button's GetURL Action Dosn't Work In Internet Explorer?

Jul 2, 2010

I have been searching Google trying to find a solution to my problem with no joy, so I thought I would post in here to try my luck.I have created a small movie which can be found here, [URL], the problem I have lays with the button at the top of the movie titled "Click Here to Create Your Canvas". I have 'Publish Previewed' in Flash and the button works fine - changing on mouseover and opening link, however when viewed in HTML the button changes as intended but the link does not open on release.

the Action code used is as follows:

[Code]...

View 9 Replies

ActionScript 2.0 :: [MX2004] GetURL() Doesn't Work Inside Dynamic Mc [XML]?

Jan 8, 2004

Still creating the menu I ran into this problem with getURL.I've tried a lot of things, but it still won't go to the URL.Here's my AS code.I marked out where the getURL is.

[AS]
// Create xml-object
menuXml = new XML();

[code]......

View 6 Replies

ActionScript 2.0 :: How To Make News Array To Work In GetURL Action

Aug 10, 2004

I'm trying to get the code below to work, but no such luck:
Code:
var newsAry = new Array("news/040720.html");
for(i=1; i<=newsAry.length; i++) {
this["btn" + i].index = i;
this["btn" + i].onRelease = function() {
getURL("javascript:openNewWindow(" + newsAry[this.index - 1] + ",'newswin','height=400,width=450,toolbar=no,scrollbars=yes')");
}}
I'm trying to get the 'newsAry' Array to work in the javascript getURL action. When I use a regular html page in there the page works just fine.

View 2 Replies

ActionScript 3.0 :: Error #2148: Only Local-with-filesystem And Trusted Local SWF Files May Access Local Resources

Jul 4, 2010

I'm trying to load a local xml file:

xmlLoader.load(new URLRequest("../xml/xmlData.xml"));

But I'm getting this security sandbox violation:

#2148: Only local-with-filesystem and trusted local SWF files may access local resources.

I don't get this error when I embed the XML file directly with the EMBED metadata tag.

View 3 Replies

ActionScript 2.0 :: Only Local XML Paths Work?

Oct 21, 2010

Within my swf, I cannot access my xml files via an absolute path, only local paths work.

View 2 Replies

Professional :: Flash Files Don't Work On Local Pc?

Oct 14, 2009

i have the problem of local files of flash not working in any browser. to explain further i have html pages with headers in flash in my hard disk with links of the connecting pages. when i open such pages in any browser the links dont work. the page just stays as it is. when i click on the links only the state of the rollover changes when clicked on a link. the links when clicked dont go to the linked page. but when i upload these files to the server, they open and work perfectly in any browser.

View 8 Replies

ActionScript 3.0 :: PHP Calls Only Work During Local Testing?

Jan 29, 2012

My AS3 makes a call to a php script and it works beautifully during testing. However, once I upload it to the web, it no longer works.

I am using absolute URL's, since my game exists in various places, such as facebook and my website. Here' s the code:

ActionScript Code:
public function checkMovements():void {
var urlLoader:URLLoader = new URLLoader();
urlLoader.addEventListener(Event.COMPLETE, checkMovements_Complete);

[Code].....

View 8 Replies

ActionScript 2.0 :: LoadMovie() Only Work On A Local System?

Oct 17, 2004

why a loadMovie("movie.swf", "_root.targetMC") would work on a local system, but when put onto a server (with EXACTLY the same file dir setup) would just lock up trying to transfer data? And I am talking about files that just contain one line of text, and nothing more. WTF?

View 2 Replies

FLVPlayback Skin Doesn't Work On Local Access

Oct 13, 2009

I want to play a video, for it I decided to use a FLVPayback with a skin, and it works very well when I test it in Flash CS4, also when i called it from my server with the "network access" only preference. But when i embeded into a html... it plays the video but the skin does´t shows up.

here is my code:
 
package
{
import fl.video.FLVPlayback;
import flash.display.Sprite;
import flash.display.*;3

[Code].....

View 1 Replies

Flash :: Loading SWF Doesn't Work When SWF Is Stored On Local PC

May 2, 2011

I have an HTML file which contains a Flash .FLV player; which then loads a given FLV video and plays it. The idea is all these files are stored locally on the PC as part of an application install, we use HTML/flash for the help/manual. On my PC it works fine but on a user's PC nothing is displayed. However if I host the exact same file-structure online and give them the URL, it works perfectly.

I am guessing this is a security issue of some sort but have no idea how to address it. The browser being used is actually a XULRunner app, i.e it's the FireFox 3 engine but not actually FF. Since my PC isa developer PC it's entirely possible I've done something in the past on another project that makes it work, rather than my PC being special in some way. For reference the HTML has the following in it - this is generated from some 3rd-party app:

[Code]...

View 1 Replies

ActionScript 2.0 :: Local Connection Does Not Always Work - Alternatives Or Fixes?

Jul 16, 2008

I have an swf that needs to communicate with another. It just needs to pass 1 variable (a number) to the other. And the receiving swf will then act according to the number.

However, I noticed when I sometimes refresh the page, localConnection does not always work. When I'm clicking the sending swf, the receiving swf does not act...at all. As if nothing happened.

Is it a HTML problem? Ive selected Flash Player 7 for swfobject's parameters. Anyone have any solutions or possible alternatives to doing this?

Like I said, I just need to give the receiving swf ONE variable. And I dont want the sending one to write to a PHP file and receiving one to always load that PHP file for updates...thats not nifty enough.

View 1 Replies

ActionScript 3.0 :: Movieclip Button Wont Work On Local Comp

Jul 9, 2009

I have movieclip buttons that when you click on them take you to external url's

When I upload the files to a webserver then it works perfect. However when I try to run the files locally the movieclip buttons dont seem to work (when you click on them they dont take you to the required url).

The strange thing is that if I make one of the url's for example "C: est" then this appears to work when I test it localy but will not go to "www.google.com".

View 2 Replies

ActionScript 2.0 :: Same Movie Clip - Different Instances - GetURL

Feb 11, 2010

I have a movie clip named "restlink." I drag it to frame one on layer "link," and give it an instance name of "link1." At frame 100, I create a keyframe on "link" layer, and change the instance name to "link2." In frame one of the "actions" layer, I enter the following:

[Code]...

View 5 Replies

ActionScript 1/2 :: Font/Text Resize Function Works On Local Machine, Does Not Work On Others?

Apr 6, 2010

I have the fonts embedded (Yet it still prompts me saying missing fonts every time I open flash, but not the fonts that aren't resizing correctly)
 
I have a function that takes in a textfield, resizes the font to fit the text box, works fine on my local machine, does NOT work on other machines.
 
why this doesn't work? here is the function
 
function fontSizeChanger(dtb,myWidth)
{
dtb.embedFonts = true;    
var myFormat:TextFormat = dtb.getTextFormat();

[Code].....

View 8 Replies

Flash - Adobe Cirrus (Stratus) Doesn't Work If User Have Local Network

Aug 20, 2011

I am developing flash p2p chat. It works fine on my friends' computers (they can chat each other), but not on mine. The problem is that I have local network at home, and I think that Flash Player tries to make p2p requests to peers inside my local network.Can I check if user have local network in AS3 and up the level of network to the WWW?

View 1 Replies

ActionScript 3.0 :: GetURL - Launch A URL That Loads Up Another Flash Movie

Jun 6, 2008

At the end of my movie I want to launch a URL that loads up another Flash movie. In the past I would use something like getURL("[URL]"); how to perform this task in Actionscript 3?

View 3 Replies

ActionScript 2.0 :: Flash/Firefox Bug GetURL Loads Old Movie?

Mar 14, 2006

I have an interesting (and rather embarrasing) error occuring only in Firefox on http://www.northwestu.edu/report/06/. If you watch the presentation in Explorer, this is the proper chain of events:[URL]..I oversee this site and unfortunately we did not find this bug until after linking up this content to our home page.

View 2 Replies

ActionScript 2.0 :: GetURL And Variables - Flash Movie To Begin At Particular Frame

Aug 18, 2009

I have 2 buttons in a flash movie with the following codes. They open a new URL that also contains a flash movie and it sends the variable "nFrame" and a value.

Button1:
Code:
on (release) {
getURL("goats.html?nFrame=1");
}

Button2:
Code:
on (release) {
getURL("goats.html?nFrame=2");
}

When the new URL opens I want the flash movie to begin at a particular frame depending on what variable "nFrame" is equal to. I tried placing this code in the first frame to do it but it didn't work, the movie just loops and loops and doesn't stop at any frame.

Code:
if(nFrame=1) {
gotoAndStop("cheese");
} else {
gotoAndStop("wine");}
}

View 1 Replies







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