Pages: 1 [2] 3
  Print  
Author Topic: :::CS5 Bug::: New CS5 Text Layout Framework Issues + Workaround  (Read 4829 times)
fabioassis
Gaia Novice
*
Posts: 7



WWW
« Reply #15 on: September 24, 2010, 06:26:21 AM »

Here is the solution:
http://kb2.adobe.com/cps/838/cpsid_83812.html

I've tested first one with setting "Custom preloader loop" and moving everything to frame #2 - it's working.

Edit:
I've tested SafeLoader with Gaia and it's working fine too.
I've just replaced Loader with SafeLoader in DisplayObjectAsset and IDisplayObject.

It worked for me. I followed these steps:

1. Download SafeLoader files here: http://kb2.adobe.com/cps/838/cpsid_83812.html

2. Put "fl/display" folder inside "src" (or wherever you keep your classes). It has 2 classes: SafeLoader.as and SafeLoaderInfo.as

3. Edit "com/gaiaframework/api/iDisplayObject.as" and "com/gaiaframework/api/assets.as". Where it calls the old Loader ("import flash.display.Stage;") change to the new SafeLoades (in my case, "import fl.display.SafeLoader;").

4. You'll need to change "Loader" to "SafeLoader" in a few places in those documents. Do a search for Loader (mind the capital L) or test your project and follow the trace errors.
Logged
George Hahn
Gaia Novice
*
Posts: 2


« Reply #16 on: January 06, 2011, 10:21:14 PM »

Or... save an hour of your life by reverting to the Classic Text setting until Adobe gets its shit together.

I didn't stumble upon this thread until I was three hours into a project that refused to load... checking my code, wondering if there was something wrong with the static text I put inside movieclips in my nav page... pulling my goddamn hair out. The only difference between this project and numerous other Gaia projects I had built was CS5. I could not - for the life of me - figure out what the hell I was doing wrong.

F@#k TLF Text. So not worth the hassle I've been through with this already. (And at the end of the day... my client won't know the difference anyway.)
Logged
steven
Gaia Author
Administrator
Gaia Evangelist
*****
Posts: 3871


gaiaframework
WWW
« Reply #17 on: January 06, 2011, 10:34:24 PM »

Try TinyTLF.

http://guyinthechair.com
Logged

Steven Sacks | Gaia Author
Please support Gaia by donating to the project!  Smiley
knov
Gaia Novice
*
Posts: 3


« Reply #18 on: April 05, 2011, 01:18:19 PM »

So I'm getting the same "Type Coercion failed" error but I have no idea why as I am not using TLF Text.

Code:
TypeError: Error #1034: Type Coercion failed: cannot convert com.nationalguard.adventures.pages::Rooftop_RescuePage__Preloader__@3eb7b7b1 to com.gaiaframework.api.IPage.
at com.gaiaframework.assets::PageAsset/decorate()
at com.gaiaframework.assets::PageAsset/onComplete()

I have one movie clip named "map" on the stage that is declared in the Document Class.

I have a few movie clips inside of that movie clip (obviously those are not being delcared).

The error only triggers when an internal movie clip contains an internal animation on it's timeline.  I.E. I want to make an icon on the top layer of the "map" movie clip grow when the user presses down on the map. When I remove the animation, it works fine. Any ideas?

« Last Edit: April 05, 2011, 01:22:18 PM by knov » Logged
steven
Gaia Author
Administrator
Gaia Evangelist
*****
Posts: 3871


gaiaframework
WWW
« Reply #19 on: April 05, 2011, 01:25:28 PM »

Knov, this thread is only for TLF issues and you've already stated that this has nothing to do with it, so this is not the right place to post your question.

Also, see:
http://www.gaiaflashframework.com/wiki/index.php?title=Common_Issues_And_Solutions#Cannot_Coerce_MovieClip_to_IPreloader.2FIPage
Logged

Steven Sacks | Gaia Author
Please support Gaia by donating to the project!  Smiley
knov
Gaia Novice
*
Posts: 3


« Reply #20 on: April 05, 2011, 01:29:16 PM »

Ironically, I followed the directions to merge the TLF into the code and that actually did the trick, even though none of my text is TLF (trust me, I've checked about 50 times now)... so perhaps that is something to note for anyone having a similar issue while using CS5, FP 10 with that error...

To expand on that: If there has EVER been TLF text in your movie you cannot undo that without down converting it to CS4 and then upconverting it again. Just so no one else has that fun experience.
« Last Edit: April 05, 2011, 07:54:22 PM by knov » Logged
Ramiro
Moderator
Gaia Addict
*****
Posts: 861


interactive pragmatism


« Reply #21 on: April 05, 2011, 04:31:46 PM »

I've had a TLF problem even though all my text was not TLF... After a few days, I discovered a "1" imported from a PSD who was actually TLF Sad Sad Sad
I hate that Flash CS5 doesn't give you the option to import PSD files with typografy as classic text instead of TLF... I'm importing in CS4 now
Logged
fabioassis
Gaia Novice
*
Posts: 7



WWW
« Reply #22 on: August 15, 2011, 06:01:15 AM »


Could someone explain how we can use TinyTLF to fix this issue?
Logged
samar
Gaia Novice
*
Posts: 5

samarpanda
WWW
« Reply #23 on: April 18, 2012, 09:57:21 AM »

[URGENT] I am using Gaia v3.2.6. This is first time i using gaia to build flash website. I went through all the comments for this posts. This is the error which i get:
TypeError: Error #1034: Type Coercion failed: cannot convert com.pages::StartPage@25877dd1 to com.gaiaframework.api.IPage.
   at com.gaiaframework.assets::PageAsset/decorate()
   at com.gaiaframework.assets::PageAsset/onComplete()
Could anyone get me a quick fix for this ?
Logged
steven
Gaia Author
Administrator
Gaia Evangelist
*****
Posts: 3871


gaiaframework
WWW
« Reply #24 on: April 18, 2012, 10:40:02 AM »

StartPage is not compiling correctly. Open your start page fla and compile it and find out why.
Logged

Steven Sacks | Gaia Author
Please support Gaia by donating to the project!  Smiley
samar
Gaia Novice
*
Posts: 5

samarpanda
WWW
« Reply #25 on: April 18, 2012, 10:50:41 AM »

It the default one created by scaffolding. It doesn't have any content.
Logged
steven
Gaia Author
Administrator
Gaia Evangelist
*****
Posts: 3871


gaiaframework
WWW
« Reply #26 on: April 18, 2012, 11:48:03 AM »

Does the FLA have a document class?
Logged

Steven Sacks | Gaia Author
Please support Gaia by donating to the project!  Smiley
samar
Gaia Novice
*
Posts: 5

samarpanda
WWW
« Reply #27 on: April 18, 2012, 11:53:09 AM »

Yes. And it is "com.pages.StartPage"
« Last Edit: April 18, 2012, 12:00:03 PM by samar » Logged
steven
Gaia Author
Administrator
Gaia Evangelist
*****
Posts: 3871


gaiaframework
WWW
« Reply #28 on: April 19, 2012, 02:00:49 AM »

Did you click the pencil on the document class to make sure the class path is correct? It should open the class if it is.
Logged

Steven Sacks | Gaia Author
Please support Gaia by donating to the project!  Smiley
samar
Gaia Novice
*
Posts: 5

samarpanda
WWW
« Reply #29 on: April 19, 2012, 02:15:37 AM »

Yes, that shows the class attached. com.pages.StartPage.
I am worried now. As still i couldn't find a solution for it.
Logged
Pages: 1 [2] 3
  Print  
 
Jump to:  

TinyPortal v1.0 beta 4 © Bloc