ActionScript 3.0 :: New URLRequest To Load A Page

Aug 29, 2011

I am using new URLRequest to load a page. I cannot seem to get it to load in the current page rather than create a new page. Here is my code;

Actionscript Code:
home.addEventListener( MouseEvent.CLICK, function(e){ navigateToURL( new URLRequest('http://www.site.com/page.html') ); } );

View 6 Replies


Similar Posts:


ActionScript 3.0 :: Get The URLRequest To Bring Up The New Page In The Same Window?

Sep 1, 2010

how to get the URLRequest to bring up the new page in the same window? I am trying to create the flash navigation bar and it keeps opening up on a new page.

View 7 Replies

Flash :: Load A Variable In URLRequest?

Jul 19, 2011

what want to make is let people submit a URL and then show the image on the stage ..
so i went an wrote my code but it doesn't work as i expected .. here is the code

var myurl:String ; // a var to load the text in it
var reques:URLRequest = new URLRequest (myurl) ; // the urlrequest (i know that this only accept strings but what to do !!)
var loader:Loader = new Loader(); // the loader

[Code]....

View 2 Replies

ActionScript 3.0 :: Variable URLRequest - Topic1.swf To Load 0 Click Topic2 To Load Topic2.swf

Feb 17, 2009

If you click topic1 I want topic1.swf to load, click topic2 to load topic2.swf etc. What I am doing wrong with var url:String = "topic"[i]+".swf";?

[Code]...

View 12 Replies

Professional :: URLRequest Lost - Error 1046: Type Was Not Found Or Was Not A Compile-time Constant: URLRequest

Aug 12, 2009

In my movie i have a link button with following, simple, function creating a link:

[Code]...

lately i've associated a class file (.as) to my movie and immediately after, when publishing the movie i got the following error message: 1046: Type was not found or was not a compile-time constant: URLRequest. as well as a couple of other related error messages: 1180: Call to a possibly undefined method URLRequest. 1180: Call to a possibly undefined method navigateToURL. when i remove the link to the class file, the problem goes away. also, i have checked the class file for mentioning of "URLRequest" and nothing is there.

View 9 Replies

ActionScript 3.0 :: Load The URLRequest Into An Actual Movieclip?

Nov 13, 2007

I've decided to take the jump to AS3 now but im having a lot of issues... Im trying to load an external swf into a movieclip.

In AS2 it would be:

PHP Code:

var mcLoader:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object ();
mcLoader.addListener(myListener);
mcLoader.loadClip("mainLoader.swf","externalLoader_mc");

[Code].....

How can i load the URLRequest into an actual movieclip as i have done in AS2? As far as i know the load function only accepts one variable. ATM the external swf im loading is just going into thin air and i can't get anything to happen (i have the functions created to deal with the events btw).

Edit: Just fixed it by adding externalLoader_mc.addChild(myLoader);

View 10 Replies

ActionScript 3.0 :: CS5.5 - Load XML Via A URLLoader And URLRequest To A Server

Aug 6, 2011

there you are, you set up your AS3 code to load XML via a URLLoader and URLRequest, as normal. You then take your XML file, and upload it to a server. You then run your program, and trace out the XML you receive. So far so great, and you see the results of your XML traced out. Then you change something on your XML, either adding to it or removing a line. You then run your program again from CS5.5, and trace out the XML, and it shows the same results that it did before you made any changes. I deleted the XML file from the remote server, and it is like it stored it in cache, and still able to read it. If I change the url or file name, it gives me an error, which it should.

If I point the url back to my remote XML file, and run the program again, it gives me the XML results I had in the beginning, before I made any changes to it (regardless if the XML file exists). The only fix I have found so far, is closing CS5.5, and reopening, and then it can see the changes. I did that, and it was able to see my XML changes on my remote server, but again, only one time. If I try to change anything, or delete the XML file, it still pretends as if its there, reading the results that it read the first time I run the program. Is this a cache issue? Anybody else experience this? I never remember running into this problem using CS5/CS4/CS3, only CS5.5. Of course, I can test it all locally first, and then upload the XML file to the remote server when I know that no other changes need to be made, but still, this is really weird!

View 1 Replies

ActionScript 3.0 :: Can't Load File From Server With URLrequest, But Works Locally

Dec 22, 2008

I have made a XMLloader with URLrequest, and it works locally by calling the file directly by its name ie. "myFile.swf". var presLoader:Loader = new Loader(); presLoader.load(new URLRequest("myFile.swf")); addChild(presLoader);

But when I uploaded the loader to the server, I have no file, only "URL not found"-error. So I found out that I should change to URL to "/Files/Images/subloader/myFile.swf" then it will load. But thats a real problem, because I have several loaders.

View 1 Replies

Server Side :: Have A Different Image Load On Home Page Everytime The Page Refreshes?

Jun 2, 2011

I want to have a different image load on my home page everytime the page refreshes or someone visits it. Is it possible to do it without using Flash?

View 2 Replies

Make The Buttons On Each Page Load The Next Page (sprite) From The Library?

Jun 29, 2011

My basic aim is to create a newspaper that consists of four pages. Each page i have created and are sitting in the library as sprites. Each page has buttons that need linking so that when pressed it loads the next page or page that i want. This is the part i am confused with =/ how do i make the buttons on each page load the next page (sprite) from the library??

View 2 Replies

Javascript :: Getting A Flash Video On New Page Load At Position It Was At On Last Page

Oct 11, 2011

I have a an unobtrusive flash video looping in the background of a website, it is not essential to navigation - it is purely cosmetic.The flash video loops every 30 seconds.As this video is on all pages, it jumps back to the start when a new page is loaded.Is there an actionscript / javascript way to get it to remember the position it got to on the old page so it can start there on the new page?I do know that this can be accomplished by loading the flash movie in a frame as well as by having the subsequent pages load the contents in AJAX but I was hoping not to go down this route.I have seen other people ask the question and allude to the solution but they only posted that they got it to work without saying how.

View 1 Replies

ActionScript 2.0 :: Load External Swf Into Main Page And Remove When Nav To New Page

Jan 7, 2009

I am trying to load an external swf with a number of quotes into an empty movie clip on the home page. then I want it to obviously disappear when nav to any other page.

1) know that you need a loaderEmpty_mc to load the swf into

2) don't know code for how to get it to load on entering the home page

3) don't know how to cdde for leaving the home page and making it disappear

View 3 Replies

ActionScript 2.0 :: Load A Different Page For The Flash Player To Scroll Up All The Way To The Top Of The Page Itself?

Apr 25, 2007

Im working on a website for school, and im doing it through flash. The server ive been given is being taken up by thousands of pages, so its slow. Instead of loading each page through HTML, ive decided i could do a seperate frame for each page. However, to reach the menu at the bottom, you have to scroll down. Is there any way to make it so that when you click a button to load a different page for the flash player to scroll up all the way to the top of the page itself?

View 1 Replies

IDE :: Why Does Load (new URLRequest("my Http Link" +new Date().time)); Run Slowly

Apr 21, 2010

Im building a flash banner that takes dynamic xml data from another domain and displays them as links. To make the swf reload the xml (the xml links change all the time) every time Internet explorer is updated (instead of loading from the cache) I added +new Date().time to my URLrequest, and suddenly the links takes 9 seconds to display. Firefox doesnt have the cache problem and without the +new Date().time it displays the updated links almost instantaneously. Can anyone tell me why this happens and how I can fix it?? a 9 seconds loadtime is too long.

Here is the first parts of my code:
__________________________________________________ ____________
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
//en trace variabel til hover state. Fjern da ogs� variablen de steder den benyttes.
var hover:Boolean;

[code]....

After that I use the linkList to dynamically create the links as textfields, with some formatting, hoverstate, linebreaks etc.
only thing I changed was adding the +new Date().time, and it displays the links so slow.

View 4 Replies

ActionScript 3.0 :: Gallery Page With A Bunch Of Page Numbers - Click On A Page Number, The Over Script Should Stop Until Go To Another Page?

Jan 26, 2009

i'm trying to build a flash site and ran into a problem... i have a gallery page with a bunch of page numbers at the top. when you click on one, a movieclip loads of some images coming in.so the problem i'm having is that i made a little animation for when you roll the mouse over the page number (they scale up when the mouse is over, scale back when the cursor moves away)... what it's doing is when you roll over, it goes to a certain frame in the timeline and plays that animation.that's all working cool, but i need it to not do that once it's clicked on. so basically when you actually click on a page number, the over script should stop until you go to another page... here's the code i've written,

function over(event:MouseEvent):void {
this.gotoAndPlay(30);}
function out(event:MouseEvent):void {[code].....

View 0 Replies

ActionScript 2.0 :: Load A Move 'button By Button' Or 'page By Page'?

Jul 30, 2003

i have some preloader frustrations..dont point me to a previous preloader thread...i have been there already and no im not talking about any preloader that loads the WHOLE movie at the beginning, i know how those work... I need a tutorial/explanation that will teach me how to load a move 'button by button' or 'page by page'.

By this I mean, the first thing the movie will do is load the first 'page' and say you have a few more buttons on that 'page'. It loads all the buttons and that 'page' first..nothing else...then i click one of the buttons (no matter what order) and the 'page' switches to a preloader and then when the second 'page' is loaded, it is displayed.So many sites have this kind of preloader...but i cant believe how many tutorial sites only teach how to program the type of preloader that just loads the WHOLE movie.

View 10 Replies

IE Wont Load Page?

Oct 8, 2010

I have problem. My website works fine when it is in server and Iam opening it via IP or typing localhost/, but when iam opening index.html file it shows that active X is blocked, but when I enable it, web page wont load futher then 0% preloader, why is that?

View 1 Replies

Get Page To Load When It Is In Another Folder?

Dec 30, 2010

.My index page is in the folder"New web site".I have a flash button on my index page with the address of on (release)

{
getURL("F:New web siteAdobe Web Gallerygallery.html", "_top");
}

dosen't work.How do I get the gallery page to load when its in another folder?

View 2 Replies

ActionScript 2.0 :: Send To Another Url On Page Load

Mar 17, 2009

I would like to embed this flash file within an HTML Page. User finds my page on a google search. The domain is **here.com once the user clicks on the link, it tries to load the "gethere" page but immediately forwards them to another site. I found this code but I am unsure of how to use it.URl..

View 3 Replies

ActionScript 2.0 :: Page Load One Time?

Sep 10, 2009

Is the a script out there that can load a web page only time when the button is click. I don't want the page to reload when the button is continuosly clicked. if the page is already open and they click on the same button, i don't want the page to reload since it is already open.

View 1 Replies

SWF Will Load Once But Won't Play Again When Page Is Loaded

Jan 9, 2010

my swf will only load once in internet explorer.. When you navigate out of that page and come back to it it won't play automatically anymore...

I'm using FLASH CS4 and use the google swf code 2.2...

here's the page [URL]

it used to be so easy just inserting it in Dreamweaver =/ but that wouldn't work either

View 1 Replies

ActionScript 3.0 :: Load Images Into Page?

Feb 27, 2010

If I wanted my flash web page to show a different picture on the bottom layer with graphics on layers above each time it is opened, would I be better off using xml or some kind of onLoad function?

View 3 Replies

Dynamic Resizing On Page Load

Jun 14, 2010

I can't seem to get the re-size functions to trigger immediately. I call the function but it doesn't trigger until I re-size the window.[code]

View 2 Replies

SWF Movie Will Not Load In HTML Page

Dec 9, 2009

I have a flash movie that loads another movie into a place holder container upon opening. So, 2 swf files - one is the main movie and the other the one that loads into the main movie. Works just fine when testing in flash or clicking on the swf files outside of flash. But when I embedd the main movie into my html page - the main movie loads ok, but it doesn't load the child movie. I have both swf files in the directory so I am not getting why it works fine except when placing into html page.

View 1 Replies

SWF Will Load Once But Won't Play Again When Page Is Loaded?

Jan 9, 2010

my swf will only load once in internet explorer.. When you navigate out of that page and come back to it it won't play automatically anymore...I'm using FLASH CS4 and use the google swf code 2.2...here's the pageit used to be so easy just inserting it in Dreamweaver =/ but that wouldn't work either

View 1 Replies

Actionscript 3 :: Get AttachCamera() When Load Page?

Jun 1, 2011

i have used this code to get camera access how i can load it on page load

private function startVideo():void
{
if (true) // TODO: Recognize no video settings
{
var camera:Camera = Camera.getCamera(cameraIndex.toString());

[Code]...

View 1 Replies

Asp.net :: Load Flash Page Dynamically In C#?

Sep 12, 2011

I have 20 different flash files that i need to play randomly when a user enters a zip code. I am done with the project, but the way I have done it is I think could have been done a lot better. I have 20 different aspx files that have the flash object. I redirect users to different aspx files based on the random number using Random class. Is there a way to just have one aspx file where the param value and data could be passed using a variable. That way, its easier to maintain and i don't have to go to 20 different aspx files to update anything. Here is what the flash object looks like.

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="960" height="952"
id="HOT" align="middle">
<param name="movie" value="../FlashFiles/FirstTime/HOT_00.swf" />
<param name="quality" value="high" />

[code]....

View 2 Replies

ActionScript 2.0 :: Able To Load Text From XMl Doc Into Each Page

Jan 12, 2009

has anyone had any experience with the pageflip version 2.25? Im using the pageflip with pages from the library - I want to be able to load text from an XMl doc into each page. The pages build fine and I can sort of see in the code where to target each page to put text into its textfield as soon as you interact with the mouse corner the text dissapears, almost as if the page Mc is reloading.

View 2 Replies

ActionScript 3.0 :: Function Load Page Only Once?

Sep 22, 2009

I've got a problem. Function newPage loads Pages. I can click on each of buttons and Pages are loading into stage.But if i click on button second time, Page is not loading into the stage.

ActionScript Code:
import flash.events.IEventDispatcher;
import flash.events.Event;

[code].....

View 0 Replies

Actionscript 3.0 :: Different Photo On Page Load

May 29, 2009

I have (say) 3 photos on my homepage and what I would like to happen is, every time I access the site I would like the photo to be different. What I'm thinking is there must be some way that one can randomly select a photo (perhaps using tweenmax?)

View 1 Replies







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