ActionScript 2.0 :: Programmatically Get The Location Of The Html Page The Swf Is On?

Oct 7, 2009

I built a flash file that pulls in an external file. During testing this worked because the html file with the flash and the external file to be pulled in were all in the same directory.Now I have the html file that loads the flash else where.In my flash file I have something like this.Code:xmlData.load("file.xml");What I need to do is to programatically get the directory location of the html page that is loading the flash so I can append it to the above code like so...

Code:
dirloc = get_dir_location_of_html_file_loading_flash;
xmlData.load(dirloc + "file.xml");

[code]........

View 0 Replies


Similar Posts:


ActionScript 3.0 :: Get The Location Of A Nested Movieclip On The Main Page?

Oct 31, 2009

My problem is that I have a moveiclip (called "clip") and I have other movieclips on that stage that are "branches", and those branches are made up of branch parts.  These branch parts are in a movieclip called (branchpart) and some of these have been placed on the branch stage.  When I am on the clip stage and I try to get the location branch[i].branchpart[j].x and ranch[i].branchpart[j].y,this location is given in the coordinates of the branch stage, not the clip stage.  These branch parts are being moved in complex ways with respect to one another, so I am hoping that I can simply access the location on the clip stage of a single part without having to deconstruct the whole branch. 

View 3 Replies

IDE :: Preload One Html Page / Once It's Loaded Into Cache Automatically Jump To Page With Big Swf?

Dec 29, 2009

I have a flash header for an html site that is about a megabyte and obviously needs a preloader. Unfortunately it won't work to have the preloader loading at the top while the rest of the html below is visible — it will end up looking like the top navigation is cut off, as the top 10 pixels of the nav bar is actually in the swf header (fully loaded it will look contiguous)Is there a way to preload it in one html page and then once it's loaded into the cache automatically jump to the page with the big swf?

View 1 Replies

Html :: Pulling A URI XML Location Through Flash Vars In CS3?

Sep 12, 2011

I'm currently doing a project that has to be multi-lingual. I need to be able to use Flash Var's to locate the XML file.why the below code does not work?ere is my AS3 code:

var xmlPath:String;
xmlPath = root.loaderInfo.parameters(encodeURIComponent["xmlPath"]);
Here is my HTML code:

[code].....

View 1 Replies

ActionScript 2.0 :: Linking From Flash To A Location In The HTML Doc?

Jun 2, 2010

Is it possible to have a link in Flash link to a different (named anchor) section of an HTML document? I suspect not but I imagine it may be doable with Javascript.

<a href="#tips">Jump to Tips Section</a>

HTML version of a jump to a named anchor. Question is can you accomplish the same thing from a link in a swf?

View 3 Replies

ActionScript 2.0 :: Loading A Dynamic Location By Html Var?

Aug 20, 2008

i have some problem...how can i load location from var in html?this is the html code that load the flash

Code:
<div align="center" id="flashcontent" class="virtual">This content requires <a href="http://www.adobe.com/go/getflashplayer/">Adobe Flash Player 9</a> and a browser with

[code]......

View 2 Replies

Flash :: Program An Html Page To Move To A New Web Page On User's Clicking An Item Of An Embedded Movie?

Nov 21, 2011

Let me ask how to program an html page to move to a new web page on user's clicking an item of an embedded flash movie? But , in detail, I actually want to do a little different thing. I want that the parent html page remains there ,instead I want a child html frame has a new page after user's clicking the list item of the embedded flash movie.

View 2 Replies

Professional :: Preloading An HTML / Flash Page On PREVIOUS Page

Jul 1, 2010

I have a site where all the pages have a common SWF embedded at the top (Nav and banner), but the rest of the page is HTML.Everything is working fine, but I'm finding the 'independence' between the HTML and Flash is making for some sloppy transitions from page to page.I was expecting the SWF to be delayed, at least for the first page visit(and I have a preload routine inside the swf to make it's delay and appearance a bit more visually pleasant), but was surprised to sometimes find the SWF appearing and playing while the HTML content was delayed (resulting in a SWF floating in black).What I'm wondering is if there's a way I can do some sort of preload on my index page.BUT, not the standard one that I'm sure everyone would suggest (like the javascript image 'preload', or the newer 'css visibility' preload trick). The problem with the standard one is that it doesn't check to see if everything is loaded.What I'm after is a routine on my index page that invisibly loads some of the elements from my inner pages (common swf, maybe some of the images) and WAITS until it's done before moving to the inner pages (displaying the company logo and/or a load status in the meantime).Many people would suggest a preloader inside the common SWF on my inner pages (which I have), but the problem with that on its own is that it doesn't stop the HTML from displaying.

I'm trying to figure out a way to do a preloader (like those in a SWF, which loops until everything is loaded) that controls both the SWF AND the HTML.Recently, I found that you can use one swf to preload another, which would be a potential solution, as I could make an SWF on the index page whose sole purpose is to load (invisibly) the common SWF, displaying the load status and then loading an inner html page once it's done.Problem is, I have bee having trouble finding the coding for that, as most searches for preloaders end up being about standard preloaders, where it's monitoring the same SWF that the code is on, as opposed to controlling a second, external SWF.Can someone point me to or provide me with the proper coding/procedure for a preloader that controlls a second external swf or give me a better solution?
 one?

View 1 Replies

ActionScript 3.0 :: Flash File Won't Show Up On Page Unless Type In Direct Location

Jul 12, 2010

im working on a website called [URL] and im trying to get it to have coming soon on it so I created a swf file called index but it wont play unless you type in. [URL] For the life of me I cant figure out why it wont go to it...im using dreamweaver cs3 to create the page

[Code]...

View 3 Replies

ActionScript 3.0 :: Flash File Not Show Up On Page Unless Typing Direct Location

Jul 12, 2010

Flash file wont show up on page unless you type in direct location. I am working on a website called phocusmag and I am trying to get it to have coming soon on it so I created a swf file called index but it wont play unless you type in. Phocusmag.com/flash/index.swf

For the life of me I cant figure out why it wont go to it...im using dreamweaver cs3 to create the page
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL]">
<html xmlns="[URL]"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
[Code] .....

View 7 Replies

Flex :: How To Change Location Of HTML Template Folder

Jul 7, 2010

The normal structure is:
project/
bin-debug
html-template
libs
src

I want to change it to:
project/
bin-debug
flash/
html-template
libs
src
I know how to change the libs and src folders, but not html-template. Is it possible?

View 1 Replies

Making A New Page Popout From An Existing Html Page

Sep 9, 2009

I want to build function on my site where I click on the link, and a new page (background opacity maybe at like 50%)  - which consists of a video in the center and a link or two - floats on top of the already existing html page. I've seen this done a few times and I think it's a really cool function.

View 1 Replies

ActionScript 2.0 :: Make A .swf Placed Onto A Html Page Be As Wide As The Page?

Oct 11, 2006

I've been trying to recreate the effect on this page [URL] change the height of the page and notice how it's content moves.

how you make a .swf placed onto a html page be as wide as the page, and let the flash file know how wide it is being displayed so the content does not stretch out

View 1 Replies

ActionScript 2.0 :: Passing HTML Form And Hidden Variables From Flash To Html Page

Dec 3, 2003

I have a html/flash site now, [URL]. i access email from my site itself by giving the userid and pwd text box which i copied from the actual website hosting my email access. i copied the entire <form...></form> tag to my page and thus was able to put the name and pwd in my home page only and access the email in a separate window. now i have redesigned my webpage using only flash. i would like to know how i can implement the same using flash. as i have not much experience using action scripting i am a bit stuck about how you pass the hidden form variables. the below is the the exact form syntax:

[Code]...

View 1 Replies

ActionScript 3.0 :: Controlling Sound Of Separate Html Files Within Same Html Page

Sep 11, 2010

I need to allow users to preview audio files for purchasing. I have CF pages that return records form a SQL database. Each record contains the same swf file however, each swf file points to a different mp3 for previews of different audio examples. So far, everything is working fine. My problem is that I need to be able to stop the sound from one swf when I click to play a second swf .The only solutions I see in Flash forums deal with loaded swf files. These are not loaded files they are separate files within a page. The question is: How do control one swf from another swf in the same page.The following items have not worked: soundChannel.stop();,soundMixer.stopAll()

View 2 Replies

Professional :: Flash - File Wont Show Up On Page Unless Type In Direct Location?

Jul 12, 2010

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

[code]......

View 5 Replies

ActionScript 2.0 :: Flash + HTML + Variables - Go To The Home.html Page An Animation Will Play From Start And Then Stop At The End Of It

Feb 25, 2010

when you go to the home.html page an animation will play from start and then stop at the end of it. However, for all other pages i.e contact.html aboutus.html we need the animation to skip to the end straight away and not to play the whole animation through. I was thinking this would be controlled by a variable or some kind of external text file ect. Basically in the first frame the actionscript needs to basically say

"if this html page is aboutus.html then go to the last frame and stop" and with the index page it would say "if this html page is index.html then keep playing"

View 2 Replies

Html :: Set Link Of Another Html Page On Flash File

Mar 11, 2011

I want to set link of another html page on flash file.

View 1 Replies

Flash :: Html - SWF Object Rendering At The Html Page

Jun 19, 2011

I would like to ask when swf object rendering at the html page? Is it rendered only it's visible? If swf at the page bottom that is not visible, will swf be rendered when I scroll down? The problem is that swf object raises some events when it's rendered and I would like to force rendering even if swf object is not visible.

View 1 Replies

Html :: Load Html Page Into Flex Textarea?

Jun 2, 2009

I would like to show some textcontent from a website in a textarea box in flex.

<?xml version="1.0" encoding="utf-8"?>
import mx.managers.PopUpManager;
import mx.core.Application;

[code].....

View 3 Replies

Html :: Works When Tested In Flash, But Not On Html Page?

Feb 29, 2012

I am trying to create an ad for a website. When someone clicks on the ad, it is supposed to redirect them to a website, and register the click with google analytics.I have done this with the following script:

import flash.external.ExternalInterface;
movieClip_3.addEventListener(MouseEvent.CLICK, onClick);
function onClick(event:MouseEvent):void {

[code].....

View 2 Replies

ActionScript 3.0 :: Load HTML Page Without Html Tags?

Jan 16, 2010

I was wondering if flash can load html document, the way browser displays it.

View 1 Replies

Media Server :: Location Of The Server Page Data To Edit?

Aug 3, 2011

What the directory location of the default webpage data when the Adobe Interactive FMS 4 video is installed at?When the page loads it has all of the Adobe products and featurs on the page, I just need to know the location so I can edit it.

View 1 Replies

ActionScript 1/2 :: Make An Object Tween From Its Starting Location To The Location Of A Mouse Click?

Apr 27, 2009

I am trying to make an object tween from its starting location to the location of a mouse click. I have a script, but it has a very annoying ease to it.I would LIKE the object to mantain a certain speed during while traveling from its starting location to the mouse click location.

View 16 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

IDE :: HTML Link To Website AND ALSO Link To Location In SWF?

Feb 27, 2009

I have a 90% all flash-site and when u click news webpage splits up in HTML blended with flash in a page called news.asp

(buttons are in flash and content in asp bellow)When loceted on news.asp and you click... let's say service you go back to index.html with the flash main.swf, but the link has ALSO have to go to label (service) or frame 30 lets say...

View 1 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

CS3 Redirect An Flv To Another Html Page

Jul 29, 2009

i'm an motion-graphics designer, who had experience with flash only this was 8 year's ago. I'm not a programmer so I allways had people around me who could do the flash things. So I absolutely have no idea how it works.

Now i'm making a website, with an swf which play's an flv. The flv can be paused etc. now is my question, after the flv is played I want this to redirect to for example index2.html where are a couple of links. and from that page you can go to the next.

I've seen on the web a lot of reactions about this question, people say use the playerdiy.com. but that's not gonna work for me now.. Because i have set the design up this way (picture in swf which say's ichap etc, with a black solid where the video is been played).

Playerdiy does what i want's but i wanna have my swf design what I used here: [URL] this is with playerdiy: [URL]

View 5 Replies

Set Up Preloader On Html Page?

Jan 11, 2010

I have a .swf with my animation. Then I have another .swf that contains my preloader. I haven't used preloaders before. I usually just publish my .fla to an html page and upload to my website. But if I have a preloader (another .swf), how would I go about setting that up on an html page?

View 2 Replies

Display Both FL7 And FL9 In One HTML Page?

Mar 26, 2009

I've developed an html page that displays a FL7 swf embed on top, and a FL9 swf on bottom. If a user doesn't have FL9, I don't want to prompt an upgrade request - instead, I'd like to have the FL9 swf swap out for a jpeg/gif. Therefore, my FL7 portion will always be there, and if they happen to have FL9, they get extra content.I'm unable to upload the current code due to the content... but here's the current code snippet:

<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>
<body>

[code]....

View 1 Replies







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