Adding a controller to a swf file
Hey I have a swf file and I need to load this onto a page with a controller. I am not using DW this time but a template system that is required.
The swf does not upload to youtube so I have to work with it. I can embed it on the page but it starts automatically.
OR I need to convert it to a flv or wmv.
thanks.
Steven Houtzager
shoutzager wrote:
Hey I have a swf file and I need to load this onto a page with a controller. I am not using DW this time but a template system that is required.
You would probably get better help in the Flash forum.
Similar Messages
-
How do you add a controller to a SWF file?
I am a newbie.
How would I add a controller for play and pause to a SWF
file? I want to put several SWF files up on a website but want to
be able to control them. Instead they all play once the web page
loads.
Please help.
Thanks> What is need is a %LinksDir% variable.
I have no client available with links redirected, but basically, this
should result in a registry value containing the new path. Simply
regedit and search for your "links" redirection path.
Then use Item Level targeting "registry value" to store this path in a
temporary variable that you can use in the target path for your shortcut.
Martin
Mal ein
GUTES Buch über GPOs lesen?
NO THEY ARE NOT EVIL, if you know what you are doing:
Good or bad GPOs?
And if IT bothers me - coke bottle design refreshment :)) -
How to detect end of flash movie (SWF file) in Javascript
I have used Dreamweaver CS4 to integrate my SWF file as shown
below. So far so good. See GoToNext()
my website
What I wouldd like to do is have the SWF movie trigger a
javascript function in my html page when the video is stopped
playing (i.e. when it is finished) There are no controlls in that
SWF file - it is basically am add banner. I would think this would
be easiest done by rasinng an event in SWF that is communicated to
javascript, where I can add an event listener, and thus trigger my
function.
How can this be done in the simplest way?
<div id="bodyFlash"
class="clearfloat"><p> </p>
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="760"
height="150" id="FlashID" title="Chillifire Banner">
<param name="movie" value="flash/chillifire.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="swfversion" value="6.0.65.0" />
<!-- This param tag prompts users with Flash Player 6.0
r65 and higher to download the latest version of Flash Player.
Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall"
value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it
from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash"
data="flash/chillifire.swf" width="760" height="150">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="swfversion" value="6.0.65.0" />
<param name="expressinstall"
value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative
content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of
Adobe Flash Player.</h4>
<p><a href="
http://www.adobe.com/go/getflashplayer"><img
src="
http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
alt="Get Adobe Flash player" width="112" height="33"
/></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
...on the last frame in the banner file you can use the
ExternalInterface class to call a specific JS method, and even pass
data if needed. -
How to play swf file in flex builder3?
Hi!!!!!! I have made a video player in Flex project ......In source of video display I have added the path of my swf file which is as follows:
<mx:VideoDisplay id="player" source="C:\Documents and Settings\sachin\Desktop\absolute-values.swf"
maintainAspectRatio="true"
width="450" height="300" autoPlay="false"
playheadUpdate="videoDisplay_playheadUpdate(event) ;"/>
But when I am clicking on Play button ,I am getting following error:
Error: 1000: Unable to make connection to server or to find FLV on server.
at mx.controls.videoClasses::VideoPlayer/play()[C:\autobuild\3.2.0\frameworks\projects\frame work\s rc\mx\controls\videoClasses\VideoPlayer.as:1327]
at mx.controls::VideoDisplay/play()[C:\autobuild\3.2.0\frameworks\projects\framework\s rc\mx\controls\VideoDisplay.as:1464]
at basicvideoplayer/___basicvideoplayer_Button1_click()[C:\Documents and Settings\sachin\video player\src\basicvideoplayer.mxml:44]
Can anyone help me in removing this error?Kindly give me a code to Play,Pause and stop my swf file.GRag and Mesh are correct. You cannot use Flex to access a file on a user's hard drive, which is where your path is pointing.
Instead, create a folder within your Flex project, under the "src" folder (example: src/assets/videos), and put the SWF there. Change the path in your code to point to the new location, like "assets/videos/myVideoFile.swf". Note that you don't refer to the src folder; it is the "root" of your application, and when you deploy all your files to your web server, you will be copying the folders you created to the root folder of your web server. So, all the paths will remain consistent. Flex will attempt to find "assets/videos/myVideoFile.swf", starting from the "root", or location, of the application itself. -
Controller skin for SWF video in dreamweaver CS3?
Hi there,
I have inserted a SWF video into my website, however right
now it's playing automatically and i have no way of stopping and
pausing my video... how can I add a skin controller to my SWF file?
I know I can do it with FLVs, but I dunno how to do it in SWFs....
THanks!
cgbubI have managed to fathom it out.
-
I created a very simple swf with a box moving from stage right onto the stage. It works fine when previewing the swf itself, but when previewing from dreamweaver there is a small line that only extends half way across the swf file (which happens to be the length of the box). I even made the box smaller than the stage but the line still appears at the bottom.
Sometimes it helps to create a box in the background color that overlaps the edge of the stage. I had the same problem with a .swf that had a black background. The web page had a black background too but there was a white line at the bottom of the .swf when I previewed it in the browser. I added a black box to the background that went past the bottom of the stage and into the surrounding area and resaved it. The white line disappeared.
-
Adding video to a .swf file created in InDesign so it will work as a PDF.
I am having trouble inserting a video into my indesign file. I change the format to a .FLV and then export it as a .swf. When I bring it into Acrobat to create a PDF the video does not play. Any suggestions on how to add video to a .swf file that works in a pdf?
That's a circular argument, since video in a PDF file is rendered in the Flash Player runtime.
Steve Werner wrote:
Things will work better if you change the format of the video to MP4. Then just place the video directly in the InDesign file and make the interactive PDF. Mixing SWF and PDF are bound to be a disappointing experience.
Flash is a format which is on the downhill slope. It's not supported on mobile device (you know, tablets and smartphones), and many people don't like installing Flash for security reasons. -
Adding multiple swf files to Dreamweaver
I'm trying to upload multiple .swf files to my website with
no luck. I've done this with previous versions of Dreamweaver but
with CS3 I'm finding it won't happen. I've done the Insert ->
Media -> Flash action as before and exported my files to be read
in Adobe Player 8 but nothing then happens after the files have
been uploaded yet locally everything works fine. I've uploaded a
scripts file also but all of the .swf files are linked from
different folders, could this have any effect?
What am I doing wrong?
Chris.CJR 2007 wrote:
> I'm trying to upload multiple .swf files to my website
with no luck. I've done
> this with previous versions of Dreamweaver but with CS3
I'm finding it won't
> happen. I've done the Insert -> Media -> Flash
action as before and exported my
> files to be read in Adobe Player 8 but nothing then
happens after the files
> have been uploaded yet locally everything works fine.
I've uploaded a scripts
> file also but all of the .swf files are linked from
different folders, could
> this have any effect?
>
> What am I doing wrong?
Generally making sure that the SWFs are at the remote
location where you think they are supposed to be (and where the
code thinks they are supposed to be) as well as making sure that
the active content JavaScript file(s) are uploaded and are present
where the page is expecting them to be. Beyond that, for anyone to
see what is wrong with your page(s), you have to post a link to
your page(s).
Danilo Celic
| Extending Knowledge Daily :
http://CommunityMX.com/
| Adobe Community Expert -
Adding .swf file to Dreamweaver CS3 page?
In Dreamweaver MX, I used to import .swf files, view them,
and they worked, both in Dreamweaver and on the web. But trying out
Dreamweaver CS3, ,swf files I import don't seem to work for me.
They're visibly there when I view the Dreamweaver page, but they do
not play in any browser. Obviously, something has changed. What?
What do I need to do to get a .swf file to play?
Thanks for your help.> That did not make a .swf file visible. Here's a sample
of the problem:
>
http://www.multiminds.org/newtoncornerneighborhood/test.html
Your code is sticking some stuff in there that my code
doesn't
for example the version is different (that should be okay if
you have
Flash 10 installed, but also notice the path on your script:
http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=10,1,1,0
which is going to director instead of flash.
I suggest you try my code, of course changed to reference
your flash file.
Here's my code for a flash file:
<SCRIPT TYPE="text/javascript">
AC_FL_RunContent(
'codebase','
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','760','height','200','title','Sack
Law Firm, NYC and Westchester
County','align','LEFT','src','media/sacklawfade4','quality','high','pluginspage','
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','media/sacklawfade4'
); //end AC code
</SCRIPT><NOSCRIPT><OBJECT
CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
CODEBASE="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
WIDTH="760" HEIGHT="200" ALIGN="LEFT" TITLE="Sack Law Firm,
NYC and
Westchester County">
<PARAM NAME="movie" VALUE="media/sacklawfade4.swf">
<PARAM NAME="quality" VALUE="high">
<EMBED SRC="media/sacklawfade4.swf" WIDTH="760"
HEIGHT="200"
ALIGN="LEFT" QUALITY="high"
PLUGINSPAGE="
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
TYPE="application/x-shockwave-flash"></EMBED>
</OBJECT>
</NOSCRIPT> -
Footer div not aligning in Dreamweaver when swf file added...
Hi, here's a good one!
I have a template that has a div (#footer) as an uneditable area. When I add an swf file to a div above it (#flash), the #footer div displaces in Dreamweaver, but looks OK in any browsers that I preview it in.
Here's a link.... It's the DESIGN page that's the issue and I'm guessing that any other pages based on this template may generate the same problem.
http://www.davidcoshdesign.com/nea
Any ideas?
Thanks in anticipation!Add clear: both; to the ccs selector below (as shown)
#footer {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 9px;
color: #FFF;
height: 45px;
width: 950px;
left: 50px;
padding-top: 5px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
text-decoration: none;
top: -50px;
position: relative;
float: left;
margin: 0px;
clear: both; -
Adding another swf file to the air application
I have developed adobe air application. Before the application is launched, I want to play a .swf file with sound
as introductory and then launch my air application.
How to integrate the .swf file with my application?
If some one can share how to do this in Adobe Air it will be of great help to me.
Thanks in advanceI am not aware if you can run various swf's from Air in any particular sequence, but it is pretty irrelevant as you can have a shell.swf that loads the sound from an external or attach it if embedded in the library, play it and onSoudComplete step to the next function. I can't see you need to load 2 swf's as it sounds like you just need an intro page, listen to the sound and move into the application, perhaps with an option for the user to skip the intro. If you are using AS3 I can't comment further - in AS2 it's simple and little coding.
var sf1a:Sound = new Sound(this);
sf1a.attachSound("snf1");
stop();
stopAllSounds();
sf1b.onSoundComplete = function(success:Boolean) {
if (sfp ==0 and sf >= 3) {
gotoAndPlay("frame23");
} else {
sfp=0;
gotoAndStop("frame3");
sf1b.start(); -
Adding a SWF file into a Coacoa application in Xcode.
Hello all,
I'm not the most experienced Mac developer, and I have a question. I want to input a SWF file into my application. Whenever I just add it in by dragging and dropping, it looks fine while building it however it doesn't show up in testing. It just shows a white screen.
My second question is about auto loading a web page while making a browser in Xcode. If I have made a browser in Xcode, how do I make it to where when you open the application it automatically loads the specified web page you want. Would this be done by AppleScript? If so, how?
Thanks, I hope I explained the questions clearly.Alex4000 wrote:
I'm not the most experienced Mac developer, and I have a question. I want to input a SWF file into my application. Whenever I just add it in by dragging and dropping, it looks fine while building it however it doesn't show up in testing. It just shows a white screen.
It sounds like you need to make sure it gets copied to your application's resources folder (and make sure it gets loaded from there, too). Look into a copy files build phase, where your SWF file would get copied to your app's resources directory.
My second question is about auto loading a web page while making a browser in Xcode. If I have made a browser in Xcode, how do I make it to where when you open the application it automatically loads the specified web page you want. Would this be done by AppleScript? If so, how?
You can do that directly in your app with a WebKit call. Look at "loadRequest:" in the documentation for the details.
charlie -
Unable to play audio stream in a swf file
Making a swf file that reacts like a button: it plays sound
when you pass over it. Or should play. When the button keyframes
sound options are set to "start" or "event", there is no problem,
it works well. But it doesn't work if I set to "stream". My
original file is an mp3. Is there something special avout it? Help
tutorials didn't help me so far...With "stream" you have to make sure there are enough frames
in the movie to play the whole sound file. Try adding some frames
and see if it plays then. -
How do I script SWF files instead of JPG files in XML loader?
I have a SWF loader (greensock.com platform) and a thumbnail image scroll underneath it made of small image buttons. Each image button has a link which loads a new SWF file into the SWF loader above. Here is the code for each button which loads the bigger SWF file into the loader above:
Button3.addEventListener(MouseEvent.CLICK, Button3_PlayPopUp);
function Button3_PlayPopUp(event:MouseEvent): void {
//setting the sourceVar
sourceVar="3.swf";
//making the SWFLoader load
//as setting the soureVar after the SWFLoader is created won't do anything unlesss
//I also re-create the SWFLoader with the new sourceVar when the button is clicked
loader_howToLoader2.url = sourceVar;
loader_howToLoader2.load(true);
Then I decided to load all button via XML loader. I followed the tutorial on XML loaders which deals with loading jpg images and assigning URL links to them in the following manner first in XML file:
<image src="appThmb_imgs/appThmb_imgs117x175/A-illuminatorUpLit_117x175.jpg" title="UpDownGlowingVase" url="http://www.888acolyte.com"/>
and then in AS3 like this:
var xmlLoader:URLLoader = new URLLoader();
thisOne.link = imageList[item].attribute("url");
function clickScrollerItem(e:MouseEvent):void {
//trace("clicked item " + e.currentTarget.itemNum + " - visit url: " + e.currentTarget.link);
var urlRequest:URLRequest = new URLRequest(e.currentTarget.link);
try {
navigateToURL(urlRequest);
catch (e:Error) {
// handle error here
trace(e);
My question is: How do I apply the code to each individual small thumbnail button to load a bigger image into the SWF loader above? Do I have to add something to XML file or this way it will never work with jpg images? Can url in XML file set the source var (//setting the sourceVar), since they are all individual and then somehow apply the making SWL loader to load part (//making the SWFLoader load) as a standard somewhere in the AS3 code?O.K. Here is my COMPLETE function.
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
function LoadXML(e:Event):void {
trace("xml load complete");
xmlData = new XML(e.target.data);
//trace(xmlData.image); //we'll see each image xml element listed in the output panel with this xmlList
buildScroller(xmlData.image); //rather than trace the xmlList, we send it to our buildScroller function
//build scroller from xml
function buildScroller(imageList:XMLList):void{
trace("build Scroller");
//var scroller_x:int=0;
for (var item:uint = 0; item<imageList.length();item++) {
var thisOne:MovieClip = new MovieClip();
//thisOne.img_width=imageList[item].attribute("width");
//outline
var blackBox:Sprite = new Sprite();
blackBox.graphics.beginFill(0xFFFFFF);
blackBox.graphics.drawRect(-1, -1, 86, 128);//-1,-1 places rectangle 1px left and up.86, 128 draws rectangle 1px wider on all sides of placed image dimenstions of 84x126
thisOne.addChild(blackBox);
//scroller_x += thisOne.img_width + 20;
//var currentX = currentImageWidth+spaceBetween;//modified line to adjust variable thumb widths
thisOne.x = (84 + padding) *item;//84 is the width of the loaded images and 15 (which was before paddign var) is the padding
//thisOne.x = scroller_x;//modified line to adjust variable thumb widths
thisOne.itemNum = item;
thisOne.title = imageList[item].attribute("title");
thisOne.link = imageList[item].attribute("url");
thisOne.src = imageList[item].attribute("src");
thisOne.alpha = 0;//makes all thumb images at alpha=0 before they are fully loaded
//trace(thisOne.itemNum, thisOne.title, thisOne.link, thisOne.src);
//Loading and Adding the Images
//image container
var thisThumb:MovieClip = new MovieClip();
//add image
var ldr:Loader = new Loader();
//var url:String = imageList[item].attribute("src");
var urlReq:URLRequest = new URLRequest(thisOne.src);
trace("loading thumbnail "+item+" into Scroller: " + thisOne.src);//url
ldr.load(urlReq);
//assign event listeners for Loader
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHandler);//tells us when the loading is complete
ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);//tells us if there are any typo errors when the loading is complete
thisThumb.addChild(ldr);
thisOne.addChild(thisThumb);
//create listeners for this thumb
thisOne.buttonMode = true;//makes boxes act as buttons
thisOne.addEventListener(MouseEvent.CLICK, clickScrollerItem);//makes boxes act as buttons
thisOne.addEventListener(MouseEvent.MOUSE_OVER, overScrollerItem);//traces the title when the mouse is over the bounding box in the Output Panel
thisOne.addEventListener(MouseEvent.MOUSE_OUT, outScrollerItem);//traces the title when the mouse is out the bounding box in the Output Panel
//add item
scroller.addChild(thisOne);
But I am not sure if I expressed myself clearly. All what you have indicated happens. Images are being loaded and url strings are working. I can not figure out how to tweek the code so instead of url specified in xml file I can load swf image into the SWF loader on the same screen? -
Flash .exe or swf files will not play on Vista
I decided to learn how to create captions for flash video,
using CS3. I tested this project and it worked fine. I could just
double-click on the app or the swf and the captioned video played
fine on my Mac. I only had Flash (CS3) on my Mac, so I created the
files there.
I then published an exe to move over to my Vista machine.
When I double-clicked on the file, it brought up Flash Media Player
version 9, but only showed a blank white box. Very frustrating.
After some research, I read that Windows Vista was not
compatible with Flash Media Player 9. Only 10.02xxx or later (I
forget the exact version - it was long) was supposed to work with
Vista. Since CS3 uses version 9 to pack into the executable (PC) or
app (Mac) projector files, I thought maybe this was the problem.
So I downloaded the demo of Flash CS4, thinking this version
would pack version 10 into the projector and this would solve my
problem.
While the CS3 version of my saved flash video project would
open in Flash CS4, it would not play when I tested the movie inside
Flash CS4. It would just show a skin at the bottom of the video
player only (with a play/pause button), and it had moving blue bars
on the skin like it couldn't really load either.
I then decided to create the whole flash video with captions
from scratch under Flash CS4. This time when I tested the movie in
Vista, it worked fine. When I published either the projector exe or
the html/swf combination, it worked fine. So proudly (and finally!)
I sent the exe over to my boss. But..... you guessed it. The Flash
Media Player 10 that started up when the file was double-clicked
just showed a blank white screen again!
So then I moved the exe over to another partition to test to
see if there was some dependent directory pathway saved as part of
the flash video file. The exe wouldn't play on the other partition!
So I thought I was onto something. I then tried moving files that I
thought the exe might be dependent on (although isn't the point of
a projector to be stand alone?) to the same directory on this
partition as the flash exe projector file.
I ended up moving the captions.xml file, the swf files (flash
video player skins included), and the html file that the swf file
is supposed to be embedded in. NOTHING worked.
I even read that someone with this problem saved his Flash
CS4 file as a Flash CS3 file before he published it, and that
worked for him. So I tried that too, but with no joy.
So I am totally stumped. Does anyone out there have advice or
even a solution?
Much Thanks,
ChuckHI
You can use FlashJester Jugglor to create one EXE file by
adding the FLV in
the Additional Files section.
Try it
http://www.jugglor.com
Let us know if you have any further questions.
Regards
FlashJester Support Team
e. - [email protected]
w. - www.flashjester.com
DISCLAIMER:
This email message is intended only for the addressee(s) and
contains
information that may be confidential and/or copyrighted. If
you are not the
intended recipient please notify the sender by reply email
and immediately
delete this email. Use, disclosure or reproduction of this
email by anyone
other than the intended recipient(s) is strictly prohibited.
All measures
have been taken to ensure this email is virus free - however
no warranty is
made that this email or any attachments are free of viruses.
Virus scanning
is recommended and is the responsibility of the recipient.
Maybe you are looking for
-
i bought a iphone yesterday and its not showing up on itunes after doing everything apple said. i found the iphone on the pc its just that it windows XP think its a camera. please help!
-
Not able to login from front-end
Hi, My application was running on https previously.Now I have configured it to run on http. I executed AutoConfig after making changes to the context file. It comlpeted successfully. But when I tried to open the login page it showed 500 internal serv
-
How to stream from Iphoto app (ios) to ATV2
How do you stream photos and slideshows to your Apple TV® , with AirPlay®; I can mirror but not stream Press release and Apple info on built in apps for new Ipad state that you can stream. Trying to do this with iphone 4s to atv2. Both devices upgra
-
GLPCA- TSL - 1KEJ - Missing transaction currency values
Hello all, i hope you can help me out. We still have a part of our company on 3.1H and we have a little problem. We have a report that looks at the GLPCA table and needs to get the Transactional currency amount TSL. However it looks like all the t
-
Rounding to decimal places in Captivate 6
I need some assistance with rounding to 2 decimal places in Captivate 6. Can this be done without scripting? Vince