Actionscript :: Pass HTML-DOM To Flex's?
Mar 16, 2010
All i want is to pass a HTML (DOM object) from javascript to Actionscript.
i saw this article on the net and tried a similar code. But when i execute the code in IE, it alerts : "Out of memory at line 18". I'm stuck here from yesterday. [code]...
View 1 Replies
Similar Posts:
Jul 26, 2011
As a PHP junior encountering Flex for the first time this scratches my brain for days. The flashvar contains the source of the video I want to play in the Flex video component. The HTML of the player looks like:
function createPlayer(videoSource){
document.writeln("<div id="player">");
document.writeln("<object width="489" height="414" FlashVars=""+videoSource+"">");
document.writeln("<param name="player" value="bin-debug/FlexPlayer.swf">");
document.writeln("<embed src="bin-debug/FlexPlayer.swf" name="player" width="489" height="414" FlashVars=""+videoSource+"">");
document.writeln("</embed>");
document.writeln("</object>");
document.writeln("</div>");
}
I tried to call the FlashVars in the FlexPlayer.mxml but it's not working. What I have to apply in the source in the mxml to access the FlashVars.
<s:VideoPlayer id="Player" left="0" top="0" width="497" height="414" skinClass="MySkin" source="FlashVars"/></s:Group>
View 2 Replies
May 11, 2011
I want to specify a string value in the HTML containing my Flash created using Flex 3. This value is a URL that is used by the Flex code and I want another dev to be able to update it. How do I do this? I'm using Flex Builder 3.
View 2 Replies
Oct 11, 2011
i'm a newbie in Flex/Air. I'm developing an AIR web browser and i want to use a virtual keyboard to write in the HTML pages.it works well when i try to write in a text area, but i don't know how to write in the html page.EXAMPLE:To write in textarea, i just have to call this:textarea.text = event.keyLabel;
View 1 Replies
Aug 4, 2011
I am designing a web application in Flex 4 and currently facing an issue rendering advanced HTML tags and entities in Flex 4. All I want to do is basically render an HTML text coming to me something like the one given below:-
[Code]....
View 3 Replies
Nov 17, 2010
i want to send a variable from html to swf(as3);
View 1 Replies
Jun 13, 2009
I've created a very simple video player that I want to use with many different FLV files on my site. Rather than packaging SWF files with each FLV, I'd like to just design one SWF file and have the corresponding HTML file pass the URL of the FLV as a parameter to the SWF. I've read a lot about passing in parameters from HTML to SWF using AS3, and it seems pretty straightforward. Here's an example of the code I created using Flash CS3 and ActionScript 3.0:
this.loaderInfo.addEventListener(Event.COMPLETE,loaderComplete);
function loaderComplete(evt:Event):void {
//traceText.text = "Loaded";
[Code]....
Note that I'm using the variable "userName" to pass the parameter. Eventually I'd use a variable like "movieURL" to convey the actual URL of the FLV file. In any case, when I run the code, I get ... nothing! Nothing but a blank text box. Both the HTML and SWF files are on my local machine.
If I uncomment the "//traceText.text = Loaded" line, the text box says "Loaded", which would indicate that the event listener is functioning properly.
View 9 Replies
Jun 14, 2009
I'm trying to get a URL parameter in my flash...The parameter is a xml url...
testXML = new XML();
testXML.load(xmlurl);I tried every code I can find on the web and couldn't find a solution to get xmlurl
I tried var xmlurl:String = String(_root.loaderInfo.parameters.xmlurl); but it didn't work...
_global.xmlurl didn't work either
Here is my HTML:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="590" height="300" id="test" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="test.swf?xmlurl=data.xml" />
[code]....
View 16 Replies
Feb 13, 2010
So, I want to pass a string variable to a SWF so that I can specify a XML file to load without republishing the SWF. When I assign the string variable to a textfield it is correct. But when I use that variable in the loader it does not display the XML from that file. You can see below that I commented out the string "lesson_11/images/0301_objectives.xml". If I put this string in the loader it works, if I use the string variable in its place it does not work. Can anyone see what I am doing wrong
Code:
var xmlFileToLoad:String;
var myQueryString:Object;
[code].....
View 1 Replies
Dec 23, 2010
I am really new at Flash. So I am trying to make a flash container that display Vimeo videos. Here is my actionscript.
var videoContainer:Sprite = new Sprite();
var moogaloop:Sprite; // the video player
var moogaplayer:*; // reference to the moogaloop api
var player_width :int = stage.stageWidth;
var player_height:int = stage.stageHeight;
[Code] .....
And I want to set the vidId by URL. For example: [URL]. And it doesn't work. It works fine if I set the video id in open ()
View 1 Replies
May 17, 2011
I want to pass some image names and numbers as string to my flash, so in html file I have [code]...
View 1 Replies
Jan 18, 2012
I have an AIR application that is downloaded from a webpage. In order to download the application, one must be logged in. I would like the first time the user opens the application, to be able to acces the userId that was logged in.
Is there any way do pass that information?
View 2 Replies
Nov 23, 2005
How does one go about getting a variable from html into your flash movie via action script?
View 4 Replies
Dec 13, 2009
I'm working on a project where the HTML in which my main SWF is embedded will be called with a couple of dynamic parameters, like this:PHP Code:how to get that parameter into my SWF?
View 5 Replies
Apr 24, 2011
I have three objects on the stage, each of them holds different value. Then there is a text field. If, lets say one object is clicked textfield displays value of the object, if more objects are clicked on textfield displays the values of all objects counted together (I think you kind of know where I am coming from..
Now, after I have clicked on the objects I wanted, I would like the value of textfield to be passed to..possibly html form..Im not sure whether this can be done from the swf file, so was thinking that probably you can create a button that send the value somewhere, only dont know where and how..
View 1 Replies
Jun 23, 2009
I've read a variety of pages that describe how to pass a variable into a flash movie (AS3, player = v9) from the html in which it is embedded. This page describes AS3 but neglects to mention what to do with the object and embed tags in the noscript section. Furthermore, I'm not sure the javascript I see generated in my page looks like the example there (the js in my page doesn't check AC_FL_RunContenta against zero)This page is quite long and appears to deal mostly with AS1 and AS2 approaches which I have used before and neglects entirely the newish javascript approach which appears to be used to embed flash these days (i.e., the javascript function AC_FL_RunContent).I was wondering if someone could spell out the proper way to pass in a variable from HTML so that flash can see it in such a way that works even if javascript is disabled, in all browsers, etc., etc.
View 2 Replies
Jun 23, 2009
I've read a variety of pages that describe how to pass a variable into a flash movie (AS3, player = v9) from the html in which it is embedded. This page describes AS3 but neglects to mention what to do with the object and embed tags in the noscript section. Furthermore, I'm not sure the javascript I see generated in my page looks like the example there (the js in my page doesn't check AC_FL_RunContenta against zero). This page is quite long and appears to deal mostly with AS1 and AS2 approaches which I have used before and neglects entirely the newish javascript approach which appears to be used to embed flash these days (i.e., the javascript function AC_FL_RunContent). I was wondering if someone could spell out the proper way to pass in a variable from HTML so that flash can see it in such a way that works even if javascript is disabled, in all browsers, etc., etc.
View 3 Replies
Oct 7, 2009
Essentially, can one swf on a page pass info to another swf on the same page (ie swf1 --> jscript --> swf[2,3,4] or swf1--> swf[2,3,4]??)
Given a web-page of somewhat standard design (menu options and a content area) where the menu options are individual swf is there a mechanism for letting the parent client know that a particular swf AS3 has received input?
Been puzzling this for a while. No F1 has turned up anything nor have general or forum searches. Didn't come across any output PARAMs (ala MS-SQL T-SQL). Did I miss them? NavigatetoURL() seemed possible but that either opened a new window (default) or using "_parent" just wiped out the current window contents completely. Using _parent with <framesets> pretty much resulted in the same wipeout.
View 1 Replies
Oct 28, 2009
how to pass variables from the HTML the Flash is embeded to the SWF, but can I send text to a SWF from another HTML page?
Here's the setup:
On page one.html there is a SWF with a dynamic text box in it with the instance of "txtBox".
On page two.html, the only thing on the page (including code) is "hello".
I'd like the SWF on page one.html to say "hello" in the text box.
View 4 Replies
Dec 23, 2011
How to pass text from flash to html?
View 4 Replies
May 13, 2010
so I have my php API (html Get api for Flash builder and C# apps). So if you want to submit data to it you use string like
[URL]
If there are english letters in it its ok. But what if I need to pass UTF-8 string like this Русское Имя to my api what shall I do?
View 1 Replies
Jun 23, 2009
I've read a variety of pages that describe how to pass a variable into a flash movie (AS3, player = v9) from the html in which it is embedded. This page describes AS3 but neglects to mention what to do with the object and embed tags in the noscript section. Furthermore, I'm not sure the javascript I see generated in my page looks like the example there (the js in my page doesn't check AC_FL_RunContenta against zero). This page is quite long and appears to deal mostly with AS1 and AS2 approaches which I have used before and neglects entirely the newish javascript approach which appears to be used to embed flash these days (i.e., the javascript function AC_FL_RunContent).
I was wondering if someone could spell out the proper way to pass in a variable from HTML so that flash can see it in such a way that works even if javascript is disabled, in all browsers, etc., etc.
I've tried to attach the HTML generated by the Flash IDE to this topic but both HTML and zip format were rejected for some reason.
View 3 Replies
Sep 10, 2009
How to pass the values SWF file to HTML Page?
forexample:
i type the user name and Password in Swf file. the username and Password is
shown in Html page. how to send the username and password in Html page?
View 1 Replies
Nov 16, 2009
i'm trying to pass image src from js on my html to flashe from some reason it's not working...
var result:Object = call("progress");
function call(func:String):Object
{
[code]....
View 2 Replies
Feb 9, 2010
I've read tutorials everywhere which use PHP scripts etc.etc. to send data between the web page and flash. I am planning to play music from a web-page which is shown inside the flash application. The user clicks a hyperlink, and the url is given to the flash application, and the song is automatically played.
View 3 Replies
Sep 20, 2010
I have following code from AS2 and I need to convert it to AS3.
function ActivityComplete() {
if (try_count >3) {
getURL("javascript:setNextTxt('Click Next to continue.');setPageDone();");
}
}
View 4 Replies
Dec 13, 2006
trying to convert data into XML and than be readble by flash, why can't macromedia be 'normal' and have some connector that can directly connect to a SQL database
Anyway enough about my rant...
I have a WYSIWYG html editor on my website that generates flash readable HTML code and we use PHP to store the information that is generated as a .xml file to be readable by our flash file. The data is passed via XML but trying to get the HTML tags through without the XML parser thinking its XML and interfering, and I've managed to research find the CDATA tag to pass information in (i dont know much XML, just basics to get it to work) but it doesn;t work!!
When I try to HTML code that is wrapped in the CDATA than it just shows as "null" on my flash file, but if i remove the CDATA tag and put in simple text it seems to work ok! even if i put in
Code:
<b>you better work, damn you!</b> this part is not bold, but doesnt show anyway
than the part in bold shows as bold but anything after that has disappeared
how I can effeciently put HTML into flash and get flash to successfully render it as HTML?!? note I've already used a .txt file unsucessfully and it seems to have LOTS of issues with special characters
View 1 Replies
May 8, 2009
I want to pass a variable from one SWF to another swf, both embedded within individual HTML files (lets call them main.html and Events.html) . In movie 1 I have 3 buttons. Based on whichever button is clicked I want to attach a different number in the variable (jumpframe), then pass that through to the second movie over HTML, where it opens at that specific frame number.[code]...
However, I understand that I must get that jumpframe variable from the HTML line into the second flash movie somehow. I believe by adding some code into either the first (main.html) or second HTML file (Events.html), but I have tried so many different solutions I have confused myself.
View 7 Replies
Dec 30, 2010
I have this website that has several sections(Abouts Us, Projects, Services ect.) in it and I want it to automatically go to one of them(Services) if people enter the website through a url I am sending through a email campaign about Services. I know I can just attach a variable to the url but it seems I have to specify the .swf so that the url just loads that .swf and not the webpage.
View 9 Replies
Jul 15, 2010
i have a flash button and i want to pass the button link (after click) as parameter.
View 2 Replies