File in Flex3
hi ,
I am using flex3 and i just wanna write an xml content in to
an file and need to read from there... I saw flash.filesystem
.File, flash.filesystem.Filestream which belongs to Adobe AIR and
also done a sample , it was ok during compilation of util.as(read,
write definition) but while i try to access that file it shows an
error message like
VerifyError: Error #1014: Class flash.filesystem::FileStream
could not
be found.
at [newclass]
at
global$init()[
wat to do ??, is there any steps to configure it ... Need a
help
im using flex builder 3 and flex sdk : moxie
Expecting the reply,
regards,
shahm
have you downloaded the air air runtime ?
Similar Messages
-
Hi all,
How can i save my files in flex3?
i have an application which creates an E-card. It has texts,
images, etc...so if i create an ecard ...how can i save that to my
local machine?...please reply asap:)
Thanks in advance:)
Aditi1) you can't
2) Use AIR
3) send the data to a Server
Tracy -
Simple question about integrating .AS file into flex3 code
I'm sure this is extraordinarily easy for most people, but I
can't figure it out ... nada, zilch ...
I have this file (
Optimized
Perlin Noise File), and I'm trying to include it/make it
available in my flex3 code. I just can't get the namespace/import
code right, and I'm not sure - because of the namespace - if I'm
supposed to put this file in a collection of sub-folders (something
like: nl/ronvalstar/math ...). The end result is me being able to
replace the BitmapData.perlinNoise method with an optimized version
for real-time cloud generation.
If somebody could provide the code to get this file
integrated I'd be grateful.
Thanks :)"January_jsd" <[email protected]> wrote in
message
news:g8ptaq$jp3$[email protected]..
> I'm sure this is extraordinarily easy for most people,
but I can't figure
> it
> out ... nada, zilch ...
>
> I have this file (
http://www.quasimondo.com/examples/OptimizedPerlin.as),
> and
> I'm trying to include it/make it available in my flex3
code. I just can't
> get
> the namespace/import code right, and I'm not sure -
because of the
> namespace -
> if I'm supposed to put this file in a collection of
sub-folders (something
> like: nl/ronvalstar/math ...). The end result is me
being able to replace
> the
> BitmapData.perlinNoise method with an optimized version
for real-time
> cloud
> generation.
>
> If somebody could provide the code to get this file
integrated I'd be
> grateful.
http://flexdiary.blogspot.com/2007/08/as3-basics.html -
I am Student and having a huge problem need some help quick!!!
Hello I am student in college and i am developing a file share portal for my final year project using Flex 3 on the client side, java on the server side, hibernate for ORM, Sping MVC and My Sql 5. I am having a bit of a problem parsing this:
------------GI3ae0ae0ae0GI3KM7KM7Ef1cH2ei4
Content-Disposition: form-data; name="Filename"
Flex3.txt
------------GI3ae0ae0ae0GI3KM7KM7Ef1cH2ei4
Content-Disposition: form-data; name="action"
upload
------------GI3ae0ae0ae0GI3KM7KM7Ef1cH2ei4
Content-Disposition: form-data; name="file"; filename="Flex3.txt"
Content-Type: application/octet-stream
Flex 3 can be a pain in the arse!!!!!!
------------GI3ae0ae0ae0GI3KM7KM7Ef1cH2ei4
Content-Disposition: form-data; name="Upload"
Submit Query
------------GI3ae0ae0ae0GI3KM7KM7Ef1cH2ei4--
This is my Java code:
package com.file.exchange.service;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource;
import java.io.*;
import java.sql.Blob;
import com.file.exchange.vo.Files;
import java.util.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.File;
import org.apache.commons.fileupload.*;
import org.apache.commons.fileupload.disk.*;
import org.apache.commons.io.*;
import org.apache.commons.fileupload.servlet.*;
import java.util.Iterator;
import java.util.List;
import java.util.ArrayList;
import java.util.ListIterator;
import javax.imageio.ImageIO;
import javax.imageio.ImageReader;
import javax.imageio.stream.ImageInputStream;
import org.apache.commons.fileupload.util.FileItemHeadersImpl;
import javax.servlet.*;
import javax.servlet.http.*;
public class FileUpload extends FileBaseService
InputStream in = null;
OutputStream out = null;
ByteArrayOutputStream bout = null;
@SuppressWarnings("unchecked")
@Override
protected String getXmlFromOperation(HttpServletRequest request,HttpServletResponse response) throws Exception
int readBytes = -1;
int length = request.getContentLength();
in = request.getInputStream();
byte[] buffer = new byte[length];
bout = new ByteArrayOutputStream(length);
while((readBytes = in.read(buffer, 0, length)) != -1) {
bout.write(buffer, 0, readBytes);
byte[] inData = bout.toByteArray();
FileOutputStream fos = new FileOutputStream("C:/Documents and Settings/Andrew Hobbs/Desktop/helloworld.txt");
for(int i=0; i<inData.length; i++)
fos.write(inData);
fos.close();
DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
Date date = new Date();
String data = "Hello";
String id = "1";//getCharacterDataFromElement(vID);
String name = "meh";//getCharacterDataFromElement(vname);
String type = "1";//getCharacterDataFromElement(vtype);
String size = "5555";//Long.toString(fileObject.length());//getCharacterDataFromElement(vsize);
Blob content = org.hibernate.Hibernate.createBlob(data.getBytes());//fisFile);//data.getbytes[]
String date_uploaded = dateFormat.format(date);
Files file = getFileDao().uploadFile(Integer.parseInt(id), name, type, Integer.parseInt(size), content, date_uploaded);
return file.toXml();
I will so grateful if somebody could point me in the right direction with this or point me to possible examples of parsing this!
ThanksLet me warn you up front: never mark your questions as urgent. People really don't care how urgent it is to you, and will likely only irritate them enough to not want to help you. Lucky for you, I couldn't care less ;)
you seem to want to get an uploaded file using FileUpload. Did you see the user guide on how to do this? You seem to be going about it in completely the wrong way.
[FileUpload user guide|http://commons.apache.org/fileupload/using.html]
Also:
FileOutputStream fos = new FileOutputStream("C:/Documents and Settings/Andrew Hobbs/Desktop/helloworld.txt");Hardcoded paths in your code? Not very portable is it. I would define paths in a properties file. Read this:
[smartly loading properties|http://www.javaworld.com/javaworld/javaqa/2003-08/01-qa-0808-property.html] -
Migration to flex 4 - performance issues
Hi ,
I am facing some strange behavior after upgrading my flex project from flex3 sdk to flex4.
First the performance has decreased significaly so i did some research and read this:
http://opensource.adobe.com/wiki/display/flexsdk/Linking+RSLs+by+Default
which says in short the in flex4 all the flex libraries are loaded as rsls to the player which explains the performance decrease i had ( my application uses a lot of memory which is what you have less of when you use rsls, you get better loading time ).
folowing the above article i change my compiling configuration not to load the rsls :
static-link-runtime-shared-libraries = true
this improved my performanc by a lot but still not as good as in flex 3 , when i look at the swf files compiled in flex4 i see that they are 2 times bigger now then in flex3 , none of the code was changed. this is strange to me because in flex3 i also did not use any adobe framework as rsls so i expect the size to be the same .
anyone has any idea why flex4 outputs a larger swf file then flex3 ( when not using rsls )?
ThanksFlex 4 debug SWFs are larger because they are less optimized so compilation
can be faster. Export Release Builds and compare. You will still see an
increase, but it shouldn't be as significant. -
Reading an xml file in actionscript using flex3
plzz tell me how to read an xml file in actionscript using flex3.......
One possible option to parse an xml-file to a flex XML object:
public function parseConXML(source:String):void
xmlLoader = new URLLoader();
xmlLoader.load(new URLRequest(source));
// Eventlistener: if URL loaded --> onLoadComplete function
xmlLoader.addEventListener(Event.COMPLETE, xmlLoadComplete);
public function xmlLoadComplete(evt:Event):void{
var xml:XML = new XML();
// ignore comments in XML-File
XML.ignoreComments = true;
//ignore whitespaces in XML-File
XML.ignoreWhitespace = true;
// XML-Objekt erstellen
xml = new XML(evt.target.data);
//AFTERWARDS use your xml as your wish -
Flex3 Not Displaying Sinhala Unicode Fonts in the MXML File
I am using Flex 3.2 for my project.
I want use Sinhala Unicode Fonts But inside the Mxml File I cannot type the Sinhala Characters.
When I change the Keyboard to Sinhaha inside the Flex3 Sinhala Characters are not dispalying.
But when I run the application I can see the fonts in the Browser.
I am using Windows 7.
Thanks
ShumsThanks Tom. Yeah, I understand that PDFs are not designed to work like word-processing files, etc., and the need to have the Chinese text copy over well is really just to prove that the document is searchable (i.e. if it can copy a short section of text Ok, then it means the characters are recognized by the PDF reader and I can search the document, which is my main goal.)
The problem I mentioned with Preview, etc., is actually a new one; one that has become a big problem for me only in the last few weeks. Before, I never had this issue. I'm not sure what changed, but I was suspecting MacKeeper and their "language cluster" cleaning feature, where it "helps" you by removing unused fonts. Though, I can't quite confirm that this has played a role. I just completely reinstalled the OS thinking that this would fix the issue by installing all the original fonts again, if MacKeeper did indeed remove the fonts these PDF programs use when editing or saving PDF files. However.....unfortunately....the problem is still here.
So, that developer I mentioned in the first thread who said this is an OS X issue may indeed be correct.
And just to be clear, I have confirmed that the PDF's I working with do have the fonts embedded already. It is only when I alter them and then save or export from Preview, Skim, Nomad, etc., that the character information gets stripped out and I'm left with a document that one can read but cannot search. I can't even OCR it because this problem also affects my OCR software, as if it can't get access to the fonts needed to embed in the recognized PDF.
Any other thoughts? I'd appreciate any you have. -
Flex 3 vs Flex 4 Preprocessor directives and code behind (External Actionscript file)
I have a framework that I've built that I want to use on Flex3 and Flex4.
I've added pre-processor directives as per this link (http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_21.html) and got my Flex 4 code to compile nicely.
I then went to flex 3 and discovered my sub-class of Application wouldn't compile because it was based off of spark. No problem, I'll add in a directive.
Except now my overridden class has duplicate code, specific to which SDK it is using.
No problem, I'll put all of the application class code in an Actionscript file and include it in both Application class declarations for each directive.
It works nicely in Flex 3, so I went to Flex 4, tried to compile and now I'm getting compiler errors saying things such as "The (private|public|protected) attribute may only be used on class property definitions." and "The (private|public|protected) attribute can only be used inside a package.
This same file works in Flex 3, but not in Flex 4.
What can I do to make the code compile in both places?
I'll work on a simple case so I can upload some code.Nevermind.
I got around this issue by renaming my sub-classed Application to "...Application".
Now I can use a directive to specify an import statement for the extends Application portion rather than specifiing the fully qualified spark.components.Application or mx.core.Application.
Lame - but done. -
Obviously I'm doing something wrong because I can build my FlexUnit instance in ANT and get the verbose response that shows there were errors or not (I am using a simple test case and the SampleTests provided). Yet when I go to the report response (TESTS-TestSuites.xml) the file is empty:
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites />
I can run the FlexUnit4SampleCIProject and get the appropriate failures and report file, but not with my file. Any ideas why?
I extended my tests to be more than just one because I saw at one point there was a bug with that.
My ANT segment (my compile is earlier and successful):
<target name="executeTestRunner" description="executes the test runner app">
<echo>Running Test Runner SWF</echo>
<flexunit swf="${Test.dir}/${TestRunner.name}.swf"
toDir="${Report.dir}"
haltonfailure="false"
verbose="true"
localTrusted="true"/>
<echo>Ran Test Runner SWF</echo>
<echo>Generate Readable Tests</echo>
<junitreport todir="${Report.dir}">
<fileset dir="${Report.dir}">
<include name="Test-*.xml"/>
</fileset>
<report format="frames" todir="${Report.dir}/html"/>
</junitreport>
<echo>Generated Readable Tests</echo>
</target>
The FlexUnit4SampleCIProject's ANT segment:
<target name="test" depends="compile">
<!-- Compile TestRunner.mxml as a SWF -->
<mxmlc file="${test.src.loc}/TestRunner.mxml" output="${bin.loc}/TestRunner.swf">
<source-path path-element="${main.src.loc}" />
<library-path dir="${lib.loc}" append="true">
<include name="*.swc" />
</library-path>
<compiler.verbose-stacktraces>true</compiler.verbose-stacktraces>
<compiler.headless-server>true</compiler.headless-server>
</mxmlc>
<!-- Execute TestRunner.swf as FlexUnit tests and publish reports -->
<flexunit swf="bin/TestRunner.swf" toDir="${report.loc}" haltonfailure="false" verbose="true" localTrusted="true" />
<!-- Generate readable JUnit-style reports -->
<junitreport todir="${report.loc}">
<fileset dir="${report.loc}">
<include name="TEST-*.xml" />
</fileset>
<report format="frames" todir="${report.loc}/html" />
</junitreport>
</target>
Also, there is an error that the file FlashPlayerTrust is missing, shouldn't the flexUnitTasks.jar build that file if missing? I added it manually and it fixed the problem.Not a problem, already was generated.
flashlog.txt
<testcase classname='tests.unitedmindset.components::SuperLabelTest' name='testSetEmptyText' time='0.000' status='success'/>
<testcase classname='tests.unitedmindset.components::SuperLabelTest' name='testSetNullText' time='0.000' status='failure'><failure message='expected:<Super > but was:<Super null>' type='tests.unitedmindset.components::SuperLabelTest.testSetNullText' ><![CDATA[expected:<Super > but was:<Super null>
at org.flexunit::Assert$/failWithUserMessage()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\Fl exUnit4\src\org\flexunit\Assert.as:277]
at org.flexunit::Assert$/failNotEquals()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit 4\src\org\flexunit\Assert.as:99]
at org.flexunit::Assert$/assertEquals()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4 \src\org\flexunit\Assert.as:90]
at tests.unitedmindset.components::SuperLabelTest/testSetNullText()[C:\workspace\ANTBuildUni tTest\src\tests\unitedmindset\components\SuperLabelTest.as:60]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at flex.lang.reflect::Method/apply()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\sr c\flex\lang\reflect\Method.as:208]
at ReflectiveCallable/run()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\fle xunit\runners\model\FrameworkMethod.as:297]
at org.flexunit.runners.model::FrameworkMethod/applyExplosivelyAsync()[E:\hudson\jobs\FlexUn it4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:171]
at org.flexunit.runners.model::FrameworkMethod/invokeExplosivelyAsync()[E:\hudson\jobs\FlexU nit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:186]
at org.flexunit.internals.runners.statements::InvokeMethod/evaluate()[E:\hudson\jobs\FlexUni t4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\InvokeMethod. as:77]
at org.flexunit.internals.runners.statements::StackAndFrameManagement/evaluate()[E:\hudson\j obs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\St ackAndFrameManagement.as:129]
at org.flexunit.internals.runners.statements::StatementSequencer/executeStep()[E:\hudson\job s\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Stat ementSequencer.as:97]
at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\ statements\StatementSequencer.as:134]
at org.flexunit.token::AsyncTestToken/sendResult()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspac e\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as:118]
at org.flexunit.internals.runners.statements::AsyncStatementBase/sendComplete()[E:\hudson\jo bs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Asy ncStatementBase.as:76]
at org.flexunit.internals.runners.statements::StatementSequencer/sendComplete()[E:\hudson\jo bs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Sta tementSequencer.as:165]
at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\ statements\StatementSequencer.as:138]
at org.flexunit.token::AsyncTestToken/sendResult()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspac e\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as:118]
at org.flexunit.internals.runners.statements::InvokeMethod/handleMethodExecuteComplete()[E:\ hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\state ments\InvokeMethod.as:89]
at org.flexunit.token::AsyncTestToken/sendResult()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspac e\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as:118]
at org.flexunit.runners.model::FrameworkMethod/applyExplosivelyAsync()[E:\hudson\jobs\FlexUn it4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:173]
at org.flexunit.runners.model::FrameworkMethod/invokeExplosivelyAsync()[E:\hudson\jobs\FlexU nit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:186]
at org.flexunit.internals.runners.statements::InvokeMethod/evaluate()[E:\hudson\jobs\FlexUni t4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\InvokeMethod. as:77]
at org.flexunit.internals.runners.statements::SequencerWithDecoration/executeStep()[E:\hudso n\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements \SequencerWithDecoration.as:104]
at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\ statements\StatementSequencer.as:134]
at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()[E:\hudson\jobs\F lexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Stateme ntSequencer.as:108]
at org.flexunit.internals.runners.statements::StatementSequencer/executeStep()[E:\hudson\job s\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Stat ementSequencer.as:97]
at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\ statements\StatementSequencer.as:134]
at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()[E:\hudson\jobs\F lexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Stateme ntSequencer.as:108]
at org.flexunit.runners::BlockFlexUnit4ClassRunner/runChild()[E:\hudson\jobs\FlexUnit4-Flex3 .4\workspace\FlexUnit4\src\org\flexunit\runners\BlockFlexUnit4ClassRunner.as:130]
at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()[E:\hudson\jobs\FlexUni t4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\ChildRunnerSequencer.as: 82]
at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\ statements\StatementSequencer.as:134]
at org.flexunit.token::AsyncTestToken/sendResult()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspac e\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as:118]
at org.flexunit.runners::BlockFlexUnit4ClassRunner/handleBlockComplete()[E:\hudson\jobs\Flex Unit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\BlockFlexUnit4ClassRunner.as:16 7]
at org.flexunit.token::AsyncTestToken/sendResult()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspac e\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as:118]
at org.flexunit.internals.runners.statements::AsyncStatementBase/sendComplete()[E:\hudson\jo bs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Asy ncStatementBase.as:76]
at org.flexunit.internals.runners.statements::StatementSequencer/sendComplete()[E:\hudson\jo bs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Sta tementSequencer.as:165]
at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\ statements\StatementSequencer.as:138]
at org.flexunit.token::AsyncTestToken/sendResult()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspac e\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as:118]
at org.flexunit.internals.runners.statements::AsyncStatementBase/sendComplete()[E:\hudson\jo bs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Asy ncStatementBase.as:76]
at org.flexunit.internals.runners.statements::StatementSequencer/sendComplete()[E:\hudson\jo bs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Sta tementSequencer.as:165]
at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\ statements\StatementSequencer.as:138]
at org.flexunit.token::AsyncTestToken/sendResult()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspac e\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as:118]
at org.flexunit.internals.runners.statements::InvokeMethod/handleMethodExecuteComplete()[E:\ hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\state ments\InvokeMethod.as:89]
at org.flexunit.token::AsyncTestToken/sendResult()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspac e\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as:118]
at org.flexunit.runners.model::FrameworkMethod/applyExplosivelyAsync()[E:\hudson\jobs\FlexUn it4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:173]
at org.flexunit.runners.model::FrameworkMethod/invokeExplosivelyAsync()[E:\hudson\jobs\FlexU nit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:186]
at org.flexunit.internals.runners.statements::InvokeMethod/evaluate()[E:\hudson\jobs\FlexUni t4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\InvokeMethod. as:77]
at org.flexunit.internals.runners.statements::SequencerWithDecoration/executeStep()[E:\hudso n\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements \SequencerWithDecoration.as:104]
at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\ statements\StatementSequencer.as:134]
at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()[E:\hudson\jobs\F lexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Stateme ntSequencer.as:108]
at org.flexunit.internals.runners.statements::StatementSequencer/executeStep()[E:\hudson\job s\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Stat ementSequencer.as:97]
at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\ statements\StatementSequencer.as:134]
at org.flexunit.token::AsyncTestToken/sendResult()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspac e\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as:118]
at org.flexunit.internals.runners.statements::StackAndFrameManagement/handleNextExecuteCompl ete()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runn ers\statements\StackAndFrameManagement.as:151]
at org.flexunit.token::AsyncTestToken/sendResult()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspac e\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as:118]
at org.flexunit.internals.runners.statements::InvokeMethod/handleMethodExecuteComplete()[E:\ hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\state ments\InvokeMethod.as:89]
at org.flexunit.token::AsyncTestToken/sendResult()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspac e\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as:118]
at org.flexunit.runners.model::FrameworkMethod/applyExplosivelyAsync()[E:\hudson\jobs\FlexUn it4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:173]
at org.flexunit.runners.model::FrameworkMethod/invokeExplosivelyAsync()[E:\hudson\jobs\FlexU nit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:186]
at org.flexunit.internals.runners.statements::InvokeMethod/evaluate()[E:\hudson\jobs\FlexUni t4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\InvokeMethod. as:77]
at org.flexunit.internals.runners.statements::StackAndFrameManagement/evaluate()[E:\hudson\j obs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\St ackAndFrameManagement.as:129]
at org.flexunit.internals.runners.statements::StatementSequencer/executeStep()[E:\hudson\job s\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Stat ementSequencer.as:97]
at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\ statements\StatementSequencer.as:134]]]></failure></testcase>
<testcase classname='tests.unitedmindset.components::SuperLabelTest' name='testSetHelloWorldText' time='0.000' status='success'/>
<testcase classname='tests.unitedmindset::SampleTest' name='testSampleError' time='0.000' status='error'><error message='ERROR! - This is an error' type='tests.unitedmindset::SampleTest.testSampleError' ><![CDATA[Error: ERROR! - This is an error
at tests.unitedmindset::SampleTest/testSampleError()[C:\workspace\ANTBuildUnitTest\src\tests \unitedmindset\SampleTest.as:18]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at flex.lang.reflect::Method/apply()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\sr c\flex\lang\reflect\Method.as:208]
at ReflectiveCallable/run()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\fle xunit\runners\model\FrameworkMethod.as:297]
at org.flexunit.runners.model::FrameworkMethod/applyExplosivelyAsync()[E:\hudson\jobs\FlexUn it4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:171]
at org.flexunit.runners.model::FrameworkMethod/invokeExplosivelyAsync()[E:\hudson\jobs\FlexU nit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:186]
at org.flexunit.internals.runners.statements::InvokeMethod/evaluate()[E:\hudson\jobs\FlexUni t4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\InvokeMethod. as:77]
at org.flexunit.internals.runners.statements::StackAndFrameManagement/handleTimerComplete()[ E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\st atements\StackAndFrameManagement.as:141]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.utils::Timer/tick()]]></error></testcase>
<testcase classname='tests.unitedmindset::SampleTest' name='testSampleFailure' time='0.000' status='failure'><failure message='FAIL! - This is a sample test that will fail.' type='tests.unitedmindset::SampleTest.testSampleFailure' ><![CDATA[FAIL! - This is a sample test that will fail.
at org.flexunit::Assert$/fail()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org \flexunit\Assert.as:265]
at tests.unitedmindset::SampleTest/testSampleFailure()[C:\workspace\ANTBuildUnitTest\src\tes ts\unitedmindset\SampleTest.as:12]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at flex.lang.reflect::Method/apply()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\sr c\flex\lang\reflect\Method.as:208]
at ReflectiveCallable/run()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\fle xunit\runners\model\FrameworkMethod.as:297]
at org.flexunit.runners.model::FrameworkMethod/applyExplosivelyAsync()[E:\hudson\jobs\FlexUn it4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:171]
at org.flexunit.runners.model::FrameworkMethod/invokeExplosivelyAsync()[E:\hudson\jobs\FlexU nit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:186]
at org.flexunit.internals.runners.statements::InvokeMethod/evaluate()[E:\hudson\jobs\FlexUni t4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\InvokeMethod. as:77]
at org.flexunit.internals.runners.statements::StackAndFrameManagement/handleTimerComplete()[ E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\st atements\StackAndFrameManagement.as:141]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.utils::Timer/tick()]]></failure></testcase>
<testcase classname='tests.unitedmindset::SampleTest' name='testSampleIgnore' time='0.000' status='ignore'><skipped /></testcase>
<endOfTestRun/>
SuperLabelTest.as (runs as intended in UIListener)
this meant to be a simple test class, nothing real or production level
package tests.unitedmindset.components
import com.unitedmindset.components.SuperLabel;
import org.flexunit.Assert;
public class SuperLabelTest
public function SuperLabelTest()
// Private Vars
private var superLabel:SuperLabel;
// Setup
[BeforeClass]
public static function runBeforeClass():void
//do nothing
[AfterClass]
public static function runAfterClass():void
//do nothing
[Before(order=1)]
public function runBeforeEveryTest():void
superLabel = new SuperLabel();
[After]
public function runAfterEveryTest():void
superLabel = null;
// Tests
[Test(description="Tests Setting 'Hello World' Text in SuperLabel")]
public function testSetHelloWorldText():void
superLabel.text = "Hello World";
Assert.assertEquals("Super Hello World", superLabel.text);
[Test(description="Tests Setting NULL in SuperLabel")]
public function testSetNullText():void
superLabel.text = null;
//fail
Assert.assertEquals("Super ", superLabel.text);
//pass
//Assert.assertEquals("Super null", superLabel.text);
[Test(description="Tests Setting '' in SuperLabel")]
public function testSetEmptyText():void
superLabel.text = "";
Assert.assertEquals("Super ", superLabel.text); -
How to set the initial path of a Select File dialog.
I'm using the Flex3 File.browseForOpen() method. I'm opening a xml file; but I want to seed a path to the open dialog so used don't have to do much file navigation. Is there a way to specify a path that the file browser starts in?
Thanks.
-HaysAnswering my own question.
var file:File = File.desktopDirectory; //this is the initial dirrectory as long as it's valid
file:File.addEventListener(Event.SELECT, newXMLSelected);
file:File.browseForOpen("XML", [new FileFilter("XML", "*.xml")]); -
How to create the SWF file which was included surrogate pairs.
I would like to make sure how to create the SWF file which are included surrogate pairs.
The error of outside the scope of unicode occurred when I compiled(mxmlc) the as file which was set surrogate pairs to 'Unicoderange'.
Ex, I set the ' '(UTF-16 is '20B9F') to 'Unicoderange'.
However, I cannot add the surrogate pairs.
The error of outside the scope of Unicode occurred when I compiled the AS file.
The reason of error was that the Unicode(UTF-16) of surrogate pairs is invalid.
Then, I read the following pages.
These pages are written that unicode-range supported surrogate pairs.
http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_07.html
http://www.w3.org/TR/1998/REC-CSS2-19980512/fonts.html#descdef-unicode -range
So please let me know how to create the SWF file which are included surrogate pairs.
Environment
- Flex3.5a
- TTC: meiryo(ver6.02), msgothic(ver2.50), mspgothic(ver2.50)
Thanks,
Takeshi Ishihara.I've been able to create project jar files in Eclipse by selecting Export from the File menu, then choose Java - Jar file - and provide the required information, name, destination folder etc. But when I do this, I do not export other jars on the build path this way nor do I expect to do this. I am only concerned with creating a jar file of my own work. A jar file does not "contain" other jar files. If the jar file contains the main method, and requires other jars for it's execution, then you may wish to include a reference to required jars on the class path entry of the Manifest file of the jar file you create. I'm not sure how to create a Manifest file in eclipse though..
-
Issues with Flex3 and CF8 on Windows Vista
Sorry for the whine, however I feel it necessary to get a few
issues I've found with Flex3 on a Vista Laptop working with CF8
that I've not seen documented elsewhere.
Environment:
Sony Laptop with Intel Core 2 Duo processor and 3 GB Ram.
Running CF 8 Standard Edition, along with mySQL 5.x and
access to a SQL Server instance on another machine on the same
local network.
What I am trying to do:
A) learn flex, my background is CF with over 8 years of
experience along with Flash AS2 along the way.
B) put together a hello world app.
C) use the flex/cf application wizard to build a simple
master/detail set of selection/edit screens for one table of a
database that I used recently on a CF8 project. To see how much
better the UI really is on Flex and whether I could use it to retro
fit that old application to have a better UI using flex3.
Issues.
My mini-application is set up initially in the folder
c:/inetpub/wwwroot/mydirectory, but it does not work.
Reason is that when run, it cannot access the flex2gateway on
the url that the wizard puts into the app. which is
http://localhost/mydirectory/flex2gateway...
Details:
flex2gateway does not work on a subdirectory URL on the
default web site.
If I access
http://localhost/flex2gateway/
I get a blank screen (as expected) meaning that the flex2gatweway
is working.
If I access
http://localhost/mysubdirectory/flex2gateway/
I get a 404.0 error (not found)
Now, I beleive this is supposed to work, something must be
wrong with one of the xml file setups. But I cannot find any
documentation for it.
Initially the flex2gateway did not work at all. I did the web
connector thing with CF batch file and that got it working, but
only on the base directory, not the subdirectory.
So, to get around this issue, Luckily Vista with IE7 allows
more than one website.. I create a whole new website that is
accessed using
http://192.168.1.73:81/
I set this website up in the folder c:/localhost/mydirectory.
The flex project is called mydirectory
So we come to issue 2.
Given the above Issue number 1, I have further frustration
because when the Flex/Cold Fusion Application wizard builds the
various mxml files it insists on prefixing all of the remote object
calls with 'mydirectory.'
e.g "mydirectory.components.cfgenerated.mycfc"
Now, given that the web root is also the base of the project,
this will not work.
What actually works is: "components.cfgenerated.mycfc"
There seems to be no way I can configure the project when
building it to get around this issue. The only way |I can fix this
is to manually edit all the mxml files after the wizard is
finished. I also have to doctor the project setup for similar
reasons. It wants all of the urls to be:
http://192.168.1.73:81/mydirectory/bin/main.html
instead of
http://192.168.1.73:81/bin/main.html
So obviously the wizard is not set up to handle applications
that are based right at the web root, even though this is the only
place that the flex2gateway can work. <snafu I guess>
Issue 3:
I find that the flex/Cf application wizard is set up to build
pages based upon a certain narrowly defined way of constructing the
source database tables. In particular it wants every table to have
its own unique numeric id for each row, and can't handle a string
for the primary key and have the primary key editable as well.
Seems inflexible if you ask me. The main problem is that the
preconditions on the table structure that the wizard can work with
are poorly defined and documented. You obviously had to go to the
same school of database design and the same class as the Adobe
developers to think in the same way.
Given that this tool is supposed to be a help to new users of
Flex and AS3 and it is supposed to be a productivity aid, perhaps I
should not be surprised to have had to spend over a week getting to
grips with the wizard and learning its tricks just to get it to
build a mind numbingly simple mini app of my own that works when
run. Sorry Adobe, but you get a F minus on your report card for
this one, particularly on the really bad documentation. Just as bad
for the coding complexity of the solution to seemingly simple
application concept.
Cheers,
Bryn ParrottHi,
Which version of RDP client you are using for your client?
Does more user login at same period of time?
As you have commented that after sticking the user can’t able to login in RDCB server, here I can suggest you to check the setting of connection broker. Also you can check that you have place the proper location path of UPD while configuring in collection configuration
wizard. You can take a look at below article foe virtual desktop configuration.
Deploying Virtual Desktops with Windows Server 2012
Are you trying to use same UPD for different collection then also it might happens to occur your issue. The fact of UPD is User profile disks are for a single collection only. A user connecting to two different collections will have two separate profiles. If
you want to synchronize settings, refer to Microsoft User Experience Virtualization. Go through this article for more understanding related to UPD.
Working with User Profile Disks on Session-Based Desktop Deployments
Hope it helps!
Thanks. -
How to create game in flex3 to run from cd?
I want to create a game in flex3 (action script project). I
have created game in flash 8 and flash cs3 to run from cd. But I
dont know how create a game using as3 in flex 3 for cd. I am new in
flex. can anyone guide me? I just need a guidance of what should I
do or maintain to run the game from cd?Flex produce final output in .swf file, which same as flash
output, So whatever you compile from Flex it will produce one .swf
into Bin folder, that you can use for running it from CD. -
Download file stored in Database?
We are implementing a mini DMS in our application and need to
write and read files to the database. We are trying to figure out
if we can convert the byte array we get from the DB into a file
that the end user can save on the client machine.
Is this possible with Flex? I have heard no, but that Apollo
might allow it. What is Apollo?
Any ideas on how we could accomplish this with Flex3?Apollo is what Adobe AIR was call in it's last version.
It's certainly possible to donwload this file from DB to
user's machine using Flex. And the bulk of the job would be done on
the server side, using Java/.NEt/PHP/whatever.
Flex would simply send a request using FileReference class to
a server side page and that page would read the file from DB as
byte array and write to the response. That would allow user to save
the file on his/her machine.
ATTA -
Ld: file was built for unsupported file format...for architecture armv7
hi:
I recently developed a project with custom ANE and I get this error msg when compile ipa since I upgraded the sdk from 3.5 to 3.8.
ANE compile CMD:
adt -package -storetype pkcs12 -keystore ane.p12 -storepass 1234 -target ane yund.ane extension.xml -swc yunding.swc -platform iPhone-ARM -platformoptions platform.xml IDS.framework library.swf libIslandIDSANE.a
platform.xml:
<platform xmlns="http://ns.adobe.com/air/extension/3.5">
<sdkVersion>6.1</sdkVersion>
<linkerOptions>
<option>-w</option>
<option>-ios_version_min 4.2</option>
<option>-framework Foundation</option>
<option>-framework StoreKit</option>
<option>-framework AdSupport</option>
<option>-framework QuartzCore</option>
<option>-framework UIKit</option>
<option>-framework CoreGraphics</option>
<option>-framework SystemConfiguration</option>
<option>-framework Foundation</option>
<option>-lz</option>
</linkerOptions>
<packagedDependencies>
<packagedDependency>IDS.framework</packagedDependency>
</packagedDependencies>
</platform>
msg:
ld: file was built for unsupported file format ( 0x56 0x65 0x72 0x73 0x69 0x6f 0x6e 0x73 0x2f 0x43 0x75 0x72 0x72 0x65 0x6e 0x74 ) which is not the architecture being linked (armv7): C:\Users\timoo\AppData\Local\Temp\139d9782-79fd-422a-8c15-da1da2da8c53/IDS.framework/IDS for architecture armv7
Compilation failed while executing : ld64
help me
thxHave you Found the way to solve this problem yet?
I have got the same problem. Here is the error log when building the IPA:
ld: warning: ignoring file /var/folders/c0/m8m1_z5915qblkj9d_7jhmcw0000gn/T/3cb383e9-0092-4b1c-909f-5c219b2fbcd4/Par tytrack.framework/Partytrack, file was built for unsupported file format ( 0x56 0x65 0x72 0x73 0x69 0x6f 0x6e 0x73 0x2f 0x43 0x75 0x72 0x72 0x65 0x6e 0x74 ) which is not the architecture being linked (armv7): /var/folders/c0/m8m1_z5915qblkj9d_7jhmcw0000gn/T/3cb383e9-0092-4b1c-909f-5c219b2fbcd4/Par tytrack.framework/Partytrack
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/apple/Documents/flexsdk/flex3.9/lib/aot/lib/libDebugger1.arm-air.a(avmplusDebugger .cpp.o)
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_Partytrack", referenced from:
objc-class-ref in libcom.haibin.extension.PromotionAPI.a(partyTrackAPI.o)
ld: symbol(s) not found for architecture armv7
Compilation failed while executing : ld64
My platformoption.xml content is:
<platform xmlns="http://ns.adobe.com/air/extension/3.8">
<sdkVersion>7.0</sdkVersion>
<linkerOptions>
<option>-ios_version_min 4.3</option>
<option>-framework CoreData</option>
<option>-framework UIKit</option>
<option>-framework Foundation</option>
<option>-framework Security</option>
<option>-weak_framework AdSupport</option>
</linkerOptions>
<packagedDependencies>
<packagedDependency>Partytrack.framework</packagedDependency>
</packagedDependencies>
</platform>
And my build command are:
<target name="package" description="Create the extension package">
<exec executable="${FLEX_HOME}/bin/adt" failonerror="true" dir="${basedir}">
<env key="AIR_SDK_HOME" value="${FLEX_HOME}"/>
<arg value="-package"/>
<arg line="-storetype pkcs12"/>
<arg line="-keystore testkey.p12"/>
<arg line="-storepass 123456"/>
<arg line="-target ane"/>
<arg value="../${ANE_NAME}.ane"/>
<arg value="extension.xml"/>
<arg line="-swc ../swc/${ANE_NAME}.swc"/>
<arg line="-platform iPhone-ARM -platformoptions platform.xml -C ../iPhone-ARM/ . "/>
<arg line="-platform Android-ARM -C ../Android-ARM/ ."/>
<arg line="-platform default -C ../default/ ."/>
</exec>
</target>
File "Partytrack.framework " is in the directory "iPhone-ARM"
Maybe you are looking for
-
Adobe Media Encoder Crashes when launched
Hello, friends on the forum! I am using a PC with a Windows XP (Home Edition) o/s. It has an Intel Pentium 4 cpu @ 2.80 GHz and 2.5 gb or RAM. This problem just developed: when I try to export a CS4 project, AME hangs and crashes. I then get a mes
-
TS1398 My on/off toggle in the Wi-Fi screen is not functioning.
Anyone have a solution?
-
hai friends, how to create shift group plz suitable answer will be rewareded aruna
-
Add Query Reports to My Cockpit
Hello Experts, Is it possible to add query reports to My Cockpit in SAP 8.81 under the Common Functions window? If so, how? Currently these reports reside under the My Menu tab which is not enabled when My Cockpit is active. If this not possible I
-
Sendimg deadline to inbox and outlook at same time
hi , im using a task in my workflow.basing on that i will be sending work item to the person. if the person does not respond in time i have to send deadline and aswell as outlook notifiction to his superior . is this possible ? how it can be ach