Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Embed Url Into Swf



what's the best way to embed a url into the flash file? i'm making flash banner ads and the url needs to be embedded into the swf that i send to the vendor.

i know you can create an invisible button with on release to get urls, but is there an easier way with actionscript if the entire swf should be clickable?



FlashKit > Flash Help > Flash ActionScript
Posted on: 05-23-2007, 11:15 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

How To Get Published Code (<embed>..</embed) From As3
How can I get the html published code (<embed> .. </embed>), from AS3 in order to implement a print "copy embed video" to clipboard functionality ?

Object And Embed Or Maybe Just Embed?
Can you solve the mystery for me. For years now I have put Flash objects into html pages by using the OBJECT tag and EMBED tag. I have placed the EMBED tag inside the OBJECT tag to make sure every browser sees the flash as recomended.

I am working on a Content Management System which allows the user to insert flash objects to the pages being managed.

As some of you may hae experienced the MSHTML editor (often used in WYSIWYG online editors like editworkspro.com) actually rewrites the object code which causes problems.

I have found one solution. The code is not rewritten if you only insert the embed tag - so skip the object tag surrounding it.

For some reason that works and IE (version 6 at least) can see the flash object. I thought the object tag was required!!

Now can someone tell me why the object tag is not required! And if It would be safe for me to skip it from now on.

Regards,
Sambo



This code works for an example in IE 6.


Code:

<*EMBED
pluginspage=http://www.macromedia.com/go/getflashplayer
src=flashfile.swf
width=295
height=328
type=application/x-shockwave-flash
quality="high"
bgcolor="#F2F4EE"
MENU="false">
<*/EMBED>
The * is just so that the board doesn't try to render the flash

[F8]callling An Swf Embed From Another Embed Swf
Hi Guys!

I would like to know how callling an .swf embed from another embed .swf in the same html page?

Thanks in advance ;-)

"Embed(source" Vs. "Embed(systemFont"
Code:
package fonts {
import flash.display.Sprite;
public class Taco_Salad extends Sprite {
[Embed(source='C:/WINNT/fonts/TACOSRG_.TTF', fontName='Taco Salad',
fontStyle='italic', fontWeight='bold',
mimeType='application/x-font')]
public var wrFont:Class;
}}


If I embed a font as above accessing the ttf file directly I get an mxmlc compiler error if I use anything other than 'normal' for fontStyle and fontWeight. (thus no italic or bold.)

"Error: exception during transcoding: Font for alias 'Taco Salad' with bold weight and italic style was not found at: file:/C:/WINNT/fonts/TACOSRG_.TTF"

However no such error occurs when using the systemFont syntax:

package fonts {
import flash.display.Sprite;
public class Taco_Salad extends Sprite {
[Embed(systemFont='Taco Salad', fontName='Taco Salad', fontStyle='italic', fontWeight='bold',
mimeType='application/x-font')]
public var wrFont:Class;
}
}

However, the same ttf file in the font directory is being accessed presumably.

The thing is, I need to use the "Embed(source" version because I have some ttf files that are not registered with windows, and there are slight differences in how Flex/AS3 renders fonts embeded from source ttf files vs as Windows systemFonts.

But anyway, why no italic or bold when embedding with the "source" syntax.

Thanks.

How To Embed An Swf Into A Php Doc?
I need to know if there's a way to embed an swf directly into a php document without using html tags like embed.

I need NOT to use the following:
__________________________________________________ _____
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=550 HEIGHT=400>
<PARAM NAME=movie VALUE="LoadVarsTest.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="LoadVarsTest.swf" quality=high bgcolor=#000000 WIDTH=550 HEIGHT=400 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>

<?php

// Process the OUTPUT options
// FLASH DATA CREATED HERE
if ($action == "VIEW")
{
echo ("TextEffectToLoad" . "=" . "$TextEffect" );
echo ("&");
}

?>

</body>
</html>


________________

I need to use ONLY php tags.

Anybody?

Embed... Or SOMEthing...
does anyone know if you can call a .swf from within another .swf file? what i mean is, i want to have one .swf file playing, and then have it call another .swf file, embedding it somewhere within the original .swf file. so i'd have one going - say full screen, then within that one, have another one playing... kinda like a little window within the larger swf... thanks!

I Need Embed Help
I am in search of a good tutorial about embeding flash movies in an html page. What exactly I am trying to make is a sample page for individual flash movies....accessible from an html text. So say you go to a page that is a html page and it is called Samples then there would be numbers 1 thru 10 and you click on one and with the samples page still open the movie opens in another window....this is what I am trying to create....Can someone please help!!! Thank you, Wayne

I Need Embed Help Please
I am in search of a good tutorial about embeding flash movies in an html page. What exactly I am trying to make is a sample page for individual flash movies....accessible from an html text. So say you go to a page that is a html page and it is called Samples then there would be numbers 1 thru 10 and you click on one and with the samples page still open the movie opens in another window....this is what I am trying to create....Can someone please help!!! Thank you, Wayne

Embed
OK, thanks, got it to work, phew. I went into the Library, embedded the font there and then linked it and that seemed to have done the trick.

Help Me Embed An Swf
Be kind to the newbie and help me embed a swf in my html page. In Dreamweaver, I inserted an swf file, but when I preview it in a browser it only plays in Netscape, not IE. (I read the post about a JavaScript workaround for an IE issue similar to this, but I have to confess, I don't know JS and when I tried to follow along things got ugly!) Can anyone help me out?? TIA!

Embed Swf In PHP
I have tried inserting the same ole html tags into a php doc to call on a swf without success. I have read several variations on how to do this using Java etc. Does anyone have any alternative examples or recommendations on how and or "if" this can be done?

Much appreciated

Help With Embed Tag?
Hi,

I just created a simple slideshow in flash and I'm having trouble seeing it come up in my page. I guess there must be something wrong with my embed tag? I'm not sure.

The page that I'm trying to load the flash into is here:
http://chipanddrifty.com/wp/?page_id=4
But it's simply not playing.

What's weird is that I can get the swf to come up if I hit it directly here:
http://chipanddrifty.com/wp/wp-conte...ges/lyrics.swf

I also included a different swf on a similar page with no problems:
http://chipanddrifty.com/wp/

So I'm really confused here. Can anyone tell me what I'm doing wrong here?

Thanks!

To Embed Or Not To Embed?
hi all...i am making a news section on a website. It gathers it's info dynamically from mysql db...ok..the php is fine, it's loading, but the look is what gets me. If i don't embed the font, then it looks bad. If i do embed the font, then it loads, but without the day/month/year headers between each entry. Here is my code:


Code:
var news = txNews;
txNews.html = true;
txNews.wordWrap=true;
txNews.embedFonts = true;// i loose the headers if i embed font
var styles:TextField.StyleSheet = new TextField.StyleSheet();
styles.onLoad = function() {
txNews.styleSheet = styles;
xmlData.onLoad = function() {
root=this.firstChild.childNodes
for (i=0; i<root.length; i++) {
//pulls data of each entry
days=root[i].attributes.day;
months=root[i].attributes.month
years=root[i].attributes.year
journalEntry=this.firstChild.childNodes[i];
//code to make headers before each entry
txNews.htmlText+="<b>"+days+", "+months +", "+ years+"</b><br>"+journalEntry+"<br><br>";
}
};
xmlData.load("http://www.website.com/getNews1.php");
};
styles.load("myCSS.css");
var xmlData:XML = new XML();
xmlData.ignoreWhite = true;
of course, this gets me to another question...do i really need the css if i am not defining any attributes to the text? Can't the textbox attributes (txNews) be sufficient? Anway, that is another discussion to post later. Any thoughts why the headers will not post correctly if i embed the fonts?

Embed SWF Into SWF
Hi,
I have an external pre-loader and my actual flash game/movie. I am submitting my file to newgrounds.com so I need them to be all in one flash file. Is there a way to embed one swf into a movie clip so in the end I have only 1 SWF??

Embed Flv
Hi,

I have flash8 trial but no decoder and I am looking for a free solution.

I have a problem that I am tired of looking on google about it (2-3 hours of messing around).
I want to upload a video of any type to a webpage , convert it to a flash type then play it. So all the user does is uplaod a video, then the program converts the video to a flash type for a webpage to play with code only.

I can play the video of anytype no problems on a webpage but converting to a flash so all videos are the same type seems complicated. Especially when most software for it you need to pay.

Can i
a) convert a video to a flash type then play in a webpage with code
or
b) have to do this manually when I have a video uploaded eg use flash 8
or
c) can only do part if this with code and some manually.=ShockwaveFlash&P2_Platform=Win32&P3_Brow ser_Version=Netscape6[/url]

Is Is Possible To Add PHP To The <embed> Tag?
Hi everyone,

I have a flash banner rotator that runs using PHP at the backend. The way in which the flash banner is called into the script is by using the following PHP:

<? php include("http://www.mysite.com/banners"); ?>

I have also used this in other ways such as:

<?php $file = file_get_contents("http://www.mysite/banners"); ?>

I am struggling to incorporate this into the <object> tag. Is there a way in which I can do this? Can I somehow get this to work in the <param name="movie"> tag? Or is there some other method that I can use?

I should also mention that the file I am working with is a 'tpl' file. I do not think that these support PHP, but I may be wrong.

Any help would be great as I am really struggling with this one.

Kind regards,
Jp

Embed URL
Hello there:
I'm new to the forum. I have a puzzling question. If you need more explanation, let me know. Here's the issue I need to solve:

I want to have 4 different size banners on my website available for download. This will make it easy for companies to choose what designs they like best.
Each banner has a pcode on it that needs to be included in the URL.

I have to embed a URL, correct? And if so, do you know what kind of code I would use to do that?

Embed Help
I purchased a really excellent XML template from FlashDen. The FLAs aren't available so all I'm working with is XML to customize.

I'd like to embed two things: the Flash Twitter widget ( http://twitter.com/widgets/profile_flash_widget ) and my LiveJournal ( http://community.livejournal.com/howto/34867.html ). Does anyone know how to do that with XML??? The author uses CDATA tags if that helps. I've had no luck.

Also, I'd like to link an external preloader to the SWF. Can anyone point me to a resource to do that?

Many thanks!!!

Embed Xml?
Hello everyone!

I have a script that loads data from an external xml:


Code:
menu_xml = new XML ();
menu_xml.ignoreWhite = true;
menu_xml.onLoad = function (status)
{
if (status)
{
// Functions list
}
};

menu_xml.load ("menu1.xml");
The external xml looks like this:


Code:
<?xml version="1.0"?>
<menu name="beispiel">
<menu1 name="Via telefono" variables="B1,B2,B3,B4,B5"/>
<menu1 name="Via fax" variables="B1,B2,B3,B5"/>
<menu1 name="4-5 min per primo ordine" variables="B2"/>
<menu1 name="2-5 min ordini successivi" variables="B2"/>
<menu1 name="Inbound + outbound" variables="B6"/>
<menu1 name="Informatizzato" variables="B7,B15"/>
....
....
</menu>

What I would like to do is to embed the xml data inside the flash, so that other people can't edit the xml. I guess I should use something like:


Code:
menu_xml.parseXML("... ... ... ...");
but I have some problems with the < and " in the xml code. How can I solve that?

Thank you!

Embed An SWF And Get The URL, Is It Possible?
I have an SWF on the DOMAIN1.COM, then I embed into a page on the DOMAIN2.COM.
Is it possible to know the URL of the page that is showing the embed file using only ActipScript without any kind of querystring?

If I write trace(stage.loaderInfo.url) it tells me the HOST NAME where the file is sit, not where the file is embed.

HEELP!

<embed>
In the tutorial nr 8 in the beginners league it says following:

Add the following parameter inside the <EMBED> tag in your HTML page which houses the SWF file:

swLiveConnect=true NAME=yourmovie.swf
Replace "yourmovie" with the name of flash movie. You can put it anywhere inside the <EMBED> tag, but perhaps the best place would be after the WIDTH and HEIGHT parameters
Note: This is important as it allows the Flash movie to communicate with the JavaScript code.


What are the <EMBED> tags good for and where shall i add them?

-Mikkel

Embed SWF In FLA
Hi. I have this SWF that I created a long time ago, but don't have the FLA for it. Anyway, I want to put the SWF in the FLA, like putting a video in FLA. I've embeded a video before, simply by going to File >> Import >> to stage, and then the video would play as a SWF.

But now I want to import a SWF, so that I can add another layer, for example, or maybe add special effects or anything of that nature. I may even want to convert the SWF to WMV using the Flash Export option.

How would I go about embeding a SWF in a FLA? Any help is appreciated.

-RippaZ Inc.

Embed URL
Hello again,

Last one..i promise!

Is it possible to load a web page, probably using getURL, inside a flash movie...inside a container movie clip for example?

Basically to build a flash web browser...

FLV To SWF To Embed In A PDF?
Hi All,

I have been given a pdf (possibly built with InDesign?) and two flv files. I have to embed the video into the PDF. How do I do this, or more accurately, what is the best way to do this.

I have Acrobat Professional 8 and the Professional Studio suite, including Flash Pro 8, at my disposal. I think I need to convert the flv to swf (how is this best achieved) and then embed the swf into the PDF using Acrobat Pro 8 (how is that best achieved)?

The video's are no longer than 1.30 minutes, fairly static (man speaking at a desk and woman cooking).

Thanks for any pointers.

Nick Barling

Flv Embed
Can you embed a flv file to be viewed on a webpage. I can with a swf file but not flv.

I have mozilla and thought is the plugin but it fails for flv file
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&P2_Platform=Win32&P3_Browser_Version=Netscape6

Embed AS3 Swf Into A AS2 FLA?
HI, I have a flash site designed in AS2 and want to embed a AS3 video player in it. If I republish the AS2 site to AS3 the website doesnt function, and if I load the AS3 swf into the website, the Player doesnt function.

I need the AS2 functionality on the website and I need the advanced AS3 functionality on the video Player.

Is there any way to get these two guys to talk to each other?

Embed Wav In AS3?
Hello all,

I am hoping to update my flash loop player, Beat Jigsaw to AS3 http://www.participationsystems.com/jigsaw.htm

and take advantage of the Compute Spectrum feature.

Having problems with the audio side though. Is it possible to use .wav's with AS3 ( mp3's won't loop in sync in flash 'cos of added gaps)

I have read that it is possible if you import the wav's to the IDE - does this mean I must use Flash as opposed to Flex?

Anyone know of a good tutorial about this stuff? My aim is to seamlessly loop 16 tracks of audio and toggle the volume of each one.

Any help much appreciated,

Gavin

Embed Flv?
http://www.adobe.com/devnet/flex/qui...edding_assets/
I'm using flex. embedding works ok, but when embedding a flv file it gives error.

ActionScript Code:
[Embed(source="video.flv")]         [Bindable]        public var SvgFrog:Class;


errors:
'video.flv' does not have a recognized extension, and a mimeType was not provided

Unable to transcode video.flv.

I tried to add mime type, but no luck, still the same errors. I got to remove the mimetype error, but still, the video is not embed.

ActionScript Code:
@Embed(source='video.flv', mimeType='application/octet-stream')


The point is that I want the video to be part of the swf file. 1 swf package with all inside...

How To Embed Swf Into Another Swf
Hi All,
I have created home page.fla and login.fla
I want to display both swf in a single page, so I created movieclips and loaded the swf and displayed. But My doubt is: I want to login, after the successfull login only I have to see the homepage. Otherwise it ill be in a inactive mode.
How to do this?
Thanks in advance

Embed
If dreamweaver would embed swf on an html page, what are their chances not display improperly on MAC, G4 if you worked on PC? Has anyone encountered any cross -over problems like that?
If a computer doesn’t have a flash plug in, the flash movie does not play right? Does it right away asking the computer to install the latest plug in if that computer doesn’t have a flash plug in.

Using [Embed]
Hi guys,

Can I use [Embed] in my AS3 that I compile with Flash CS3 ?

Is there a difference between using AS3 one way (say, with Flash CS3) and another way (say, with Flex) ? I don't get it.

What I do is use a stand-alone text editor (Visual Studio 2005) to write my code, then I use Flash CS3 to compile it. Am I missing out on anything ?

Thanks.

Embed Swf In Flv AS2
I am putting together a portfolio and want to have all my swf creations inside the one flv. I know how to link to it but that's not really what I am after. I want the user to click on thumbnail and the swf to load within the one flv. The swf are different dimensions so I want to be able to place them in seperate movie clips so that I can resize them to fit the main flv.
I hope this makes sense.

Embed FLV Into SWF
Hi,

I'm trying to embed an FLV into a .SWF file including player controls. Using the import tool only places instances of these files on the stage, while still referencing the files externally. I need 1 SWF that has the FLV and the playback controls so I don't have to reference any outside files. How can I do this?
thanks,
OML

What Should I Be Using Instead Of Embed?
The embed tag is no longer W3C approved, so what should I be using to import flash files. I'm looking for a solution which covers the majority of, if not all browsers.

Also which technique makes it so you don't have to click twice on a flash file before you can access it? (I think this only happens in some browsers)

Look forward to you input.

Embed Swf Into Swf
Hi,

Is it possible to embed a swf file into a swf file, by passing in a file-path?

e.g. video1.swf needs to be loaded dynamically into container.swf. I need to be able to pass different file paths into container.swf to get it to dynamically load, then begin playing on roll over.

I'm using MX (I know, it's just that I don't do Flash work very often so can't justify the upgrade cost really).

Thanks folks

Embed AVI
Hello!

Is it possible to make a swf that can be used in i a webpage that has an url to a avifile as a variable that is changeable in the flashembed code in the html page.

The reason I cant embed Windows Media Player is that I would like to play a "cropped" version of the movies, not showing the full size of movie.

Masali

To Embed Or Not To Embed...
Importing a video gives two options :

1. to import to timeline
2. to import to movie clip


After choosing the 2nd two files appear in the library - movie clip and embedded video - both the same file name.

if i drop the movie clip on the timeline it doesnt scroll, yet the embedded version does. obviously this is important with start and end points etc. but my question is - does it matter whihc u use in the timeline and does it make a difference to the end .swf movie file size.

cheers guys n gals

Embed HTML
I want to embed my HTML-sites in Flash, how can I do that?

Embed PHP & Javascript
Can you embed Javascript into PHP using the print, enabling you to use PHP variable in Javascript?

How Do You Embed A SWF In An Email?
I've tried to just copying and pasting the html that Flash creates into an email, and I uploaded the swf to a server and I assigned an absolute path to it, but it won't show in the email. What am I doing wrong?

Display An Swf WITHOUT Using The Embed Tag?
Hello everybody. I am curious if there is a way to display an .swf movie without the embed tag. I belong to a gaming forum and the way to show the sigs is to write the URL and then it will show the picture. BUT, it doesn't allow HTML or the embed tag, JUST a url? If I type http://www.whatever.com/sig.swf, it won't show the swf file as my sig like it would a normal Gif or Jpg. Is there any way to do that?

Thx alot for any help or suggestions.
[Edited by Xandur on 10-30-2001 at 01:34 AM]

Passing A Var Via Embed Tag
Hey Folks,
Simple Q, but holding me up a bit.
Just trying to pass in a Var from JavaScript to a flash movie via the <embed> tag.

I.E.

<script type="text/javascript">
var getDate="03/30/01";
</script>
<EMBED src="testdate.swf?date=(**getDate??**)">
</EMBED>

I can't seem to write that such that it pulls getDate into the src string so that flash pulls it in to date.

I would appreciate any light you could shed on the topic for me. Thanks in advance.

Err...how Do I Embed A Font?
I know this question must've been asked many times, and i searched the forums and found like 20,000 results...
so anyway.. how do i embed a font? thanks.

Embed Video
We want to "call" and embed an MPG into a projector file. We have FlashMX but don't want to have the video actually imported into the Flash file and exported as an EXE. We have noticed problems with this method. We instead want to "call" the video from within the EXE file and have it play inside.

We COULD do this in Director but have learned that the MPG has to be an AVI which is not possible ( client request ). The MPG is better quality than when converted to AVI.

The MPG is 70MB and is going on a CD. Suggestions?

Embed Quiries
I have the following scenario:
Movie "A" with single text field "Atxt" in it with embeded font missing from my pc.
Movie B which loads movie "A" in it self and text field "txtB" that uses the embeded font in the "txtA" movie but has no embeded characters in it self.
The question is why I can't use the embeded font in one filed in another field after all I have the font embeded in one of the movies.

EMBED Problems?
I have this player embedded in a table cell, but it won't load the song... it just says LOADING which is the first frame of the movie. It should load DATA.SWF and then present the CONTROLS (Play etc).

When I load just the SWF without a webpage it works fine... any ideas?


<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="95" HEIGHT="36">
<PARAM NAME=menu VALUE=false>
<PARAM NAME=movie VALUE="flash/player.swf">
<PARAM NAME=loop VALUE=true>
<PARAM NAME=quality VALUE=high>
<EMBED src="flash/player.swf" WIDTH="95" HEIGHT="36" NAME="Sound" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>

Embed Fonts?
how do you embed fonts for dynamic text boxes? it works for static text but not dynamic.

thanks

How Do I Embed Fonts?
Hi there,

I'm wondering how to embed a font on Flash MX on the PC. I'm using one of Minimls fonts and need to embed it so as I can use it with dynamic text.

Can anyone help?

Thanks
Graeme

ListBox Embed
Trying to embed the fonts of a listBox with no luck. Using myListBox.setStyleProperty("embedFonts","true") but get nothing. Any suggestions?

Copyright © 2005-08 www.BigResource.com, All rights reserved