SWF file contains ref. to local dir structure
Newbie here; sorry.
Flash CS4 Professional, ver. 10
Am creating a simple flash video to get my feet wet. In the
process, I am drowning.
I created the video with Flash (ActionScript 3.0) by
inserting a player object, and specifying a f4v source that I had
created using the CS4 Media Encoder to convert a wmv file; nothing
to it.
Publish Preview worked fine. Publish Settings/Publish created
the necessary files, just as decribed in a Flash 411 tutorial:
http://tv.adobe.com/?trackingid=EBYHH&pss=fl_10.0.0_win_en_full__PF_20040226#vi+f1527v1000 .
Video works fine on my local PC (XP, SP2). But when I load it
to my server, it does not work. In IE 7, the page loads; source
code is there, but the window is blank:
http://www.bbhq.us/pva1.html
Adding mime type to .htaccess file did not solve the problem.
Changing permissions to the files did not, either.
It apparently is not a server problem. A simple swf file
created by Mr. Gates and simple HTM coding works:
http://www.bbhq.us/flash3.htm
What does Mr. Gates know that I do not?
Well, where do I begin???
However, when I loaded my file --
http://www.bbhq.us/pva1.html
-- in FireFox 2.0, I got a blank window, but also this revealing
error message:
SecurityError: Error #2148: SWF file
http://www.bbhq.us/pva1.swf
cannot access
local resource F:\pva1\pva0117a.f4v. Only
local-with-filesystem and
trusted local SWF files may access local resources.
at flash.net::NetStream/play()
at fl.video::VideoPlayer/
http://www.adobe.com/2007/flash/flvplayback/internal::_play()
at fl.video::VideoPlayer/
http://www.adobe.com/2007/flash/flvplayback/internal::_setUpStream()
at fl.video::VideoPlayer/
http://www.adobe.com/2007/flash/flvplayback/internal::_load()
at fl.video::VideoPlayer/load()
at fl.video::FLVPlayback/doContentPathConnect()
That tells me that the swf file has my original directory
location and file name(s) -- F:\pva1\... -- embedded in it. No
wonder!
However, I cannot see where in Flash I specify a directory
structure for my video, other than, of course, when I originally
specified the video to add to the player component. But somehow,
the swf file picks up the directory structure as part of the file
names. That boat does not float.
Adobe help did not throw me a life preserver; it tossed me a
lead weight, instead.
Must be a settings issue somewhere, or I am missing something
obvious that I just cannot see.
Goin' down here for the 3d time. A little help here, please.
Thanks.
Thanks for your quick response. But it left me still treading
water.
Yep; got to the content inspector; The parameters that I see
are as follows:
align
autoplay
cuepoints
islove
preview
scalemode
skin
skinautohide
skinbackgroundalpha
skinbackgrundcolor
source
volume
There is no contentpath parameter/property.
This help page references the contentpath that you
referenced:
http://help.adobe.com/en_US/Flash/10.0_UsingFlash/WS0ED77F00-2006-49aa-8399-92B6D5D8CE00.h tml#WS9A834D6F-8206-4e07-B840-456EF90C03CB
It describes the contentpath as you suggested:
"contentPath (AS2 files) String that specifies the URL to an
FLV"
The reference to AS2 in parens suggests that this parameter
applies only to AS2 files. Or, perhaps this parameter is not
applicable in CS4, version 10. I donno, but I sure do not see it in
my version of Flash.
However, you and the the help page did throw me a lifeline.
WIth the f4v file already loaded on my server, I modified my
project, specifying, as the source parameter, the name of my fv4
file as it is loaded on the server -- http:www.myserver...fv4 --
not the file on my local PC. So when Flash published the project,
it uses that name, with no reference to my local directory..
Of course, the f4v file must exist on the server for it to
publish properly.
That did it.
It makes sense, but it is certainly not obvious and it is not
explained in any documentation I have found.
Am I the only one to whom this was not obvious?
Thanks; you led me to a solution.
jjt
Similar Messages
-
How can I check the local dir structure
Hello,Everyone,
Did someone has experience for the XML DB? My question is :How XML DB repository manage the dir structure in the physical file system? If I can, where is the "/home"(for the demo) directory located on the machine? under "oracle/ora92" or somewhere? another way where is the http server document root dir on the machine? Thanks a lot...Hi Richard
XDB doesn't manage directories or files on the physical file system. In fact it is like a virtual file system completely stored in the DB.
For more information: http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96620/xdb17fol.htm#1042689
Chris -
I have serious problems with Muse swf files containing movies. How I can fix them?
I created swf format documents with InDesign. These documents contain movies in mp4 or flv format. When I put these documents in Muse I programmed processes work perfectly except the films, which are not displayed. I have observed that in the folder that is generated when exporting as HTML does not contain any video files swf containing original documents. Please, I need a solution. Thank you!
Hello,
Please take a look at this informative post which talks about the same issue: http://forums.adobe.com/message/5123447
Hope this helps.
Cheers
Parikshit -
Flash (swf) files won't play LOCALLY
For a couple years now I've been making Flash demos that are
embedded in an HTML page, for viewing online. The exact same pages
also work offline, ie. from a CD, USB drive, or another PC's hard
drive.
Suddenly, that just stopped working! I've done all the
troubleshooting and bug elimination I can do - there's no reason I
can come up with why the pages which preview fine off my authoring
PC and work perfectly when online, DON'T work anymore when the
exact same directory is taken to another PC.
All the referred links are in place, I can view the SWF from
USB when I drag & drop the file to a browser (so the plugins
are fine), I know the linking is correct, but when the HTML is
viewed locally from another machine, the embedded SWF just... never
appears. My old pages done the same way still work, but no new
pages do. I've compared code side-by-side and it all looks fine...
this page show the demo fine online...
www.invmed.info/test/all_mono/e_demo_clrcassette_mono.html
...but when you download this EXACT SAME directory to another
PC, the Flash doesn't appear. Can anyone please tell me why?? Here
is the simple directory of files:
www.invmed.info/test/test.zipI FIGURED IT OUT! The AC_RunActiveContent.js script was not
being correctly pathed to by Dreamweaver, even when brand new pages
were made. For the script to be created the first time (and it
won't mention it again after that), you have to start a whole new
site. Once I did that, the clues finally started fitting together.
Found the code via search, fixed the offending path, and
voila. -
How to copy a dir structure with files and subdir's in to another dir
Hi there.
How can i copy a dir structure with files and subdirs to another dir structure
ie., all files and dirs in side the dir c:\aDir to c:\copyDir so i should get like c:\copyDir\aDir(all the files and subdirs of adir here)
Thanks in advance
MuthuFile f = new File(dirName);
if(f1.isDirectory()) {
String list = f.list();
then u have perform file io for each file and copy them to dir u want
[email protected] -
Differences between the 2 ways to play local swf files in flash player
There are 2 ways to allow the flash player to play local swf files:
Add the directory/file of the swf to the Global Flash Player Trust directory. http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9 b90204-7c95.html
Add the directory/file of the swf to the Trusted Location Settings in the Local Settings Manager.http://help.adobe.com/en_US/FlashPlayer/LSM/WS6aa5ec234ff3f285139dc56112e3786b68c-7ff0.htm l#WS6aa5ec234ff3f285139dc56112e3786b68c-7fea
Adobe doesn't mentioned in the document what's the differences between these 2 methods, and they look has the same effect. But when I'm doing it on OS X, Safari 6.1, the first method doesn't work (It was working when I was using Safari 6.0). And then I tried method 2, it works…
So I'd like to ask what are the differences between these 2 methods to play local swf files?For playing local SWF files, Download the Macintosh Flash Player 11.9 Projector
It's a standalone app. Just copy it to your Applications folder. Launch it, and drag the SWF to the Dock icon. It'll play. -
Commons net and retrieve complete dir structure
Hi everybody,
I'm using commons net from apache to connect and download files from a FTP site.
I have a question: is there any easy (and quick above all...) function to get the complete directory structure of FTP site without using recursively the listFiles() method, which takes a LOT of time?
I only need to syncronize a local dir structure to the FTP one. I don't need to download any file. Many thanks for your help.1) I like to retrieve ftp files only with some
extensions like *.txt or *.jpg etc. How can we
retrieve files with specifying file extension?
List the files and then filter the list to those that you want to process.
2) I need to compare the FTP Files with the local
files before downloading from the FTP Server?Think about this one! To compare two files you nead to read both. If you do this on the client then you will have to copy the file from the server first!
>
3) I need to move files from the ftp server to local
directory. Is there is anyway to move the files
rather than first retrieve files from the FTP Server
and then deleting the file in the FTP Server using
FTP delete()What is wrong with copy then delete? -
Problem with music in swf file when loading site to server
Hello,
I am a newbie to Flash and have an swf file I created for a
website,
http://www.kanzamancleveland.com.
I have a button there that turns the music on/off when the site
loads. I also put some music into the swf file, but instead of
putting it directly in the swf file, I am calling it from the
actionscript code in the swf file. I want it to stream when the
site loads and start loading/playing after the site loads. The code
is embedded in the on/off button. Now this code works when the swf
file is on my local hard-drive, but when I put it on the server
with the rest of the website, it doesn't work. Any ideas?
Here is the code:
import fl.motion.Keyframe;
import flash.display.MovieClip;
import flash.media.Sound;
import flash.media.SoundChannel;
import flash.net.URLRequest;
import flash.events.Event;
import flash.events.MouseEvent;
var _sound:Sound;
var _channel:SoundChannel;
var _playing:Boolean = false;
var _position:int;
var request:URLRequest = new URLRequest("lowsaaloony.mp3");
var buffer:SoundLoaderContext = new SoundLoaderContext(5000);
_sound = new Sound( );
_sound.load(request, buffer);
_channel = _sound.play( );
_playing = true;
offbtn.addEventListener(MouseEvent.MOUSE_UP, onPlayPause);
function onPlayPause(event:MouseEvent):void {
if (_playing) {
_position = _channel.position;
_channel.stop( );
} else {
_channel = _sound.play(_position);
_playing = !_playing;
gotoAndPlay(2);
stop();
I put the code together going from various Flash help
websites, and it works when everything is on my local hd, but again
as I mentioned before, when I put it up on the server, the music
doesn't play. I contacted the hosting company and they said that
they do allow streaming music on a website using Flash. Any help on
what I am doing wrong, or what else I need to do would be highly
appreciated. Thank you.
JayHi. It looks like your code is not finding the mp3. At least,
I can reproduce your error code by removing the mp3 from the
directory, or renaming it.
Btw, if you test with FF instead of IE, you'd see the error:
Error #2044: Unhandled IOErrorEvent:. text=Error #2032:
Stream Error.
at KZFlash_fla::Sound_2/KZFlash_fla::frame1()
Hope that helps. -
Unloading external swf file keeps memory usage growing up
Hello everybody,
The idea is very simple: I have a submain.swf with 5 buttons. Each button loads an external .swf file.
com_loader.load(URLRequest);
After playing first external swf, before I go to next one, I try to unload it:
1. remove all its associated listeners:
com_loader.contentLoaderInfo.removeEventListener(Event.INIT-PROGRESS-COMPLETE, idFunction);
2. unload it:
com_loader.unload();
3. set to null:
com_loader = null;
and load next external swf file and so on.
The problem is that the FireFox/IE8.0 Memory Usage in Task Manager is going up and I see no sign of GC activity even after 5 mins of playing. Can anyone light me up pls? This is the second week working around and no good news until now.
Thanks in advance.
P.S.
If I try com_loader.unloadAndStop(); it gives me the error: Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.
Vince.Hi Ice,
The loaded swf file contains only a small photo, just for testing, with no listeners or other stuff in it.
Vic. -
Problem playing an swf file created in Bridge
Hello everyone
I have created an web gallery using Bridge and tried playing a swf file containing the slideshow with no luck. When I double-click the file, it open an Adobe Flash Player window but a spiral appears at the centre and just keeps turning. Because my intention is to upload the swf file to a website, I really need to get the file to play the slideshow.
Has anyone succeeded in making a standalone swf file using Bridge or any other Adobe product? If so, please let me know how to.
Thank you,
PomHenk,
I'm not on 3.0 so I can't help you out, but I would suggest re-posting on the Enterprise Administration portion, perhaps it'll get more notice there for a resolution.
Thanks,
John -
Concern in published SWF file using Presenter for PPTX
I observed that the PPT files (2003 version) which were published using Presenter 7 were creating a SWF file containing multiple frames. However the PPTX files (2007) which were published using Presenter 7 were creating a SWF file containing single frame. I am wondering how do I access a movieclip containing an animation.
Let me re-phrase.
I am loading the Presenter SWF into my Flash file (controller). Once the file is loaded I am controlling that file; I mean to say, I play/pause or jump to particular frame using the Flash file (Controller). This was working fine when I published PPT files, however when I published the PPTX file I am not getting the expected timeline animation so as to control it.
Now I am wondering how I can control the PPTX published file using my controller.
I will grateful, if someone helps me to solve this issue. -
Making a loaded swf-file loading images into the movie..
Trying to convert my problem from norwegian into english
isn't always that easy... :)
Anyway..
I've created som cool buttons that I want to be loaded into a
movie (let's call i MainMovie.swf) and from there I want the
buttons to be able to load images into a movieclip (ImageContainer)
inside the MainMovie.swf.
Is it possible to make the MainMovie.swf communicate with the
the loaded buttons (each button is a swf-file containing the
actionscript, objects, etc.) so when the buttons are clicked they
load different images into the ImageContainer?
My idea here is to include an as.file into the MainMovie.swf
as well containing the url's to the images that I want to be loaded
into ImageContainer.
I've tried to create a button on a layer above the buttons
that's loaded into the MainMovie.swf but I end up with the loaded
buttons not working properlu because of the button that I've
created and placed above them.
Now, I don't want the url's inside the buttons thats loaded
into the MainMovie.swf as I want the ability to be able to replace
those buttons-files without having to use too much time writing the
url's in each button.
Thanks folks.are all your swfs using as3 or as2? if as3, you won't be
loading into a movieclip: you'll use a loader instance and you can
reference (or communictae with) the loaded as3 objects using the
content property of your loader once you cast it as a
movieclip. -
Can i add play/pause button when playback swf file??
Hi all
i have a script to convert ms office docs to pdf then to swf files and display it in my web site, the problem is that the output files (swf file) contain each page of my documents in a separated frame and when i load the page there no possibilitie to control this file (play / stop) or (next/previous) buttons, the only way is to use the right click menu options.
i am asking if there are any solution to embed my converted swf files and control it.
thanksHi,
It sounds like you'll want to talk with the author of the script that builds the swf. If that's you, then I'd recommend reposting this question over on the Flash Professional forums.
Thanks,
Chris -
Residual swf file on client computer?
Once you closed the browser that ran an Flex, is the swf file
containing the client application left on the hard disk or the RAM
of the client computer?It isn't a security issue unless you are trying to prevent a
3rd party other than the user/client from accessing the data. If
you do not want a client/user to have access to hack the code, then
it cannot be allowed to ever run on hardware a client/user
controls. This is Security 101. Same reason you can get cracks for
every game ever made, every major program ever released, etc. If
the client can run it in a debugger, they can do anything given
enough time/sophistication.
Put another way: Security by obscurity/obfuscation, is not
security at all.
If you want something to be secure (from the client), then it
can only ever run on your own hardware (ie web servers). It is
possible to have secure communications between client and browser
though, in the sense that a third party wouldn't be able to
interfere/read the commuications between the client and the server.
All you would be doing by trying to keep the swf in RAM, or
delete it is try and put a bandaid on a corpse. (Sorry, it's late
and my analogy sucks.) Anyone sophisticated enough to decompile and
understand a SWF file will not have any problems reading RAM or
whatever other measures you can think of.
If there was a foolproof way to do this, every commercial
close-sourced software company in the world would be using
it. -
Does anyone know if it is possible to print of a swf file
containing the output of the shared object file without the user
actually having to see the file.
I want to allow the user to press a button to print of a
status report but do not want to load the report into the course
template frame.
CheersYou need to specify in the CSS which items you want to
print... Check out this...
http://www.adobe.com/devnet/dreamweaver/articles/designing_css_pt6_04.html
Maybe you are looking for
-
i have a 5.5 gen ipod 30 gig video. whenever i connect it to my computer, it says 'the usb device attached to the computer has malfunctioned and windows does not recognise it' is there something wrong with my ipod motherboard?? in the meantime it pla
-
Closing stock with selling price
Dear Experts I am using the below query to get the instock with value but its not giving option of datewise report.Can anybody modify my query so i can get Instock and value by datewise report.So any point i can see what was the instock and its total
-
Validate that user should not enter more than specified number of digits/chars?
Hello First case: I have placed a TEXT field on the form. Now i want to put the below validation, 1) User has to enter only numbers (no decimals) 2) Only 10 digits If not i need to 1) Alert app.alert 2) Make the field either CLEARIng or considering &
-
Symbol pollution between two versions of a library
I am having problems with a library that is calling a function defined within itself from a different version of the library. My company has a core library (let's call it libcore) that handles abstracting across platforms a number of common, low-leve
-
Mountain Lion Free Upgrade Codes Missing
Argh! I'm on my 3rd day now and no codes are appearing for my free upgrade. You'd think spending >$5500 on 2 MacBook Pros would qualify me for something other than Frustration. Serves me right for being an iDiot.