Actionscript 3 :: Use NavigateToUrl To Access Html Files Relative To The Site Root?

Oct 26, 2010

I try to make an intro animation inside a website, and when the animation is done or when you push the Skip button, it navigates to the index.html file from the site root.So I have in my site root the folder Flash, where the intro.swf is, and within the intro.swf I called the navigateToURL(new URLRequest("..index.html"), "_self"); method. Now it's not working.

View 3 Replies


Similar Posts:


Professional :: Use Site Root Relative Paths?

Mar 10, 2010

I am developing a Flash application where I load some images. The image paths are contained in an xml file that is read from the application .Up to now, I am using relative paths in the xml file. My question is if I can use site root relative paths?Let's say the site's directory is sth like below
 
- root
     - /images
          - /image1.jpg[code]....

I know I can use absolute paths but I prefer to use site root relative paths if that is possible.

View 4 Replies

ActionScript 3.0 :: Access Relative Variables Of Movieclip Instances From Root Or Other Movieclips

Feb 1, 2010

In AS3, how can you access a relative variable within a specific movieclip on the stage?I have a test file that changes the variable "myVar" in one of the displayobject movieclips drawn on the stage. I want to simply trace the current value of this displayobject's myVar for additional purposes.In AS2, you would achieve this by calling the instance name and then the variable contained within.Assuming 3 movieclips existed on the stage named Container1¯, Container2¯ and Cotainer3¯trace(_root.myContainer2.myVar);// returns Hello which is value of variable "myVar" within the movieclip instance named "Container2".How would you do this in AS3?[code]

View 6 Replies

Flex :: Relative Context-root Fro Flash Application

Jun 7, 2010

In services-config.xml we got following configuration of endPoint.

<channel-definition id="any-amf" class="mx.messaging.channels.AMFChannel">
<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
</channel-definition>

Before compiling flash application i set up context-root as compilaction option.

binmxmlc -context-root / -services "flex/services-config.xml" -optimize=true -o ....inMessenger.swf Messenger.as

In my case this is "/"

And the problem is that messanger.swf is able to pull request if the web application is started as ROOT in tomcat webapps. I mean it can only be access by this url localhost:8080/. If i try to move webaplication to another folder - for example to localhost:8080/myApplication messenger.swf would not work properly sinse i have to change root_context as well.

So my question how to dinamicly determine context-root in run time, without hardcode it as option of compiler ? I want my .war application work properly regardless of it position in webapps folder(url).

View 2 Replies

NavigateToURL Not Firing When Site Viewed On Mac

Oct 28, 2010

I am simply trying to link a button on my site to another webpage (an online store). The site is currently live at Higdon Florist (won't let me put the dot com address due to forum rules) The last 2 menu options (View Bouquets and Place Order) should link to (store dot higdon florist)

On PC, this works just fine every time.

However, I have reports that Mac users have trouble. The action never fires on the first 4 or 5 tries. Then, suddenly, it begins to work (and continues to work thereafter).

My AS3:

import flash.net.URLRequest;
import flash.net.navigateToURL;
navigateToURL(new URLRequest("(store address)"), "_self");

[Code]....

View 4 Replies

ActionScript 3.0 :: NavigateToURL Not Firing When Site Viewed On Mac

Oct 28, 2010

I am simply trying to link a button on my site to another webpage (an online store). The site is currently live at [URL]. The last 2 menu options (View Bouquets and Place Order) should link to [URL] On PC, this works just fine every time. However, I have reports that Mac users have trouble. The action never fires on the first 4 or 5 tries. Then, suddenly, it begins to work (and continues to work thereafter). I have scoured Google and Adobe Forums, and it seems this is not a common problem. So I'm hoping it is just a simple fix.

[Code]...

View 4 Replies

ActionScript 3.0 :: NavigateToURL To Get Into A Site That Is Password Protected?

Mar 13, 2011

I am tring to build an application that remembers my passwords. like roboform. Is it possible to load the page and then fillin fields using AS?

View 4 Replies

Published Files Work On Local Site But Not On Remote Site?

Nov 4, 2009

the flash4 published set of files, with a variety of skins tried, works well on the local drive, even when moved to a different folder structure. when index.html is opened on the remote web site, the browser (firefox3 and ie7) displays the player conrols and a rotating horizontal barber pole, green and black, but no flash video.some of the skins i've used are: SkinOverPlaySeekFullscreen.swf, nOverPlayStopSeekCaptionVol.swf and SkinUnderPlay.swf. all work locally but do not play the .flv file on the web site. no problem playing flv movies on the remote web site if the file set is created by dreamweaver.

View 8 Replies

ActionScript 3.0 :: Root Relative Path Vs Absolute Path?

Nov 9, 2011

This is a head scratcher. Why would a root relative path cause a Security Sandbox error.. but an absolute path to the exact same path work fine..

[Code]...

View 0 Replies

ActionScript 3.0 :: NavigateToURL On Parent Html Page?

Apr 17, 2011

I am wondering how to target a javascript function in my html - code through Flash. Is this piece of code sufficient ? I know this works for opening a url from the flash movie, but what I am trying to acchieve is opening the page in the "parent" html page( the page that the flash movie is placed in).

Introduction.addEventListener(MouseEvent.CLICK, ChangeParent);
function ChangeParent(event:MouseEvent):void
{

[code]....

View 4 Replies

Send HTML Email Through Flash Using NavigateToURL()?

Aug 25, 2011

I am trying to send email within an Adobe AIR app using AS3's navigateToURL() function. I have successfully sent over plain text, but was wondering if there is a way to set the content-type to text/html because right now it sends the HTML as brackets. [code]...

View 1 Replies

Build A Html Site Aswell As Flash Site?

May 20, 2009

I was wondering if its still necessary to build a html site aswell as a Flash Site? Or is there a definitive and failsafe way to incorporate html into my flash site? SEO is a very important factor for me. I read this article: url...by Geoff Sterns in 2006, resulting in the following[code]

View 4 Replies

Move An Existing Site To A New Root Folder?

Apr 29, 2010

when I first created my website I defined it in a random folder of my own choosing. Now, many months of construction later I want add some php related stuff and have to setup a proper local testing server.

I therefore have to move the whole thing to an htpdocs subfolder in MAMP - how can I do this so all links and filepaths etc are updated?

View 1 Replies

ActionScript 3.0 :: NavigateToURL Error #2148: Swf Cannot Access Local Resource?

Jul 25, 2009

I am having issues with a navigateToURL command in AS3. When I run it in flash i get no errors but when i publish the file i get the following error:

SecurityError: Error #2148: SWF file file:///C:/Users/jack bauer/Documents/Flash Projects/Banner2.swf cannot access local resource xml/links.xml. Only local-with-filesystem and trusted local SWF files may access local resources.
at flash.net::URLStream/load()[code]....

View 1 Replies

ActionScript 3.0 :: Relative Path In Loaded SWF Files?

Dec 14, 2010

I'm building a site that loads in various swfs for each section, which in turn load in videos, sounds, xml etc. Lets call these 'third level stuff'. Does anyone know how I can load the third level stuff into their swfs without having to put full paths in from the Main swf file? I hope that makes sense?! for example. A loaded swf pulls in a video from its own directory, so would look something like:

ActionScript Code:
request = 'videos/video1.flv'

View 0 Replies

ActionScript 3.0 :: How To Get SWF Files To Follow Relative Paths

Nov 19, 2010

So I got this Flash project of mine. It imports dynamically other flash files that can be found at other places (on the same domain). And those other flash files load XML files using relative paths. The problem is: when I just load one of those other flash files, then they treat their relative paths from the location of the flash file that loaded them on, and not from their own directory on. Is there any way I can simply tell the loaded swf file to keep following it's relative path orders from it's own directory on, and not from the directory of the file that imported it on?

Or are there really just two ways to fix this:
- place the xml files at the location the loaded swf files expect them to be (though this would get quite messy)
- change the ways all the loaded swf files import their xml stuff (this would take quite a long time)

Example:
I got a file "peter.swf" in it's folder "project_peter".
Location: "project_peter/peter.swf"

I also got another swf file, called "basket" (for example).
Location: "project_peter/importedstuff/basket/basket.swf"

And basked would want to load an xml file.
Location: "xml_files/basket_config.xml"

So the true location of the xml file would be:
"project_peter/importedstuff/xml_files/basket_config.xml"

However, the basket file would try to load:
"project_peter/xml_files/basket_config.xml"

View 1 Replies

Html :: Why Is The Relative Path Not Finding The Swf

Jul 26, 2011

I have this url and in the middle I have this embed link

[Code]...

But for some reason the flash doesnt pull up. I have the banner.swf in the /images folder as you can see with this link what am i missing

View 2 Replies

ActionScript 3.0 :: Preloading Site - Have A Document Root Also For Loader.swf?

Oct 25, 2009

I have a document class called Racine in which I add all the resize events so that the stage takes all the available screen. extract of Racine class :

[Code]...

As a standalone site, it is ok, but now, I want to make a preloader, and I am wondering what is the simplest way to achieve that by making less modification as possible in my Racine class? Suppose I create a swf called loader.swf loading my site, site.swf, is it possible to have a document root also for loader.swf?

View 1 Replies

Html :: Fl.video.VideoPlayer Loads Flv Relative To Swf?

Nov 9, 2009

Update: Turns out this is undocumented behaviour of the NetStream class - NetStream loads relative to the swf, as opposed to URLRequest which loads relative to the HTML doc...annoying.I am having a strange issue where loading an FLV file using thefl.video.VideoPlayer class that comes with CS4: Adobe docs hereUsually when loading external content into flashplayer, the path is relative to the HTML page that the swf is embedded in - but when I try and load an FLV using the VideoPlayer class the player looks for a path relative to the swf, not to the HTML (as you would expect).

eg:
My file setup is:index.html (which contains the swf)swf/my-video-player.swfvideo/my-video.flv

[code].....

View 1 Replies

ActionScript 3.0 :: Flash Relative Resize Within Html

Apr 21, 2009

I have flash within a html but when I view it on pcs with smaller resolution it sqaushes to fit screen.How do i make it so instead of squash to fit it stretchs and makes thinks relativly smaller etc.

View 2 Replies

ActionScript 2.0 :: Relative Addressing From Flash To Html Page?

Apr 22, 2004

I have a problem with relative addressing... it's not about _root stuff, but how to open an html page from a Flash movie.The Flash movie is inside a Folder named "Dogs". And the html document is outside this folder, sitting in the main folder for the site.Usually if I call a movie from inside a folder I put a slash eg. getUrl("dogs/intro", "window")but i want to go in the opposite direction, from inside this folder to a file outside... does that make sense?

View 1 Replies

Access Levels And Root?

Oct 8, 2010

I cant believe how the simpliest things are more complex to do in AS3.I tried to target a movieclip from inside another movieclip called bat_mc and these dont work!root.ball_mc.gotoAndPlay(2);orlevel0.ball_mc.gotoAndPlay(2);

View 1 Replies

Flex :: Access Root In AS3?

Feb 24, 2010

Say I have code in my main mxml and in a function like this:

this.addChild(someContainer);

and now I want to refactor code and move this to it's own class and method in a separate file. How could I access root now, since this obviously now points to the new class I created.

View 1 Replies

ActionScript 3.0 :: How To Access Root

Mar 27, 2009

I'm currently learning AS3.0 and I'm wondering how to access the root like example in AS2.0 you use the following to access the root.[code]

View 2 Replies

Load External Files From SWF Root?

Jan 14, 2010

I have been provided with some flash movies/apps to include in a web design that I am doing.  These flash movies load an external xml file.This is failing.The problem appears to be that when the flash movie goes to load the file using a relative directory path, it starts at the very root of the web directory, where the main jsp file is, instead of the where the .swf file is located.[url]...

View 1 Replies

ActionScript 3.0 :: Access Root From The Loaded Swf

Jan 13, 2011

I am migrating to AS 3.0 from AS 2.0 and I am unable to access the root of the main swf from the loaded swf. In AS 2.0 i simply used "_root.gotoAndPlay(frame number); I have also tried Movieclip(this.root).gotoAndPlay(frame number); but it doesn't work.

View 1 Replies

ActionScript 3.0 :: Access Workss_mc From The Root?

Sep 16, 2009

how to add a listener to a button inside of a movieclip that is in the library? Example:Root->work_mc(timeline)->workss_mc(added with Addchild)There is workss_mc in the library that gets loaded when someone clicks a button inside of work_mc. This is achieved with addChild. Within workss_mc there is a close button to close this. I've run into problems with working the navigation with this b/c I need to declare and create a single instance of workss_mc at a scope where it is visible to both click handlers, Doing this will place both handlers in one location. So in order to do that I would need them all to be where the navigation code is, the root. So how can I access workss_mc from the root?

View 17 Replies

ActionScript 3.0 :: Access To Stage When Not At Doc Root?

Jan 12, 2010

The code below returns the error message "Error 1120: Access of undefined property stage."

function select(event) {
if (event.target.name is Stage) {
currTool.target = null;
} else if (event.target is Sprite) {

[Code]....
 
I understand the reason for the error is because I'm trying to access the "Stage" when I'm not at my Document Root. The question I have it how do I do this same thing when I'm not at the Document Root?

View 12 Replies

ActionScript 3.0 :: Access To Variable In Root

May 29, 2010

I have a button in the frame 1 when i clicked it,it goes to the nextframe in nextframe i have movie clip named "circle". in frame 1 in action layer i have variable named "i" it has a number equal 20; now i'm in "circle" movieclip in the action layer i want to write a command for checking "i" if it's equal 20 the "circle" movieclip play but i can't find "i" how can i access to "i" variable in frame 1 ?

View 4 Replies

Actionscript 3.0 :: Access Root From The Loaded Swf?

Jan 13, 2011

I am migrating to AS 3.0 from AS 2.0 and I am unable to access the root of the main swf from the loaded swf.In AS 2.0 i simply used "_root.gotoAndPlay(frame number);I have also tried Movieclip(this.root).gotoAndPlay(frame number); but it doesn't work.

View 3 Replies







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