Relative/Absolute Link In Posting F4V File To The Web?

Jun 12, 2009

I am working in Flash CS4.  I have successfully run a .wmv file through the Media Encoder, converted it to a f4v file, imported it into Flash, and published it with a skin to a folder on my hard drive.I am learning this on my own (no one else in my state agency knows Flash - we are just getting started with posting videos on the Internet, and this is the test case).I get the following four files in one folder on my hard drive (I have put in parentheses what I think the files do, please correct if I am wrong):
 
oil.f4v (the movie file)

Test.html (the html page in which the swf file is embedded to play back the movie)

Test.swf (the swf file that is embedded in the html page)

SkinUnderPlayStopSeekMuteVol.swf (the skin file that is linked to from the Test.swf file??)
 
My question is:  As long as these four files stay in the original folder, the html page plays the movie perfectly.  As soon as I rename the folder, nothing works.  It appears to be a question of re-establishing a relative/absolute link among the files? I want to post these to my live site in order to test, but of course that won't work yet either.

View 9 Replies


Similar Posts:


ActionScript 3.0 :: Passing Relative Url In Flash (or) Absolute Path Vs Relative Path

Jul 6, 2009

I am new to Flash and ActionScript 3.0 environment. I don't have any knowledge in depth with Flash and ActionScript 3.0. I am using the flash(.swf file) in my Java application. Now, this .swf file is to be placed in the server system. While I am working with these, I faced an error. Here, my issue/problem(s) starts....

1.)With the help of URLRequest & URLLoader classes, I am loading a jpg file dynamically onto the stage using the following code:

[Code]...

View 1 Replies

ActionScript 3.0 :: Relative And Absolute Path?

Jun 21, 2010

I have doubt about relative and absolute path. I mostly use relative path to load xml, sound and image Is there any problem with cross domain policy?Which one is better in web projects?

View 1 Replies

Automatic Absolute To Relative Paths Conversion?

Jul 15, 2009

I have a bunch of Flash (.fla) files where I need to convert all absolute (root) target paths in timeline scripts to relevant relative ones. Doing it manually in Flash CS4 is very tedious work and using "replace" action is tedious too as there are multiple nested timelines. Is there any way to automate this task?

View 4 Replies

Actionscript :: Convert A Relative URL To An Absolute URL In Flex

Jan 5, 2010

I am working with Flex, and I need to take a relative URL source property and convert it to an absolute URL before loading it.

The specific case I am working with involves tweaking SoundEffect's load method. I need to determine if a file will be loaded from the local file system or over the network from looking at the source property, and the easiest way I've found to do this is to generate the absolute URL.

I'm having trouble generating the absolute URL for sound effect in particular. Here were my initial thoughts, which haven't worked.

Look for the DisplayObject that the Sound Effect targets, and use its loaderInfo property. The target is null when the SoundEffect loads, so this doesn't work.
Look at FlexGlobals.topLevelApplication, at the url or loaderInfo properties. Neither of these are set, however. Look at the FlexGlobals.topLevelApplication.systemManager.loaderInfo. This was also not set.

The SoundEffect.as code basically boils down to

var url:String = "mySound.mp3";
/*>> I'd like to convert the URL to absolute form here and tweak it as necessary <<*/
var req:URLRequest = new URLRequest(url);
var loader:Loader = new Loader();
loader.load(req);

I would also be perfectly satisfied with some way to tell whether the url will be loaded from the local file system or over the network. Looking at an absolute URL it would just be easy to look at the prefix, like file:// or http://.

View 1 Replies

ActionScript 2.0 :: SendAndLoad Relative Vs Absolute Path

Feb 19, 2009

I'm attempting to use a relative path with SendAndLoad to my php query page named variables.php. Things seem to work just fine when I reference variables.php using an absolute path [URL], but variables are being returned as undefined when I attempt to call the page using just "variables.php." To add complexity, the swf is being referenced in an included page which is wrapped inside another page.

I know the path needs to be relative to the html/php page, not the swf itself. But what if the html page where the swf is encoded is actually being called from within another wrapper? I'm assuming the path needs to be relative to the final page, regardless. My guess is that the php isn't being parsed correctly when called via the relative path, which is the cause of my problem. Can anyone provide any insight? /dir/media/myflash.swf is called by /includes/myincludedswf.php which is then called by /home/final page.php if variables.php resides in the home directory, shouldn't I be able to use the path "variables.php" in the SendAndLoad directive?

View 0 Replies

ActionScript 2.0 :: Relative Or Absolute Adressing [fmx 2004]?

Apr 26, 2004

Im a bit confused about the adressing of .swf-files loaded into levels of another .swf-file.The adressing seem to be absolute, ie. if a sub.swf (which is loaded into a super.swf from another location) uses some sort of adressing (for instance, loading an image), that adress must include the path from the super.swf.

Cant you change that somehow, so that sub.swf's can adress other stuff relatively to its own adress?

Can you do that globally (so that relative adressing is used by every .swf)?Can you set it individually, so that adressing is relative only from the specified swf's?

View 9 Replies

ActionScript 2.0 :: FileReference.download Must Take Absolute URL (not Relative)?

Feb 9, 2007

Im using this code

[Code]...

However, it doesn't work. It works when I put the full absolute address, instead of simply "images/img1.jpg" . Is there any way to use a relative address?!?!? Probably attach the relative address to the URL property?

View 3 Replies

Professional :: Position Elements Relative To Other Elements Or In Absolute Values?

Jan 26, 2010

Is it generally to position elements relative to other elements or in absolute values?

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

Difference Between Absolute Path And Relative Path?

Apr 30, 2011

What does _level0,_parent and _root mean in flash?What's the difference between absolute path and relative path?

View 1 Replies

Changing The Link Path To Absolute Between The Index.swf And 1.swf, 2.swf?

Mar 24, 2010

im trying to embed an swf file in facebook. To cut the story short, the swf im trying to embed is loaded fine but stops at preloader stage (0% of 1) and is not progessing as if it has missing link and couldnt locate something (the files struscture is one main swf file; index.swf loads other 5 swf),But, when i tried to load it up directly from browser, it works fine. I have been advised that changing the link path to absolute between the index.swf and 1.swf, 2.swf etc would solve the problem.

My questions will be:

-how do i change this path, because i couldnt seem to find any link that reflects the connection between those files?

-Is there any feature in flash that would be able to show this link rather than diggin up every symbol?

-If changing the path wouldnt solve the problem, what could be the reason this error is happening?.

View 1 Replies

ActionScript 3.0 :: Flash Banner Absolute Link To XML Not Working

Feb 24, 2010

I have a flash banner that references and XML file with an absolute link, whilst I test the banner locally it works fine but when I test it online it doesn't link to the xml file.

View 1 Replies

Actionscript 3 :: Flash Builder: Define Relative Source Link For Linked Lib

Apr 22, 2011

How do you define a relative link to the source of a linked library in Flash Builder (4).
I have a swc folder defined for a project. I want to link one of the contained swcs to it's associated source. This works fine except that the path stored in the .actionScriptProperties file is absolute. Here you can see the linked lib:

[Code]...

View 1 Replies

C# :: SWF Posting Image File To ASPX Page

Feb 22, 2011

I'm trying to save a file using HTTP request from a SWF file to an ASPX file. i have a WinForms app that hosts the SWF using AxShockwaveFlash control that passes parameters to the SWF that generats the file and posts it to an ASPX page. the page uses the binary data to save the binary stream to a file in the following way:

[Code]...

View 1 Replies

Actionscript :: Get Absolute Path Of My Swf File In It?

Aug 17, 2009

I would like to get the absolute path of my swf file from within Actionscript.[code]...

View 1 Replies

ActionScript 2.0 :: While Posting Mail It Opens My Aspx File In A Separate Window

Aug 7, 2006

I have been using this function for a long time and this problem never occured. When the user press send button it does send the form as email but it also opens my aspx file in a seperate window.[code]...

View 3 Replies

ActionScript 2.0 :: Entering Text Into A Input Field And Then Posting It To An External File

Nov 6, 2003

Is it possible to change text in like a notepad file by using flash so entering text into a input field and then posting it to an external file.

View 1 Replies

ActionScript 3.0 :: Absolute Path To File Via FileReference?

Sep 8, 2011

I am wanting to allow a user to select an image from their computer to use as a BG. FileReference does this job well, however it does not provide the absolute path to the selected file.
 
I want the selected BG to stay in their "save" (local SharedObject cookie) so that it can be loaded the next time they come back. But since FileReference only provides me with the filename, I'm not sure how to go about storing this information for later. I could, I suppose, store the image data into the cookie directly, but that would be terribly inefficient since many BG images are rather large for a cookie.
 
how I can go about finding the image file path that the user selected, or efficiently saving the image they chose?

View 1 Replies

Professional :: Absolute URLs  Not Working When File Is On A Remote Server?

Sep 23, 2010

My client has asked me to provide a template for an investor relations section of their website. The HTML page or template for this page will be at the service providers site, but all the images etc. for the page will be linked to files on my clients server. Everything looks fine, but the absolute URL's in the .swf file back to my clients site aren't working.
 
This is what the service provider's guidlines say, but I'm not sure where the code is supposed to go:
  
Similarly, newer versions of the Flash Media Player installed by most users have a high level of security enabled by default. This is done to prevent Flash movies from playing on web pages that are hosted on different domains than the movie itself (again, to combat "phishing" or "spoofing").

[Code]...

View 3 Replies

Flex :: Rewrite Absolute URL Request Made From A Flash (swf) File In Browser

May 13, 2010

Is there a way to rewite (or hijack) an absolute URL request made from a flash (swf) file in a browser?I have a flash application that is requesting URL..The code in the flash application cannot be changed but I want to be able to either use another flash or some javascript to write that URL as the image is beging requested - to something like URL...

View 1 Replies

ActionScript 3.0 :: Relative URLRequest - Read The Raw Php As A File

Feb 10, 2009

var req = new URLRequest("submit.php"); I want to do that for either localhost or the remote host, using the same code. As written, it will read the raw php as a file. If I insert a host name and protocol:

[Code]...

View 2 Replies

Flash CS5 :: Set Relative Library Path For SWC File?

Aug 21, 2010

I've downloaded the tweener.swc from their google project page I create my fla file put it in a folder and put in the same folder the tweener.swc file.
 
I go to ActionScript settings > Library path > hit the + button > I type the relative path which should be just tweener.swc or not sure but just a dot (.) or / to get all the classes and libraries from the same folder in which the fla is located.
 
But it says it can't load the swc or my imports don't find the classes.
 
P.S. With absolute path it works.

View 12 Replies

Do Package Names Have To Be Relative To Fla File Location

Jul 27, 2009

I'm trying to do some restructing of a flash codebase, and I was wondering if anyone could clarify something for me as I'm unsure whether what I'm trying to do goes against a fundamental priciple of flash development or I'm being confused by the Flash CS4 user interface(I've got a java development background, so some of the interaction between fla files and the like is somewhat difficult at times to get my head around). I've done several searches but can't seem to find any similar problems, apologies if any exist.

Basically, I want to restructure my codebase and move my fla files around by putting them at a different location in the directory structure.

Existing structure:
basecompany namecomponent name

where fla files are stored in base, and code is stored in company namecomponent name, and code in said location is in the company name.component name package.

What I want to do is move my fla files from base to component name for each individual project. The actual location of the code is unchanged, but the fla files no longer compile, giving me a 5001 error - package name does not reflect location. I'm assuming that this is because the relative location is different - as far as the fla file is concerned, the code it is referencing is located at component name, not company namecomponent name. Is it possible to make the CS4 publisher understand that the fla file is not at the root of the package structure, and if so how?

View 1 Replies

Asp.net :: Unable To Set Relative Path For Flash File In MVC Using AC_FL_RunContent

May 6, 2010

I have a website using asp.net mvc in which I need to embed a flash file in view. I am unable to set the relative path for the flash file. Given below is the code I am using:

AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0',
'width', '487',

[Code].....

where I copied butterfly.swf in a directory called images. images directory resides in the views folder.

If I use code behind( default.aspx default.aspx.cs) in a different solution with the same folder strucuture, browser is able to load the flash file.

View 1 Replies

Link Flash File To Link To Dreamweaver Page?

Jan 11, 2010

i have created a flash animation for my homepage, i want to make part of that flash animation a "enter" button so when clicked would go to my page 2 on my website.

i have never done any script before and only used dreamweaver on a mac. is there an easy way to create this button to link to my next page and to stop my file to stop looping?

View 1 Replies

Flash :: Edit Swf File Link Without Fla File?

Nov 13, 2011

How to edit flash file (.swf) without .fla file ? I got banner in swf file and a need to make something like that:

when user click on that banner he will be redirected to an url (for example [URL]

View 1 Replies

ActionScript 2.0 :: Posting Variables To Php?

Sep 24, 2009

all I'm trying to do is set the variable names of two input text boxes and then post those to a php file... in the php file I just want to echo back those two variables

View 10 Replies

Posting Value To New Or Number Array

Aug 1, 2010

I am trying to use the code below to get the info from the arrays and if the value is +,-,* or / the array value is posted into a new array otherwise it is posted to a number array:
Code:
var i = 0;
operator = new Array();
calc = new Array();
var myArray = ["0","1","+","2","*","5"];
while(myArray.length > 0){
[Code] .....
Which shows the length at only 1??? however the code seems fine from the other trace info.

View 1 Replies

ActionScript 3.0 :: Posting XML To A Database?

Oct 25, 2010

I have an ongoing project that outputs xml data to my client's server via a php script. The client would like to move the XML into a database, and their database company has instructed me to POST the XML to a web address with a form field linked to the database. This produces a server error (if I manually paste the XML into the form it works). In order to get this to work, does there need to be a PHP or some other server side script between Flash and the database

View 12 Replies







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