ActionScript 3.0 :: Meta Data And Loading Methods?

Aug 22, 2009

I'd like to be able to resize the stage according to the size (and aspect ratio) of the video - to do this so far I've been trying by using an external function call to javascript:

Code:
function onMetaData(info:Object):void {
objInfo = info;
ExternalInterface.call("videoPlayer.resizeVid", info.width, info.height, mcVideoControls.height);
tmrDisplay.start();
}

As you can see it happens on meta load, and in order to do that I have to attach the net stream, start playing the video to load the meta data, and then pause it:

Code:
ncConnection = new NetConnection();
ncConnection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
ncConnection.connect(null);

[code].....

What's happening is the player loads up at it's original size, and then with a jolt is resized as required, but responsiveness and load time of the video is very bad and hangs the browser quite easily...

1) Is there some sort of threaded pre-load I can use so that the video doesn't load with such a jolt and the responsiveness of the player isn't compromised

2) is there a way of obtaining the meta data of the video without loading it fully?

View 8 Replies


Similar Posts:


Actionscript 3 :: Flex Embed Png, Meta Data Required?

Jul 19, 2010

this is a part of my code

[Embed(source='dmr/images/icones/icnPresenceInline.png')];
[Bindable]
private var presentAuBureau:Class;

View 3 Replies

ActionScript 2.0 :: Take The Meta Data Duration Value For An Flv And Split It Up Into Three Separate Variables?

Jan 15, 2007

I need to be able to take the meta data duration value for an flv and split it up into three separate variables: hours, minutes, seconds.

View 1 Replies

ActionScript 3.0 :: Getting Audio Stream Meta Data From An Akamai FMS Stream

Jul 21, 2009

I am having trouble getting audio stream meta data from an Akamai FMS stream. Everything is undefined and I'm not sure why. I am hoping maybe someone will notice something that I am overlooking. The stream is connecting and playing without a problem I just can't seem to figure out why all the meta data is undefined.

[Code]...

View 6 Replies

Flex :: Data Access Object Or Inline Methods?

Jan 28, 2011

I am still very new to Actionscript and have an okay working knowledge of Flex. I am working on an AIR application that runs a SQLite database underneath. The database is only 3 tables (projects, items and types). I was wondering if Actionscript best practices are to use a data access object or layer to store all of my database functions or to just run them inline as needed. I would assume an access layer would be best for interacting with the database for usability, but I can't seem to find much documentation for SQLite in AIR.

View 1 Replies

Methods Of Accessing/loading External SWF's?

Apr 20, 2010

What are some methods of accessing/loading external SWF's aswell as there variables inside them. I've been using URLrequest and loader methods no luck yet.

View 1 Replies

Professional :: Methods Used For Loading External Swfs And Assets?

Jun 29, 2010

My client wants to take all the Flash games on their website and put them on a portable device that's not connected to the internet. I need to make sure that the swfs are completely self contained, in that they do not require the internet to load any swfs or other assets. The client does not have any of the fla's, so my plan is to download the swf and decompile it with Sothink, and then search the AS for these methods:

URLRequest
loadMovie
loadMovieNum
 
If the search returns results then I'll assume the game is loading something and that game will not be used. The client doesn't want to put any development time into this, so it either goes on the portable as is or not at all.

View 6 Replies

ActionScript 3.0 :: Get Meta Tag Information Of A Video?

Oct 21, 2011

I want to read Meta tag information of a video file like Artist,Album,Year,etc.... I tryed "onMetaData" for a video file.But i didnt get information like rtist,Album,Year,etc... The video file can be mp4,avi,mpg,mov. I dont want them to play in swf... I just want to load the file and show the meta tag information as text. For audio files i can get id3 information after loading the song.But is there any other way to get them with out loading the sound? Each loading will take time to give the result.

View 9 Replies

IDE :: Editing HTML - How To Add Meta Tags

Mar 4, 2009

I designed my friends site entirely in Flash, but now want to add things like meta tags. I've done extensive searching and found the best (or only) way to do this is to open my index.html page in dreamweaver or textedit and add them there. Sounds easy enough but when I open my html page to look at the code I get this error:
// Provide alternate content for browsers that do not support scripting
// or for those that have scripting disabled. Alternate HTML content should be placed here. This content requires the Adobe Flash Player. Get Flash.
I have Flash Player installed.

View 1 Replies

Professional :: Changing Meta Tags And Description On SWF?

Feb 22, 2010

I bought a template, made some changes, published it and upload it on FTP. But each time I do a search, one one the search results is one of the orignal page names. Any tips on how to change it?

View 2 Replies

ActionScript 3.0 :: Fetch NetStream Meta Without Playing?

Nov 30, 2011

Is there any way to get a NetStream's meta from FMS other than starting playback?I want duration, framerate, etc. before the movie starts playing.

View 1 Replies

Retrieve Meta For A Stream From Server Script?

Jan 26, 2012

I want to create a server script that will reply with the meta of a specified stream. This is for a player I have that really needs meta, but I hate having to start playing the video to get it. Is this possible?  What calls does the server need to do to fetch and transmit the meta?

View 2 Replies

Javascript :: Add Meta Headers To URLRequest In Flex3

Mar 7, 2012

I am writing a flex3 tool for our uber-geeks. The tool is for futzing around with sharing URLs to various various social sites.

private function submitRequest(evt:Event):void {
var requestURL:URLRequest = new URLRequest(constructURL());
requestURL.method=URLRequestMethod.POST;

[Code].....

I can call an external javascript function that will do a post, but however the XmlHttpRequest infrastructure only want to setRequestHeader(key,value), and seems to need to be from a very specific list of strings. setRequestHeader("foo","bar") did not add a foo header in my outgoing request.

There does not seem to be a way to add the header meta tag. via javascript. Or at lease I am not finding it off of google.

View 2 Replies

ActionScript 2.0 :: Any Way To Alter Path To Image In Meta Tag?

May 6, 2010

I'm trying to figure out a way to alter a path to an image that is in a meta tag. It's for a facebook share button, and I'd like the ability to change the thumbnail image that is sent to facebook depending on where the user is in my flash file. The link itself is sent from flash no problem but I'd like to update this meta tag
Code:
<link rel="image_src" href="[URL]" / >
First somehow (not sure if PHP is the answer or flashvars or what) and then send the link. I attempted to just add all the facebook meta data to a php file that had a redirect link to the facebook share but it didn't like that hack. So basically I need to alter the meta tag on the current page and send the link from flash.

View 1 Replies

Insert Stuff Like Headers (<h1>) And Meta Keywords Into Flash?

Mar 25, 2009

Can I insert stuff like headers (<h1>) and meta keywords into flash?

View 1 Replies

Data Integration :: Loading Data From Php Page Into StartLoading();

Aug 10, 2008

Loading data from the test.php into the startLoading();

How do I load the data from test.php "echo $photo_out;" into the startLoading();

loadVariables("test.php", this, "POST");
infoField._visible = true;
startLoading(test.jpg);

[Code]....

View 16 Replies

ActionScript 2.0 :: Saving Data And Loading Data From A .txt File?

Sep 24, 2006

I have read through Shared Objects but i couldn't get it work...

I just have to save my data, maybe array into .txt file and later on
retrieve from the same .txt file...

Anyone here have an example or some source code so i can have reference on it?

View 6 Replies

Media Server :: Start Buffering And Fetch Meta Without .play()?

Nov 22, 2010

I want to get the meta from an FMS server and start buffering (really I just want the first frame).  Is there any way to do this other than calling play() and waiting for meta to call pause?

View 2 Replies

Use SWF Address Deep Linking While Adding Dynamic Meta Content?

Aug 19, 2010

I have a flash site which reads deep links from the URL, then using c# asp.net we read the url and write the appropriate meta tags for the page being requested. [code]...

View 1 Replies

Flex :: Removing Flash Meta-policy Communication Warning?

Jun 6, 2009

I am communicating to an external server via a URLLoader and receiving the following warning: Warning: Domain domain name does not specify a meta-policy.Applying default meta-policy 'master-only'.This configuration is deprecated.

The provided link redirected me to another page, which didn't really explain how to remove this warning. It looks like it might involve modifying the crossdomain.xml file on the server, but I'm not sure exactly how. how to remove this warning?

View 1 Replies

ActionScript3 :: Flex - What Types Of SVG Gradient Fills Are Supported When Using The Embed Meta Tag

Jul 7, 2009

I've been trying to embed some svg files into an AS3 project using the Embed meta tag. For example:

[Code]...

However when displaying these files as Sprites only some of the gradients are surviving the embeding process. From what I've found simple (2 step) horizontal gradients seem to stand the best chance of being preserved, but sometimes other kinds of gradients are as well. In one case simply rotating an object 90 degrees causes the gradient to vanish when displayed in flash. Does anyone know a rough set of rules to use when creating svg gradient fills so they are preserved when rendered in flash? BTW: I used Inkscape to create the images in question.

Update: Bizarrely the solution to this seems to be setting the opacity of any object in the svg file whose gradient isn't displayed properly to a value below 1. Don't ask me why this works but it does. It does however have the unwanted side effect of the objects edges not being rendered as smoothly.

View 4 Replies

Flex :: Fill A List With A Combination Of Database Entries And Meta-values?

Aug 31, 2009

I am acquiring the contents of a table to fill a dropdown box in a Flex 3 application:

<mx:ComboBox dataSource="{myList}" />

The list is populated by the contents of a database table of persons:

Public, John Q
Doe, Jane
...

The combo box, however, also needs to have some other meta-entries in it that do not come from the database:

ALL
ALL MEN
ALL WOMEN
Public, John Q
Doe, Jane
...

View 1 Replies

Flash :: Meta Tag In Project Can't Handle Percentage Width/height Values?

Apr 5, 2011

I have an ActionScript project set up using the Flash Builder IDE. Using the Flex 4 compiler to compile it. At the top of my application class, I have:

[SWF(width="100%", height="100%")]
public class MediaPlayer extends MovieClip {

This is not acceptable to the compiler to do a release (it throws errors saying it can't parse the width/height values). Pretty annoying. I've tried to do things the "right" way, but none of the following work:

[Code]...

So the width and height attributes are being explicitly set to numbers here. I don't know much about the 'scale' attribute; maybe it is coming in to play here? And, to be clear: it will work as expected if I set the [SWF] meta tag to have width "100%" and height "100%"... so it seems like it actually is preferring the compiled arguments over the browser environment. Perhaps there are other settings I am missing?

View 2 Replies

Data Integration :: Loading Data From Xml File?

Jan 26, 2008

I am attempting to get data from an xml file load in flash. I followed a tutorial in a new fla and it seemed to work fine, I then tried to adapt it to my own needs which worked fine. But then when trying to implement this into my news section it doesn't seem to work. I am trying to make a news section, that displays the date and news article. This is in within a movie clip, I even tried putting it in the timeline of the scene but still nothing.

- I have 2 dynamic text boxes, date_txt and news_txt

- The xml file is named news.xml,

- both the fla and the xml are in the same folder


This is the actionscript I am using:

function loadXML(loaded) {
if (loaded) {
_root.thedate =

[Code]....

View 1 Replies

Flex :: TextArea Strings And Prohibited Characters I.e. <meta Charset="utf-8">?

Jul 1, 2011

I'm trying to set the text of a TextArea with some text containing forbidden characters. I'm trying to set the text as <meta charset="utf-8"> and there is of course a problem with the "'s. I think it's something like this <meta charset=&#0034utf-8&#0034;>, but obviously this doesn't work.

View 1 Replies

Professional :: Loading The XML Data?

May 3, 2010

I have the following code:

[Code]....

In another function I have the following:

myText.htmlText = pageDetails.text;

Now, if I uncomment the above (and pull out the previous definition of pageDetails), everything works just fine. However, if I leave the comment, it throws the following error:

TypeError: Error #1009: Cannot access a property or method of a null object reference. at DeltaMain/Text()    at DeltaMain()

Now, the file pageDetails.xml does exist in the appropriate folder with the following, essentially identical to the above comment:

<PAGE name='index'>  <DETAILS>This is the home page.</DETAILS></PAGE>

View 7 Replies

Data Integration :: Loading FLV Via PHP

Jul 25, 2007

I've built a custom FLV player that needs to rely on a PHP script to serve it FLV files in order to control access to those files. My player uses the FLVPlayback component.My actionscript makes a call like this to the PHP script:[code]When tested, the FLVPlayback component simply won't accept the FLV served up to it in this way. It WILL work if loading directly from the file system, so I know my actionscript works. I can load just about any other type of file into Flash this way,including JPG and SWF. FLV is the only format that doesn't work.I've added the video/x-flv MIME Type to all test servers I've tried this on, so the server should recognize the file.

View 1 Replies

Flex :: Loading Data From The XML

Apr 12, 2011

I have XML file

[Code]...

in my application is tilelist which loads data from XML why I can not take the name of the selected item in the TextInput?

[Code]...

View 1 Replies

ActionScript 3.0 :: Loading Data With XML?

Feb 6, 2010

I'm trying to find a way of pushing the data of a specific XML Node to an Array with a for loop, but I can't seem to find a solution, because the name of the Node I'm pushing data from, depends of the current integer inside the loop.

[Code]...

View 4 Replies

ActionScript 3.0 :: Loading Xml Data | Last Added Pic's?

Apr 16, 2009

I use some script of grid gallery. it works great and its based on xml file with this structure:

PHP Code:
<?xml version="1.0" encoding="utf-8"?>
<GALLERY XPOSITION="5" YPOSITION="5" WIDTH="100" HEIGHT="100">

[code]........

View 1 Replies







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