Flex :: Embedding FXG Document By Variable Name
Nov 23, 2011
I've been trying to get FXG to work in my Flex app, it works and renders fine but what I'm trying to accomplish is a sort of a gallery with data about the images in a database. I used to be able to use <s:Image source=/path/{variable_name}> but now I have to import the FXG files and can't use <s:Image> anymore. Here I can display a static FXG image.
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:fxg="assets.fxg.*"
tabBarVisible="false" title="{data.name}">
[Code] .....
Trying to do <fxg:{data.picturename} /> blows up.
View 1 Replies
Similar Posts:
Mar 14, 2002
Is it possible after embedding a flash exe in to PowerPoint document that we can make flash buttons tell the ppt document to go to a certain slide.
View 2 Replies
Mar 30, 2011
I am having trouble getting an flv dynamically into a swf file and then getting it to play in a browser.
The objective seems simple enough but I've hit a brick wall. A movie file is to play in the entire browser window (100%) and preserve aspect-ratio when the window is resized.This is done using this code, which is loaded as the document class (Vid.as) in an empty .fla project using CS3
[Code]...
View 2 Replies
Aug 15, 2009
I am trying to embed a variable title into flash by way of flashvars. It works great in Firefox and Opera so I know it works, but for some unknown reason I just cant get it to work in IE8
Here is the code I am using to embed the flash
<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="200" height="12">
<param name="movie" value="themes/$themename/images/sideblock/blocktitle.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="flashvars" value="blocktitle=$title" />
[Code] .....
View 2 Replies
Jun 9, 2009
I've created 2 public variables in my Document Class...
public var _wall1:Wall=new Wall();public var _wall2:Wall=new Wall();I've then added them to the stage and given them relevant instance names...
stage.addChild(_wall1);_wall1.x=32; _wall1.y=510;_wall1.name = "wall1";I then want to use these variables in another Class (Ball.as). They need to be accessed in a function within the Ball Class constructor.
function bubble(event:Event):void{if(this.hitTestObject(_wall1)){ this.x += 1;}else if(this.hitTestObject(_wall2)) { this.x -= 1;}However, the following Error message keeps appearing...
1120: Access of undefined property _wall1.1120: Access of undefined property _wall2.Any pointers? Do I need to import something into the Ball Class to point to the _wall# public variables in the Document Class?
View 1 Replies
Jan 18, 2004
I'm creating a simple chat with flash with uses xml to store the messages. But how can I send the variable msg from flash into a xml document?If the xml-file looks like this:
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<messages>
</messages>
[Code]...
View 2 Replies
Oct 17, 2011
I want to know how you access a variable within the fla file from the Document class?I want an int inside the fla or swf file to be accessed from the class that is being used to run the file?
View 5 Replies
May 24, 2011
On the stage I have a movieclip by the name of rect_mc. Inside it have have a MovieClip square_mc.In the time line that I get when I double click on rect_mc (timeline of rect_mc) I have written the following code
var width1:Number;
width1 = sqaure_mc.width;
How can I access width1 from the document class?The thing that I want to is access the variable declared (width1) in the timeline of rect_mc. Just for the sake of a example only I choose the width of MovieClip.My doubt is how can access a variable declared inside the timeline of rect_mc from the document class. It could be any variable.My document class is:
package
{
import flash.display.MovieClip[code]....
View 1 Replies
May 31, 2011
I want to find out whether my swf was loaded locally or from another swf. For this purpose I have declared a variable 'parentType' in my fla. var parentType:String = String(parent); There is a function in the document class that determines whether swf was loaded locally or from another swf. The name of the function in the document class is 'externalOrInternal'. The varaible parentType is passed as a parameter to the function externalOrInternal externalOrInternal(parentType); The name of the document class is Main. In the constructor of Main I have the function pollResize() (the use of this function is to listen for the resizing event. That part of the code is not shown in the snippet given below).
[Code]...
I see that swfParentType is has value insde the function externalOrInternal. My doubt is why null is traced inside the function pollResize. Why is it not [object Stage] as inside externalOrInternal. Due to this I am not able proceed further with the stage resizing event.What needs to be done so that proper value is traced in the function pollResize.
View 1 Replies
Jun 15, 2010
I've made a custom sound class:
ActionScript Code:
package {
import flash.events.Event;
import flash.media.Sound;
import flash.media.SoundChannel;
import flash.media.SoundTransform;
[Code] .....
What I would like that class do is to trace a variable that is on Main.as which is Document Class, after a sound completed playing.
View 4 Replies
Mar 24, 2009
I have a new FLA with a variable in frame 1:
Code:
var testVar:String = "hello";
//--- my document class:
package
[Code]....
I just get null. How can I see a variable like that?
View 1 Replies
Feb 23, 2012
This has been my problem for a couple of days now.... I need to send a variable from flash that is embedded in an html to a javascript that will eventually should print the variables(that is the use of the js :to print).
So I've been using externalInterface.call("printval",param1,param2,pa ram3) to send my variables... I've put an alert in my javascript so that i could test if the value is there, the frustrating thing is the alert is showing with the variables but the printing part isnt executed. I tried this in firefox and it work, but I need this in ie...
View 9 Replies
May 13, 2010
Our Flash web-based applications play lots of audio for narration and sound-effects. Some of our customers have firewall rules that block downloading of MP3 and other audio files. So, we need to wrap those MP3 files in SWFs. In the past, I've written JSFL scripts that automate the Flash IDE and walk through a complicated, fragile set of steps to embed MP3 files into FLAs and then publish those to SWFs. Now, Flex SDK provides the mxmlc compiler. I've mixed ANT into our workflow, and command-line and automated builds have been a joy. So, I want to make transcoding or wrapping of MP3s part of our build process. I've found Embedding Asset at Compile time in Pure AS3, but this will require that I write a script to generate a wrapper class AS file. Is there a cleaner way to wrap or transcode MP3 files into SWFs?
View 1 Replies
Nov 3, 2009
We use
[Embed(source="assets/styles/basic/my_skins.swf",symbol="preloader_3")]
private var PreloaderAnim:Class;
for embedding a movieclip from an swf file.
How can I do the same using a CSS file (which is loaded at runtime) and use it in my class?
View 2 Replies
Feb 9, 2011
There is a new way to embed fonts in CS5. So I've embeded a font in a CS5 flash file's library and gave it a linkage ID. I'd like to embed this font in an ActionScript project using the "[EMBED]" tag. I've tried the following code to embed the "Helvetica LT" font, but the textfield seemed to be unaffected.
[Embed(source="../fla/CS5FlashFile.swf", symbol="HelveticaLinkageID")]
private var _cHelvetica:Class;
private function someFuntion():void {
[code]....
View 1 Replies
Jul 30, 2009
Is there a way to create embedded "pure as3" swf fonts using compc (without the flex framework integration)? If I embed a font like this in my as3:
package fonts
{
import flash.display.Sprite;
import flash.text.Font;
[Code].....
which prevents me from using the embedded font in "pure as3" projects. Is there a way to get flex-free fonts using compc?
View 1 Replies
Oct 23, 2009
The issue I am having is creating an application with nearly every component skinned using CSS. The majority of the components are skinned using:Embed(source="file.png");method. The problem I am running into, is flex trying to compile all of the embedded assets into the final swf. As it stands now, my compiled swf stands around 16mb!@@ OUCH. It is a very large application, but not that big. Any ideas on how to load the assets into the application at run time, or on request maybe?
View 2 Replies
Aug 5, 2010
I've searched high and low for an answer and it might be a foolish endeavour but i'd like to be able to read fonts from a directory at runtime for use in an actionscript/flex app.Ive seen the answers on the web and all rely on putting fonts in external swfs and certainly rely on embed meta tags or styles when i'd like a local fonts directory to be able to be used, its not too user friendly asking a user to compile their own swfs to use the app.The only answer I can see is to have a server running mxmlc and creating .mxml files with embed tags every time a user wants to update their fonts and recompiling the app when needed but its a bit much.
View 1 Replies
Mar 23, 2011
I have one font(VinylRegular). This font has extensions (like .ttf, .otf) of PostScript Type 1 outline font. How do I embed such fonts into a Flex application?
View 1 Replies
Apr 26, 2011
We are working on a flex project where we want to balance two challengesa) want to ensure that there is minimal need to be connected to internet- so it can be used offline. This will be used in rural locations with flaky connectionsb) Reduce file size by only embedding those assets in compile mode as is requiredBroadly, the project will go down one of three flows in the module called, based on user choice- Path A, Path B and Path C, which will require image set-A, set-B & set-C respectively (based on settings in the module)We want to send over all images in Set-A or set-B or set-C right upfront in the module called, based on choice made in primary project, to minimize need for connectivity once accessed. At the same time I want to avoid sending all three sets and bloating up download size three times.
View 2 Replies
May 2, 2011
i want to embed some of the system fonts on client machine in my flex app at run time there is way to load the fonts swf at runtime but it is not suitable cause of some security issues.
is there any way to embed fonts at run time in my flex app?
View 2 Replies
Oct 27, 2011
I have 2 images that are used hundreds of times throughout my application. Although they are only ~2.5 kilobytes each, they're multitude is causing the browser to load nearly 7 megs of data if reference them like this[code]...
Instead of having this issue, I would like to embed the image once, and then repeatedly reference the embedded object. I'm not exactly sure how to do this. From what I've read online, doing the following should work[code]...
View 1 Replies
Apr 8, 2011
I'm working on an AS3 project with Flash builder 4. I'm trying to get fonts into it.i read somewhere that it's possible to get the fonts from a .swf. I'm currently loading my assets in at run time, is it possible for me to get my embeded fonts from that loaded .swf? or do they have to be embeded some other way?
View 5 Replies
Feb 2, 2010
I am making a flex app to embed in my ASP.NET portfolio. What is the best way to embed the .swf file into the HTML of the .aspx page?
View 2 Replies
Mar 4, 2010
I know how to embed standard images(in JPEG, GIF, and PNG) in Flex but can't figure out how to embed "live" image feeds. For example:
http:[url]....
View 1 Replies
Apr 23, 2010
I am using the following code to embed Arial into my application:
[Embed(source='../assets/fonts/Arial.ttf',fontFamily='CustomFont',fontWeight='regular',
unicodeRange='U+0020-U+0040,U+0041-U+005A,U+005B-U+0060,U+0061-U+007A,U+007B-U+007E,U+0080-U+00FF,U+0100-U+017F,U+0400-U+04FF,U+0370-U+03FF,U+1E00-U+1EFF,U+2022,U+2219,U+20AC-U+21AC',
[code].....
View 2 Replies
Sep 11, 2010
I have a Flex 4 project that exists in a hybrid state of Flex/Flash AS3. I've declared a stylesheet in the base component of a Window:
<fx:Style source="styles/styles.css" />
And all of my Flex components can display this font. The stylesheet looks like this:
@font-face {
: url("../fonts/Whitney-Light-Pro.otf");
fontFamily: WhitneyLight;
[code].....
And the output I get is:
Fontarray length: 1
FONT 0:: name: WhitneyLight is embedded as type: embeddedCFF.
View 1 Replies
Oct 10, 2010
What's out there that lets you do this? Are there any OSS projects or maybe something a little more popular than this:[URL]? This does exactly what I'm suggesting (i.e. cuts out the need for Swing UI for the most part) but for a number of reasons I'd be interested in any better alternatives. alternatives would need to support the Flex SDK.
View 3 Replies
Dec 21, 2010
I use the images in the tooltips. Images are on the server. I'm using the code:
var tip1:String;
tip1 = "<img src='assets/images/yes.jpg' align='center' width='150' height='150' hspace='3' vspace='3'/>";
tip1 += 'some text';
yes.toolTip = tip1;
But many of images are more than 100 kb, then the image in the tooltip appear with some delay. Is it possible to embed all the pictures during loading swf, to appear at once with the text when the mouse over?
View 2 Replies
Jan 7, 2011
I am trying to embed arial bold font but getting run time error font ARIALBD.TTF with Identity-H is not recognized.i am embedding the font in purepdf library for generating the pdf file via flex app.[code]
View 2 Replies